package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Mar 2, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AddApp adds an app to the config. Returns an error if the app already exists.
DefaultPath returns the default config file path (~/.gogitup).
HasApp checks if an app exists in the config.
RemoveApp removes an app from the config. Returns an error if the app is not found.
Save writes the config to the given file path.
type App struct {
Name string `yaml:"name"`
}
App represents a configured application.
type Config struct {
Apps []App `yaml:"apps"`
GitHubAuth bool `yaml:"github_auth"`
GOPROXY string `yaml:"goproxy,omitempty"`
}
Config represents the gogitup configuration file.
Load reads and parses the config file at the given path.
If the file does not exist, an empty Config is returned without error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.