Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitWhenError ¶
ExitWhenError prints an error message and exits the application with ErrorCode: code
Types ¶
type CLI ¶
type CLI interface { ConfigGetter ConfigUpdater PatherGetter Name() string Version() string ConfigFileName() string }
func GetOrCreateCLI ¶
func GetOrCreateCLI(globalFlags GlobalFlags, args []string) CLI
type ConfigGetter ¶
type ConfigGetter interface { GetConfig() (cfg *config.DevCtlConfig, err error) MustGetConfig() (cfg *config.DevCtlConfig) }
type ConfigUpdater ¶
type ConfigUpdater interface {
UpdateConfig(cfg *config.DevCtlConfig) (err error)
}
type GlobalFlags ¶
type PatherGetter ¶
type PatherGetter interface {
GetPather() devctlpath.Pather
}
Click to show internal directories.
Click to hide internal directories.