Documentation ¶
Index ¶
- type Command
- func (c *Command) Complete(ctx context.Context, r *readline.Readline) []goprompt.Suggest
- func (c *Command) Description() string
- func (c *Command) Execute(ctx context.Context, r *readline.Readline) error
- func (c *Command) Help(ctx context.Context, r *readline.Readline) string
- func (c *Command) Name() string
- type CommandOption
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(l log.Logger, opts ...CommandOption) (*Command, error)
func (*Command) Description ¶
type CommandOption ¶
type CommandOption func(*Command)
func CommandWithConfigKey ¶
func CommandWithConfigKey(v string) CommandOption
func CommandWithName ¶
func CommandWithName(v string) CommandOption
type Config ¶
type Config struct { SourcePath string `json:"sourcePath" yaml:"sourcePath"` LocalPort string `json:"localPort" yaml:"localPort"` NodeTag string `json:"nodeTag" yaml:"nodeTag"` ImageTag string `json:"imageTag" yaml:"imageTag"` ImageName string `json:"imageName" yaml:"imageName"` Volumes []string `json:"volumes" yaml:"volumes"` }
Click to show internal directories.
Click to hide internal directories.