shell

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve()

Types

type Action

type Action struct {
	// contains filtered or unexported fields
}

func (*Action) Run

func (a *Action) Run(args []string, with map[string]string) (map[string]string, error)

type ShellReq

type ShellReq struct {
	Cmd     string            `map:"cmd"`
	Shell   string            `map:"shell"`
	Workdir string            `map:"workdir"`
	Timeout string            `map:"timeout"`
	Env     map[string]string `map:"env"`
}

type ShellRes

type ShellRes struct {
	Code   int    `map:"code"`
	Stdout string `map:"stdout"`
	Stderr string `map:"stderr"`
}

type ShellResult

type ShellResult struct {
	Req ShellReq      `map:"req"`
	Res ShellRes      `map:"res"`
	RT  time.Duration `map:"rt"`
}

Jump to

Keyboard shortcuts

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