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
Click to show internal directories.
Click to hide internal directories.