run

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package run provides the container run command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdRun

func NewCmdRun(f *cmdutil.Factory, runF func(context.Context, *RunOptions) error) *cobra.Command

NewCmdRun creates a new container run command.

Types

type RunOptions

type RunOptions struct {
	*shared.ContainerCreateOptions

	IOStreams       *iostreams.IOStreams
	TUI             *tui.TUI
	Client          func(context.Context) (*docker.Client, error)
	Config          func() (config.Config, error)
	ProjectManager  func() (project.ProjectManager, error)
	ProjectRegistry func() (*project.Registry, error)
	HostProxy       func() hostproxy.HostProxyService
	ControlPlane    func() cpboot.Manager
	AdminClient     func(context.Context) (adminv1.AdminServiceClient, error)
	SocketBridge    func() socketbridge.SocketBridgeManager
	Prompter        func() *prompter.Prompter
	Logger          func() (*logger.Logger, error)
	Version         string

	// Run-specific options
	Detach bool

	// Computed fields (set during execution)
	AgentName string
	Project   string
	// contains filtered or unexported fields
}

RunOptions holds options for the run command.

Jump to

Keyboard shortcuts

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