Documentation ¶
Index ¶
- func AddInput(in string)
- func Execute(in string) error
- func GetDemoCmd() *cobra.Command
- func ParseConfig(cfgPath, cfgNetPath string, cfg *Config)
- func PrintfAsync(format string, a ...interface{})
- func Prompt(msg string, f func(string))
- func SetConfig(cfgPath, cfgNetPath string)
- func Setup()
- type CommandLineFlags
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDemoCmd ¶
GetDemoCmd exposes demoCmd so that it can be used as a sub-command by another cobra command instance.
func ParseConfig ¶
func PrintfAsync ¶
func PrintfAsync(format string, a ...interface{})
PrintfAsync prints the given message for an asynchronous event. More precisely, the message is prepended with a newline and appended with the command prefix.
func Prompt ¶
Prompt waits for input on the command line and then executes the given function with the input.
Types ¶
type CommandLineFlags ¶
type CommandLineFlags struct {
// contains filtered or unexported fields
}
CommandLineFlags contains the command line flags.
Click to show internal directories.
Click to hide internal directories.