subcmd

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StoneImage = "public.ecr.aws/winebarrel/stone"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecCmd

type ExecCmd struct {
	Profile      string `env:"DMTS_PROFILE" short:"p" required:"" help:"Demitas profile name."`
	Command      string `evn:"DMTS_EXEC_COMMAND" required:"" default:"bash" help:"Command to run on a container."`
	Image        string `env:"DMTS_EXEC_IMAGE" default:"public.ecr.aws/lts/ubuntu:latest" help:"Container image."`
	UseTaskImage bool   `env:"DMTS_EXEC_USE_TASK_IMAGE" help:"Use task definition image."`
	Detach       bool   `help:"Detach when the task starts."`
}

func (*ExecCmd) Run

func (cmd *ExecCmd) Run(ctx *demitas2.Context) error

type PortForwardCmd

type PortForwardCmd struct {
	Profile    string `env:"DMTS_PROFILE" short:"p" required:"" help:"Demitas profile name."`
	RemoteHost string `required:"" short:"H" help:"Remote host."`
	RemotePort uint   `required:"" short:"r"  help:"Remote port."`
	LocalPort  uint   `required:"" short:"l"  help:"Local port."`
}

func (*PortForwardCmd) Run

func (cmd *PortForwardCmd) Run(ctx *demitas2.Context) error

type ProfilesCmd

type ProfilesCmd struct {
}

func (*ProfilesCmd) Run

func (cmd *ProfilesCmd) Run(ctx *demitas2.Context) error

type RunCmd

type RunCmd struct {
	Profile string `env:"DMTS_PROFILE" short:"p" required:"" help:"Demitas profile name."`
	Command string `help:"Command to run on a container."`
	Image   string `help:"Container image."`
	Detach  bool   `help:"Detach when the task starts."`
}

func (*RunCmd) Run

func (cmd *RunCmd) Run(ctx *demitas2.Context) error

Jump to

Keyboard shortcuts

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