cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UTF8    = Charset("UTF-8")
	GB18030 = Charset("GB18030")
)

Variables

This section is empty.

Functions

func ConvertByte2String

func ConvertByte2String(src *stream.Stream, charset Charset) string

func Kill

func Kill(pid int) error

func Run

func Run(command string) (string, error)

Types

type Charset

type Charset string

type Session

type Session struct {
	ShowLog    bool
	ShowStdOut bool
	// contains filtered or unexported fields
}

func NewSession

func NewSession() *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)

Directories

Path Synopsis
m

Jump to

Keyboard shortcuts

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