shellkit

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(command string) (string, error)

Types

type Result

type Result struct {
	Stdout string `json:"stdout"`
	Stderr string `json:"stderr"`
}

type ResultTotal

type ResultTotal struct {
	Results []*Result `json:"results,omitempty"`
	Err     string    `json:"err,omitempty"`
}

func ExecuteBatch

func ExecuteBatch(commands []string) (ResultTotal, error)

func (*ResultTotal) Append

func (t *ResultTotal) Append(result Result)

Jump to

Keyboard shortcuts

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