shell

package
v0.3.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-2.0 Imports: 4 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shell

type Shell struct {
	*exec.Cmd
}

func Exec

func Exec(name string, args ...string) *Shell

func (*Shell) Attach

func (s *Shell) Attach() *Shell

func (*Shell) Read

func (s *Shell) Read() (string, error)

func (*Shell) ReadOutput

func (s *Shell) ReadOutput() (string, error)

func (*Shell) Run

func (s *Shell) Run() error

func (*Shell) SetDir

func (s *Shell) SetDir(path string) *Shell

func (*Shell) SetEnv

func (s *Shell) SetEnv(env []string) *Shell

func (*Shell) Wait

func (s *Shell) Wait() error

Jump to

Keyboard shortcuts

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