zshell

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 11 Imported by: 10

Documentation

Overview

Package zshell use a simple way to execute shell commands

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug = false
	Env   []string
	Dir   string
)

Functions

func BgRun

func BgRun(command string) (err error)

func ExecCommand added in v0.1.29

func ExecCommand(command []string, stdIn io.Reader, stdOut io.Writer,
	stdErr io.Writer) (code int, outStr, errStr string, err error)

func OutRun

func OutRun(command string, stdIn io.Reader, stdOut io.Writer,
	stdErr io.Writer) (code int, outStr, errStr string, err error)

func Run

func Run(command string) (code int, outStr, errStr string, err error)

func RunNewProcess added in v0.0.21

func RunNewProcess(filemd5 string) (pid int, err error)

Types

type ShellBuffer added in v0.1.31

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

func (*ShellBuffer) String added in v0.1.31

func (s *ShellBuffer) String() string

func (*ShellBuffer) Write added in v0.1.31

func (s *ShellBuffer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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