commands

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 New

func New() *Root

func (*Root) AddCommands added in v0.3.0

func (r *Root) AddCommands()

func (*Root) AddFlags added in v0.3.0

func (r *Root) AddFlags()

func (*Root) CompletionCommand added in v0.3.0

func (r *Root) CompletionCommand() *cobra.Command

func (*Root) Completions added in v0.3.0

func (r *Root) Completions(cmd *cobra.Command, args []string)

func (*Root) Execute added in v0.3.0

func (r *Root) Execute(cmd *cobra.Command, args []string)

func (Root) NewCommand added in v0.3.0

func (r Root) NewCommand() *cobra.Command

func (*Root) Run added in v0.3.0

func (r *Root) Run()

func (*Root) SetupLogging added in v0.3.0

func (r *Root) SetupLogging(cmd *cobra.Command, args []string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL