command

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCommandNotFound = errors.New("command is nil")

Functions

func Execute

func Execute(commandArgs []string, flags config.CLI, configuration *config.ProgramConfig) error

Types

type Command

type Command interface {
	Execute() error
}

type DockerRunCommand

type DockerRunCommand struct {
	Flags         config.CLI
	Configuration *config.ProgramConfig
	CommandArgs   []string
}

func (*DockerRunCommand) Execute

func (s *DockerRunCommand) Execute() error

func (*DockerRunCommand) GetDockerMeta

func (s *DockerRunCommand) GetDockerMeta() (string, []string, *config.Settings, error)

type SessionCommand

type SessionCommand struct {
	Flags         config.CLI
	Configuration *config.ProgramConfig
}

func (*SessionCommand) Execute

func (s *SessionCommand) Execute() error

type ShowConfigCommand

type ShowConfigCommand struct {
	Flags         config.CLI
	Configuration *config.ProgramConfig
}

func (*ShowConfigCommand) Execute

func (c *ShowConfigCommand) Execute() error

Jump to

Keyboard shortcuts

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