shell

package
v0.0.0-...-a5a3bde Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

New creates the shell sub-command for the CLI.

Types

type ExecuteOptions

type ExecuteOptions struct {
	ProjectName string
	Component   string
	Container   string
	Shell       string
	Command     string
	WorkDir     string
	Environment string
}

ExecuteOptions contains all the options for shell execution

type ShellExecutor

type ShellExecutor struct {
	// contains filtered or unexported fields
}

ShellExecutor handles shell execution in containers

func NewShellExecutor

func NewShellExecutor(rt *runtime.Runtime, cmd *cobra.Command) (*ShellExecutor, error)

NewShellExecutor creates a new shell executor

func (*ShellExecutor) Execute

func (e *ShellExecutor) Execute(opts ExecuteOptions) error

Execute runs the shell command with the given options

Jump to

Keyboard shortcuts

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