Documentation
¶
Overview ¶
Package tasks provides the `clawker loop tasks` command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdTasks ¶
func NewCmdTasks(f *cmdutil.Factory, runF func(context.Context, *TasksOptions) error) *cobra.Command
NewCmdTasks creates the `clawker loop tasks` command.
Types ¶
type TasksOptions ¶
type TasksOptions struct {
*shared.LoopOptions
// Factory DI
IOStreams *iostreams.IOStreams
TUI *tui.TUI
Client func(context.Context) (*docker.Client, error)
Config func() (config.Config, error)
ProjectManager func() (project.ProjectManager, error)
HostProxy func() hostproxy.HostProxyService
Firewall func(context.Context) (firewall.FirewallManager, error)
SocketBridge func() socketbridge.SocketBridgeManager
Prompter func() *prompter.Prompter
Logger func() (*logger.Logger, error)
Version string
// Task file (required)
TasksFile string
// Task prompt (mutually exclusive, optional — defaults to built-in template)
TaskPrompt string
TaskPromptFile string
// Output
Format *cmdutil.FormatFlags
// contains filtered or unexported fields
}
TasksOptions holds options for the loop tasks command.
Click to show internal directories.
Click to hide internal directories.