label

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	*cmd.Context
	// contains filtered or unexported fields
}

Cmd wraps smctl label command

func NewLabelCmd

func NewLabelCmd(context *cmd.Context) *Cmd

NewLabelCmd returns new label command with context

func (*Cmd) HideUsage

func (c *Cmd) HideUsage() bool

HideUsage hide command's usage

func (*Cmd) Prepare

func (c *Cmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command

Prepare returns cobra command

func (*Cmd) Run

func (c *Cmd) Run() error

Run runs the command's logic

func (*Cmd) Validate

func (c *Cmd) Validate(args []string) error

Validate validates command's arguments

Jump to

Keyboard shortcuts

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