Documentation ¶
Index ¶
- type CommonFlags
- func (f *CommonFlags) ConfigDirectory() string
- func (f *CommonFlags) ConfigFileName() string
- func (f *CommonFlags) ConfigProviderUrl() string
- func (f *CommonFlags) Help()
- func (f *CommonFlags) OverwriteConfig() bool
- func (f *CommonFlags) Parse(_ []string)
- func (f *CommonFlags) Profile() string
- func (f *CommonFlags) RegistryUrl() string
- func (f *CommonFlags) UseRegistry() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonFlags ¶
type CommonFlags struct {
// contains filtered or unexported fields
}
CommonFlags is a custom implementation of commandline.CommonFlags from go-mod-bootstrap
func NewCommonFlags ¶
func NewCommonFlags() *CommonFlags
NewCommonFlags creates new CommonFlags and initializes it
func (*CommonFlags) ConfigDirectory ¶
func (f *CommonFlags) ConfigDirectory() string
ConfigDirectory returns the directory where the config file(s) are located, if it was specified.
func (*CommonFlags) ConfigFileName ¶
func (f *CommonFlags) ConfigFileName() string
ConfigFileName returns the name of the local configuration file
func (*CommonFlags) ConfigProviderUrl ¶
func (f *CommonFlags) ConfigProviderUrl() string
ConfigProviderUrl returns the empty url since Configuration Provider is not used.
func (*CommonFlags) Help ¶
func (f *CommonFlags) Help()
Help displays the usage help message and exit.
func (*CommonFlags) OverwriteConfig ¶
func (f *CommonFlags) OverwriteConfig() bool
OverwriteConfig returns false since the Configuration provider is not used
func (*CommonFlags) Parse ¶
func (f *CommonFlags) Parse(_ []string)
Parse parses the command-line arguments
func (*CommonFlags) Profile ¶
func (f *CommonFlags) Profile() string
Profile returns the empty name since profile is not used
func (*CommonFlags) RegistryUrl ¶
func (f *CommonFlags) RegistryUrl() string
RegistryUrl returns the registry if one was specified TODO: Remove for release V2.0.0 when -registry is back to just bool flag
func (*CommonFlags) UseRegistry ¶
func (f *CommonFlags) UseRegistry() bool
UseRegistry returns false since registry is not used