shell

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(command string, args ...string) error

RunCommand runs command with given arguments

Types

type Shell

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

Shell represents shell command

func New

func New(command string, args ...string) Shell

New returns Shell instance

func (Shell) Run

func (s Shell) Run(ctx context.Context) error

Run runs shell command

Jump to

Keyboard shortcuts

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