exec

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package exec provides the container exec command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdExec

func NewCmdExec(f *cmdutil.Factory, runF func(context.Context, *ExecOptions) error) *cobra.Command

NewCmdExec creates a new exec command.

Types

type ExecOptions

type ExecOptions struct {
	IOStreams      *iostreams.IOStreams
	Client         func(context.Context) (*docker.Client, error)
	Config         func() (config.Config, error)
	ProjectManager func() (project.ProjectManager, error)
	HostProxy      func() hostproxy.HostProxyService
	Logger         func() (*logger.Logger, error)

	Agent       bool // treat first argument as agent name(resolves to clawker.<project>.<agent>)
	Interactive bool
	TTY         bool
	Detach      bool
	Env         []string
	Workdir     string
	User        string
	Privileged  bool
	// contains filtered or unexported fields
}

ExecOptions holds options for the exec command.

Jump to

Keyboard shortcuts

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