Documentation ¶ Index ¶ func Exec(name, description string) (tool.Tool, error) type ExecArgs type ExecResult Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Exec ¶ func Exec(name, description string) (tool.Tool, error) Types ¶ type ExecArgs ¶ type ExecArgs struct { Script string `json:"script"` // command or script to run } type ExecResult ¶ type ExecResult struct { ExitCode int `json:"exitCode"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` Status string `json:"status"` // "ok" or "error" Error string `json:"error,omitempty"` // error message if there is an error } Source Files ¶ View all Source files exec.go Click to show internal directories. Click to hide internal directories.