shell

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(shellCommand ShellCommand) (string, error)

Run runs a shell command and returns the output

Types

type ShellCommand

type ShellCommand struct {
	Shell   []string
	Envs    []string
	Command []string
	WorkDir string
}

ShellCommand defines shell command parameters

Jump to

Keyboard shortcuts

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