shell

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

func Register

func Register(app *nabat.App)

Register adds the shell command to app.

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

func NewShellExecutor(rt *runtime.Runtime, ctx *nabat.Context) (*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