cmd

package
v0.5.25 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MPL-2.0 Imports: 66 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DisableSSHKeepAlive time.Duration = 0 * time.Second
)

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 NewExportCmd added in v0.5.0

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

NewExportCmd creates a new command

func NewImportCmd added in v0.5.0

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

NewImportCmd creates a new command

func NewListCmd

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

NewListCmd creates a new destroy command

func NewLogsCmd added in v0.5.5

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

NewLogsCmd 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(f *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(f *flags.GlobalFlags) *cobra.Command

NewUpCmd creates a new up command

func NewUpgradeCmd added in v0.5.18

func NewUpgradeCmd() *cobra.Command

NewUpgradeCmd creates a new upgrade command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd creates a new ws-tunnel command

Types

type BuildCmd

type BuildCmd struct {
	*flags.GlobalFlags
	provider.CLIOptions

	ProviderOptions []string

	SkipDelete bool
	Machine    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
	client2.DeleteOptions
}

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 ExportCmd added in v0.5.0

type ExportCmd struct {
	*flags.GlobalFlags
}

ExportCmd holds the export cmd flags

func (*ExportCmd) Run added in v0.5.0

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

Run runs the command logic

type ImportCmd added in v0.5.0

type ImportCmd struct {
	*flags.GlobalFlags

	WorkspaceID string

	MachineID    string
	MachineReuse bool

	ProviderID    string
	ProviderReuse bool

	Data string
}

ImportCmd holds the export cmd flags

func (*ImportCmd) Run added in v0.5.0

func (cmd *ImportCmd) Run(ctx context.Context, devPodConfig *config.Config, log log.Logger) 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 LogsCmd added in v0.5.5

type LogsCmd struct {
	*flags.GlobalFlags
}

LogsCmd holds the configuration

func (*LogsCmd) Run added in v0.5.5

func (cmd *LogsCmd) Run(ctx context.Context, args []string) 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
	dpFlags.GitCredentialsFlags

	ForwardPortsTimeout string
	ForwardPorts        []string
	ReverseForwardPorts []string
	SendEnvVars         []string
	SetEnvVars          []string

	Stdio                     bool
	JumpContainer             bool
	AgentForwarding           bool
	GPGAgentForwarding        bool
	GitSSHSignatureForwarding bool

	// ssh keepalive options
	SSHKeepAliveInterval time.Duration `json:"sshKeepAliveInterval,omitempty"`

	StartServices bool

	Proxy bool

	Command string
	User    string
	WorkDir string
}

SSHCmd holds the ssh cmd flags

func (*SSHCmd) Run

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

Run runs the command logic

type StatusCmd

type StatusCmd struct {
	*flags.GlobalFlags
	client2.StatusOptions

	Output  string
	Timeout string
}

StatusCmd holds the cmd flags

func (*StatusCmd) Run

func (cmd *StatusCmd) Run(ctx context.Context, client client2.BaseWorkspaceClient, 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, devPodConfig *config.Config, client client2.BaseWorkspaceClient) error

Run runs the command logic

type UpCmd

type UpCmd struct {
	provider2.CLIOptions
	*flags.GlobalFlags

	Machine string

	ProviderOptions []string

	ConfigureSSH            bool
	GPGAgentForwarding      bool
	OpenIDE                 bool
	SetupLoftPlatformAccess bool

	SSHConfigPath string

	DotfilesSource string
	DotfilesScript string
}

UpCmd holds the up cmd flags

func (*UpCmd) Run

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

Run runs the command logic

type UpgradeCmd added in v0.5.18

type UpgradeCmd struct {
	Version string
	// contains filtered or unexported fields
}

UpgradeCmd is a struct that defines a command call for "upgrade"

func (*UpgradeCmd) Run added in v0.5.18

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

Run executes 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

Jump to

Keyboard shortcuts

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