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) Execute(cmd *cobra.Command, args []string)
- func (r Root) NewCommand() *cobra.Command
- func (r *Root) Run()
- func (r *Root) SetupLogging(cmd *cobra.Command, args []string)
Constants ¶
View Source
const ( YotShort = "yot (YAML Overlay Tool) is a YAML overlay tool." YotLong = `` /* 220-byte string literal not displayed */ HelpUsageExample = "yot -i instructions.yaml -o /tmp/output" HelpVerbose = "Verbose log-level stdout, equivalent to '--log-level debug'" HelpLogLevel = `` /* 288-byte string literal not displayed */ HelpInstructionsFile = "Path to the instructions file (required)" HelpOutputDirectory = `Path to a directory for writing the YAML files which were operated on by yot` HelpRenderStdOut = `Output YAML files which were operated on by yot to stdout` HelpIndentLevel = `Number of spaces to be used for indenting YAML output (min: 2, max: 9)` HelpOutputStyle = `` /* 432-byte string literal not displayed */ CompletionUse = "completion [bash|zsh|fish|powershell]" CompletionShort = "Generate shell auto-completion scripts" CompletionLong = `` /* 1018-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 }
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) NewCommand ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.