Documentation ¶
Index ¶
- Constants
- Variables
- type Root
- func (r *Root) AddCommands()
- func (r *Root) AddFlags()
- func (r *Root) CompletionCommand() *cobra.Command
- func (r *Root) Completions(cmd *cobra.Command, args []string)
- func (r *Root) EnvCommand() *cobra.Command
- func (r *Root) Execute(cmd *cobra.Command, args []string) error
- func (r Root) NewCommand() *cobra.Command
- func (r *Root) Run()
- func (r *Root) SetupLogging(cmd *cobra.Command, args []string)
Constants ¶
View Source
const ( YotUse = `` /* 237-byte string literal not displayed */ YotShort = "Yot (YAML Overlay Tool) is a YAML overlay tool." YotLong = `` /* 230-byte string literal not displayed */ )
Variables ¶
View Source
var ErrMissingRequired = fmt.Errorf("missing required arguments")
ErrMissingRequired occurs when a required flag is not passed.
Functions ¶
This section is empty.
Types ¶
type Root ¶ added in v0.3.0
type Root struct { Log *logging.Logger Options *instructions.Config Command *cobra.Command // contains filtered or unexported fields }
func (*Root) AddCommands ¶ added in v0.3.0
func (r *Root) AddCommands()
func (*Root) CompletionCommand ¶ added in v0.3.0
func (*Root) Completions ¶ added in v0.3.0
func (*Root) EnvCommand ¶ added in v0.5.0
func (Root) NewCommand ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.