subcommand

package
v2.43.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubCommand

type SubCommand struct {
	// contains filtered or unexported fields
}

SubCommand base command containing common command functions

func NewSubCommand

func NewSubCommand(cmd *cobra.Command) *SubCommand

SubCommand create new sub command

func (*SubCommand) CheckRequiredFlags

func (c *SubCommand) CheckRequiredFlags() error

func (*SubCommand) GetCommand

func (c *SubCommand) GetCommand() *cobra.Command

GetCommand get the cobra command

func (*SubCommand) SetRequiredFlags

func (c *SubCommand) SetRequiredFlags(v ...string) *SubCommand

Jump to

Keyboard shortcuts

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