shellcmd

package
v1.54.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdTrcConfig  = "tconfig"
	CmdTrcPub     = "tpub"
	CmdTrcSub     = "tsub"
	CmdTrcX       = "tx"
	CmdTrcInit    = "tinit"
	CmdTrcPlgtool = "trcplgtool"
	CmdKubectl    = "kubectl"
	CmdTrcBoot    = "tboot"
	CmdRm         = "rm"
	CmdCp         = "cp"
	CmdMv         = "mv"
	CmdCat        = "cat"
	CmdMkdir      = "mkdir"
	CmdNano       = "rosea"
	CmdSu         = "su"
)

Shell command types sent via ChatMsg.Response field

Variables

This section is empty.

Functions

func ExecuteCat

func ExecuteCat(args []string, driverConfig *config.DriverConfig) error

ExecuteCat displays the contents of files

func ExecuteCp

func ExecuteCp(args []string, driverConfig *config.DriverConfig) error

ExecuteCp copies files or directories from source to destination Supports -r flag for recursive directory copying

func ExecuteMkdir

func ExecuteMkdir(args []string, driverConfig *config.DriverConfig) error

ExecuteMkdir creates directories in memfs Supports -p flag for creating parent directories

func ExecuteMv

func ExecuteMv(args []string, driverConfig *config.DriverConfig) error

ExecuteMv moves (renames) files or directories from source to destination

func ExecuteRm

func ExecuteRm(args []string, driverConfig *config.DriverConfig) error

ExecuteRm removes files or directories from memfs Supports -r flag for recursive directory deletion

func ExecuteShellCommand

func ExecuteShellCommand(cmdType string, args []string, driverConfig *config.DriverConfig) trcshio.MemoryFileSystem

ExecuteShellCommand executes a shell command based on the command type string from ChatMsg.Response Returns the MemoryFileSystem where command output is written

func ExecuteSu

func ExecuteSu(driverConfig *config.DriverConfig) error

ExecuteSu performs OAuth authentication for unrestricted write access

Types

This section is empty.

Jump to

Keyboard shortcuts

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