Documentation
¶
Overview ¶
Package shell implements the deployah shell command.
The command opens an interactive shell inside a running pod for a selected component, handling pod discovery, container selection, and kubectl exec wiring on behalf of the user.
Register the command with Register on a nabat.dev/nabat.App instance.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 Options ¶
type Options struct {
Project string `nabat:"project"`
Component string `nabat:"component"`
Container string `nabat:"container"`
Shell string `nabat:"shell"`
Command string `nabat:"command"`
WorkDir string `nabat:"workdir"`
Environment string `nabat:"environment"`
}
Options holds command-line flags for shell.
type ShellExecutor ¶
type ShellExecutor struct {
// contains filtered or unexported fields
}
ShellExecutor handles shell execution in containers
func NewShellExecutor ¶
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
Click to show internal directories.
Click to hide internal directories.