execmd

package
v0.0.0-...-9648343 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Limited

func Limited(s string, sz int) string

func Run

func Run(cmd string, args []string) (string, error)

TODO: receive context?

func RunBytes

func RunBytes(cmd string, args []string) ([]byte, error)

func SimplifyOutput

func SimplifyOutput(b []byte) string

Types

type Command

type Command struct {
	Cmd   string
	Args  []string
	Dir   string
	Stdin []byte
}

func (Command) Run

func (cd Command) Run() ([]byte, error)

Jump to

Keyboard shortcuts

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