Versions in this module Expand all Collapse all v0 v0.0.9 Jul 30, 2021 v0.0.8 Jul 23, 2021 Changes in this version + const Alone + const And + const Or + var Black = color.New(color.FgBlack) + var Blue = color.New(color.FgBlue) + var Cyan = color.New(color.FgCyan) + var Green = color.New(color.FgGreen) + var Magenta = color.New(color.FgMagenta) + var Red = color.New(color.FgRed) + var White = color.New(color.FgWhite) + var Yellow = color.New(color.FgYellow) + func Exec(command string, opts ...Options) error + func Execs(commands []string, control ...string) error + func Print(c *color.Color, s string) + func Shell(command string, opts ...Options) error + func Sudo(command string, opts ...Options) error + type Buffer struct + func (b *Buffer) Copy(src io.Reader) (written int64, err error) + func (b *Buffer) Len() int + func (b *Buffer) Read(p []byte) (n int, err error) + func (b *Buffer) ReadString(delim byte) (line string, err error) + func (b *Buffer) String() string + func (b *Buffer) Write(p []byte) (n int, err error) + type Command struct + Cmd *exec.Cmd + Err io.Reader + In io.Writer + Out io.Reader + Ssh *ssh.Session + func NewCommand(command string, opts ...Options) (*Command, error) + func (c *Command) Close() error + func (c *Command) CombinedOutput() (string, error) + func (c *Command) Error(data []byte) (int, error) + func (c *Command) ErrorAll() (string, error) + func (c *Command) ErrorLine() (string, error) + func (c *Command) Exited() bool + func (c *Command) Kill() error + func (c *Command) Output() (string, error) + func (c *Command) Print() + func (c *Command) PrintError() + func (c *Command) Read(data []byte) (int, error) + func (c *Command) ReadAll() (string, error) + func (c *Command) ReadLine() (string, error) + func (c *Command) Run() error + func (c *Command) Start() error + func (c *Command) Wait() error + func (c *Command) Write(data []byte) (int, error) + func (c *Command) WriteLine(command string) error + type Options struct + Async bool + Echo bool + Passwd string + Stderr io.ReadWriter + Stdin io.ReadWriter + Stdout io.ReadWriter