cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MPL-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRoot

func BuildRoot() *cobra.Command

BuildRoot creates a new root command from the

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewBuildCmd

func NewBuildCmd(flags *flags.GlobalFlags) *cobra.Command

NewBuildCmd creates a new command

func NewDeleteCmd

func NewDeleteCmd(flags *flags.GlobalFlags) *cobra.Command

NewDeleteCmd creates a new command

func NewListCmd

func NewListCmd(flags *flags.GlobalFlags) *cobra.Command

NewListCmd creates a new destroy command

func NewLogsDaemonCmd added in v0.0.3

func NewLogsDaemonCmd(flags *flags.GlobalFlags) *cobra.Command

NewLogsDaemonCmd creates a new destroy command

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd returns a new root command

func NewSSHCmd

func NewSSHCmd(flags *flags.GlobalFlags) *cobra.Command

NewSSHCmd creates a new ssh command

func NewStatusCmd

func NewStatusCmd(flags *flags.GlobalFlags) *cobra.Command

NewStatusCmd creates a new command

func NewStopCmd

func NewStopCmd(flags *flags.GlobalFlags) *cobra.Command

NewStopCmd creates a new destroy command

func NewUpCmd

func NewUpCmd(flags *flags.GlobalFlags) *cobra.Command

NewUpCmd creates a new up command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd creates a new ws-tunnel command

Types

type BuildCmd

type BuildCmd struct {
	*flags.GlobalFlags

	ProviderOptions []string

	SkipDelete bool
	Repository string
	Machine    string
	Platform   []string

	DevContainerPath string
}

BuildCmd holds the cmd flags

func (*BuildCmd) Run

func (cmd *BuildCmd) Run(ctx context.Context, client client.WorkspaceClient) error

type DeleteCmd

type DeleteCmd struct {
	*flags.GlobalFlags

	GracePeriod string
	Force       bool
}

DeleteCmd holds the delete cmd flags

func (*DeleteCmd) Run

func (cmd *DeleteCmd) Run(ctx context.Context, devPodConfig *config.Config, args []string) error

Run runs the command logic

type ListCmd

type ListCmd struct {
	*flags.GlobalFlags

	Output string
}

ListCmd holds the configuration

func (*ListCmd) Run

func (cmd *ListCmd) Run(ctx context.Context) error

Run runs the command logic

type LogsDaemonCmd added in v0.0.3

type LogsDaemonCmd struct {
	*flags.GlobalFlags
}

LogsDaemonCmd holds the configuration

func (*LogsDaemonCmd) Run added in v0.0.3

func (cmd *LogsDaemonCmd) Run(ctx context.Context, args []string) error

Run runs the command logic

type SSHCmd

type SSHCmd struct {
	*flags.GlobalFlags

	Stdio           bool
	JumpContainer   bool
	AgentForwarding bool

	Command string
	User    string
}

SSHCmd holds the ssh cmd flags

func (*SSHCmd) Run

func (cmd *SSHCmd) Run(ctx context.Context, devPodConfig *config.Config, client client2.WorkspaceClient) error

Run runs the command logic

type StatusCmd

type StatusCmd struct {
	*flags.GlobalFlags

	Output          string
	Timeout         string
	ContainerStatus bool
}

StatusCmd holds the cmd flags

func (*StatusCmd) Run

func (cmd *StatusCmd) Run(ctx context.Context, client client2.WorkspaceClient, log log.Logger) error

Run runs the command logic

type StopCmd

type StopCmd struct {
	*flags.GlobalFlags
}

StopCmd holds the destroy cmd flags

func (*StopCmd) Run

func (cmd *StopCmd) Run(ctx context.Context, client client2.WorkspaceClient) error

Run runs the command logic

type UpCmd

type UpCmd struct {
	*flags.GlobalFlags

	ID      string
	Machine string

	IDE        string
	IDEOptions []string

	ProviderOptions      []string
	PrebuildRepositories []string

	DevContainerPath string

	Recreate bool
}

UpCmd holds the up cmd flags

func (*UpCmd) Run

func (cmd *UpCmd) Run(ctx context.Context, devPodConfig *config.Config, client client2.WorkspaceClient) error

Run runs the command logic

type VersionCmd

type VersionCmd struct {
}

VersionCmd holds the ws-tunnel cmd flags

func (*VersionCmd) Run

func (cmd *VersionCmd) Run(_ *cobra.Command, _ []string) error

Run runs the command logic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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