Documentation ¶
Index ¶
- func PrintHelp(out io.Writer)
- type Input
- func (i Input) GetComponent() string
- func (i Input) GetComponentTitle() string
- func (i Input) GetFrameworkVersion() string
- func (i Input) GetLogLevel() int
- func (i Input) GetName() string
- func (i Input) GetPath() string
- func (i Input) GetSocket() string
- func (i Input) GetTCP() uint
- func (i Input) GetTimeout() int
- func (i Input) GetVariable(name string) string
- func (i Input) GetVariables() map[string]string
- func (i Input) GetVersion() string
- func (i Input) HasLogging() bool
- func (i Input) HasVariable(name string) bool
- func (i Input) IsDebugEnabled() bool
- func (i Input) IsTCPEnabled() bool
- func (i Input) MustDisplayHelp() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
Input contains the CLI input values
func Parse ¶
Parse processes and validates command line options.
The result is an input object that allows access to the CLI option values.
func (Input) GetComponent ¶
GetComponent returns the component type.
func (Input) GetComponentTitle ¶
GetComponentTitle returns the component name and version.
func (Input) GetFrameworkVersion ¶
GetFrameworkVersion returns the KUSANAGI framework version.
func (Input) GetLogLevel ¶
GetLogLevel returns the log level.
The INFO level is returned when no log level is defined.
func (Input) GetPath ¶
GetPath returns the path to the file being executed.
The path includes the file name.
func (Input) GetTimeout ¶
GetTimeout returns the process execution timeout in milliseconds.
func (Input) GetVariable ¶
GetVariable returns the value for an engine variable.
name: The name of the variable.
func (Input) GetVariables ¶
GetVariables returns all the engine variables.
func (Input) GetVersion ¶
GetVersion returns the component version.
func (Input) HasVariable ¶
HasVariable checks if an engine variable is defined.
name: The name of the variable.
func (Input) IsDebugEnabled ¶
IsDebugEnabled checks if debug is enabled.
func (Input) IsTCPEnabled ¶
IsTCPEnabled checks if TCP connections should be used instead of IPC.
func (Input) MustDisplayHelp ¶
MustDisplayHelp checks if the CLI help must be displayed.