cmd

package
v0.0.0-...-2e2b736 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute builds the default root command and invokes it with os.Args

func NewCmdConfig

func NewCmdConfig(s printers.IOStreams) *cobra.Command

func NewCmdConfigGet

func NewCmdConfigGet(s printers.IOStreams) *cobra.Command

func NewCmdConfigSetup

func NewCmdConfigSetup(s printers.IOStreams) *cobra.Command

func NewCmdVersion

func NewCmdVersion(s printers.IOStreams) *cobra.Command

func NewRootCmd

func NewRootCmd(s printers.IOStreams) *cobra.Command

NewRootCmd creates the 'root' command and configures it's nested children

Types

type ConfigGetOptions

type ConfigGetOptions struct {
	*printers.PrinterOptions
	Values *cfg.Config
}

func NewConfigGetOptions

func NewConfigGetOptions(s printers.IOStreams) *ConfigGetOptions

func (*ConfigGetOptions) Complete

func (o *ConfigGetOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*ConfigGetOptions) Run

func (o *ConfigGetOptions) Run() error

Run the command

func (*ConfigGetOptions) Validate

func (o *ConfigGetOptions) Validate() error

Validate the options

type ConfigSetupOptions

type ConfigSetupOptions struct {
	*printers.PrinterOptions
	Config *cfg.Config
}

func NewConfigSetupOptions

func NewConfigSetupOptions(s printers.IOStreams) *ConfigSetupOptions

func (*ConfigSetupOptions) Complete

func (o *ConfigSetupOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*ConfigSetupOptions) Run

func (o *ConfigSetupOptions) Run() error

Run the command

func (*ConfigSetupOptions) Validate

func (o *ConfigSetupOptions) Validate() error

Validate the options

type VersionOptions

type VersionOptions struct {
	*printers.PrinterOptions
	VersionDetails *version.DetailStruct
}

func NewVersionOptions

func NewVersionOptions(s printers.IOStreams) *VersionOptions

func (*VersionOptions) Complete

func (o *VersionOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*VersionOptions) Run

func (o *VersionOptions) Run() error

Run the command

func (*VersionOptions) Validate

func (o *VersionOptions) Validate() error

Validate the options

Jump to

Keyboard shortcuts

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