Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Flags = GlobalFlags{ Filter: "", Format: formatText, Save: "", Host: "", Network: config.DefaultEmulatorNetwork().Name, Log: logLevelInfo, Yes: false, ConfigPaths: config.DefaultPaths(), }
Functions ¶
func ContainsFlag ¶ added in v0.21.0
ContainsFlag checks if output flag is present for the provided field
Types ¶
type Command ¶
type Command struct { Cmd *cobra.Command Flags interface{} Run RunCommand }
func (Command) AddToParent ¶
AddToParent add new command to main parent cmd and initializes all necessary things as well as take care of errors and output here we can do all boilerplate code that is else copied in each command and make sure we have one place to handle all errors and ensure commands have consistent results
type GlobalFlags ¶
type RunCommand ¶
Click to show internal directories.
Click to hide internal directories.