Documentation
¶
Overview ¶
Package root builds the cr root command and owns root-level command wiring.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProfileFlagChanged ¶ added in v0.3.77
ProfileFlagChanged reports whether the inherited --profile flag was supplied.
func RegisterAll ¶
func RegisterAll(cmd *cobra.Command, opts *Options, fns ...RegisterFunc)
RegisterAll applies child-command registrars to a root command tree.
Types ¶
type Options ¶
type Options struct {
Profile string
Backend string
ConfigPath string
Quiet bool
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
}
Options carries root-level command dependencies and persistent options.
func DefaultOptions ¶
func DefaultOptions() *Options
DefaultOptions returns root options wired to the process stdio streams.
func NewCommand ¶
NewCommand builds a fresh cr root command and its injectable options.
type RegisterFunc ¶
RegisterFunc attaches a command subtree to the root command.
Click to show internal directories.
Click to hide internal directories.