cmd

package
v0.0.0-...-98fa19b Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLoopvarAndNilPoint

func CheckLoopvarAndNilPoint()

func ConvertUtf82Gbk

func ConvertUtf82Gbk(src []byte) (ss string)

func MakeArg

func MakeArg(arg ...string) string

Types

type Session

type Session struct {
	*exec.Cmd
	Result           string
	CurrentDirectory string
	// contains filtered or unexported fields
}

func NewSession

func NewSession() *Session

func Run

func Run(command string) *Session

func RunArgs

func RunArgs(arg ...string) *Session

func (*Session) GetPid

func (s *Session) GetPid() <-chan int

func (*Session) SetDir

func (s *Session) SetDir(dir string)

func (*Session) SetLog

func (s *Session) SetLog(wr io.Writer)

Jump to

Keyboard shortcuts

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