Documentation ¶
Index ¶
- Constants
- Variables
- func AddCommand(names string, handler func(args ...string) (ret string, err error))
- func AddProcess(process *Process) error
- func Run()
- func UseHttpProxy(port uint16, to string, sudo bool) (err error)
- type Fmt
- func (f *Fmt) ColorPrint(color TermColor, args ...interface{}) (n int, err error)
- func (f *Fmt) ColorPrintf(color TermColor, format string, args ...interface{}) (n int, err error)
- func (f *Fmt) ColorPrintln(color TermColor, args ...interface{}) (n int, err error)
- func (f *Fmt) Print(args ...interface{}) (n int, err error)
- func (f *Fmt) Printf(format string, args ...interface{}) (n int, err error)
- func (f *Fmt) Println(args ...interface{}) (n int, err error)
- type Process
- type Stdio
- type TermColor
Constants ¶
View Source
const HTTP_PROXY_SERVER_SRC = `` /* 1116-byte string literal not displayed */
Variables ¶
View Source
var ( Info = &Fmt{ LinePrefix: "[debug] ", Color: T_COLOR_GRAY, } Ok = &Fmt{ LinePrefix: "[debug] ", Color: T_COLOR_GREEN, } Warn = &Fmt{ LinePrefix: "[debug] ", Color: T_COLOR_RED, } )
Functions ¶
func AddCommand ¶
func AddProcess ¶
Types ¶
type Fmt ¶
type Fmt struct { LinePrefix string Color TermColor Pipe io.Writer // contains filtered or unexported fields }
func (*Fmt) ColorPrint ¶
func (*Fmt) ColorPrintf ¶
func (*Fmt) ColorPrintln ¶
type Process ¶
type Process struct { Sudo bool Name string Path string Args []string Env []string BuildArgs []string GoCode string GoFile string GoPkg string LinkedPkgs []string LinkedFiles []string LinkedPlatforms []string BeforeBuild func(*Process) error TermLinePrefix string TermColorManager func(b []byte) TermColor *os.Process // contains filtered or unexported fields }
func (*Process) ProcessName ¶
Click to show internal directories.
Click to hide internal directories.