command

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL