shell

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShellHandler

type ShellHandler struct {
	*common.BaseHandler
}

ShellHandler handles shell command execution

func NewShellHandler

func NewShellHandler(cmdExecutor common.CommandExecutor) *ShellHandler

NewShellHandler creates a new shell handler

func (*ShellHandler) Execute

func (h *ShellHandler) Execute(ctx context.Context, cmd string, args *common.CommandArgs) (int, string, error)

Execute runs the shell command

func (*ShellHandler) Validate

func (h *ShellHandler) Validate(cmd string, args *common.CommandArgs) error

Validate checks if the arguments are valid for the command

Jump to

Keyboard shortcuts

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