commands

package
v0.0.0-...-297e449 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	GetCommand() *flaggy.Subcommand

	Execute(targetFilePath string) error
}

Command defines a command line command.

type DeleteCommand

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

DeleteCommand the command struct

func NewDeleteCommand

func NewDeleteCommand() *DeleteCommand

NewDeleteCommand creates a new DeleteCommand

func (*DeleteCommand) Execute

func (cmdArgs *DeleteCommand) Execute(path string) error

Execute the delete command

func (*DeleteCommand) GetCommand

func (cmdArgs *DeleteCommand) GetCommand() *flaggy.Subcommand

GetCommand returns the flaggy Subcommand to parse the command line

type ExportCommand

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

ExportCommand the list command struct

func NewExportCommand

func NewExportCommand() *ExportCommand

NewExportCommand creates a new ExportCommand

func (*ExportCommand) Execute

func (cmdArgs *ExportCommand) Execute(targetFile string) error

Execute the export command

func (*ExportCommand) GetCommand

func (cmdArgs *ExportCommand) GetCommand() *flaggy.Subcommand

GetCommand returns the flaggy Subcommand to parse the command line

type ImportCommand

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

ImportCommand to add a kubeconf

func NewImportCommand

func NewImportCommand() *ImportCommand

NewImportCommand creates a new Importommand

func (*ImportCommand) Execute

func (cmdArgs *ImportCommand) Execute(targetFilePath string) error

Execute the import command

func (*ImportCommand) GetCommand

func (cmdArgs *ImportCommand) GetCommand() *flaggy.Subcommand

GetCommand returns the flaggy Subcommand to parse the command line

type ListCommand

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

ListCommand the list command struct

func NewListCommand

func NewListCommand() *ListCommand

NewListCommand creates a new ListCommand

func (*ListCommand) Execute

func (cmdArgs *ListCommand) Execute(path string) error

Execute the list command

func (*ListCommand) GetCommand

func (cmdArgs *ListCommand) GetCommand() *flaggy.Subcommand

GetCommand returns the flaggy Subcommand to parse the command line

type RenameCommand

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

RenameCommand the rename command struct

func NewRenameCommand

func NewRenameCommand() *RenameCommand

NewRenameCommand a new RenameCommand and return it.

func (*RenameCommand) Execute

func (cmdArgs *RenameCommand) Execute(path string) error

Execute the rename command

func (*RenameCommand) GetCommand

func (cmdArgs *RenameCommand) GetCommand() *flaggy.Subcommand

GetCommand returns the flaggy Subcommand to parse the command line

type SwitchCommand

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

SwitchCommand the activate command struct

func NewSwitchCommand

func NewSwitchCommand() *SwitchCommand

NewSwitchCommand a new SwitchCommand and return it.

func (*SwitchCommand) Execute

func (cmdArgs *SwitchCommand) Execute(path string) error

Execute the list command

func (*SwitchCommand) GetCommand

func (cmdArgs *SwitchCommand) GetCommand() *flaggy.Subcommand

GetCommand returns the flaggy Subcommand to parse the command line

type ViewCommand

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

ViewCommand the view command struct

func NewViewCommand

func NewViewCommand() *ViewCommand

NewViewCommand creates a new ViewCommand

func (*ViewCommand) Execute

func (cmdArgs *ViewCommand) Execute(path string) error

Execute the view command

func (*ViewCommand) GetCommand

func (cmdArgs *ViewCommand) GetCommand() *flaggy.Subcommand

GetCommand returns the flaggy Subcommand to parse the command line

Jump to

Keyboard shortcuts

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