Documentation
¶
Index ¶
- Variables
- type BuiltinCommand
- func (c *BuiltinCommand) AddFiles(files ...*os.File)
- func (c *BuiltinCommand) Close() error
- func (c *BuiltinCommand) FileExt() string
- func (c *BuiltinCommand) Kill()
- func (c *BuiltinCommand) SameAs(o Command) bool
- func (c *BuiltinCommand) SetStderr(w io.Writer) bool
- func (c *BuiltinCommand) SetStdin(r io.Reader) bool
- func (c *BuiltinCommand) SetStdout(w io.Writer) bool
- func (c *BuiltinCommand) Start() error
- func (c *BuiltinCommand) Wait() (int, error)
- type BuiltinCommandFunc
- type Command
- type MacroCommand
- func (mc *MacroCommand) AddPiped(c Command) error
- func (mc *MacroCommand) Anchor() string
- func (mc *MacroCommand) Close()
- func (mc *MacroCommand) FileExt() string
- func (mc *MacroCommand) Kill()
- func (mc *MacroCommand) Run() (int, error)
- func (mc *MacroCommand) SameAs(other *MacroCommand) bool
- func (mc *MacroCommand) SetStderr(w *os.File) bool
- func (mc *MacroCommand) Stdout() (io.Reader, bool)
- type OsCommand
- func (c *OsCommand) AddFiles(f ...*os.File)
- func (c *OsCommand) Close() error
- func (c *OsCommand) FileExt() string
- func (c *OsCommand) Kill()
- func (c *OsCommand) SameAs(o Command) bool
- func (c *OsCommand) SetStderr(w io.Writer) bool
- func (c *OsCommand) SetStdin(r io.Reader) bool
- func (c *OsCommand) SetStdout(w io.Writer) bool
- func (c *OsCommand) Start() error
- func (c *OsCommand) Wait() (int, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BuiltinCommand ¶
type BuiltinCommand struct { Args []string F BuiltinCommandFunc // contains filtered or unexported fields }
func (*BuiltinCommand) AddFiles ¶
func (c *BuiltinCommand) AddFiles(files ...*os.File)
func (*BuiltinCommand) Close ¶
func (c *BuiltinCommand) Close() error
func (*BuiltinCommand) FileExt ¶
func (c *BuiltinCommand) FileExt() string
func (*BuiltinCommand) Kill ¶
func (c *BuiltinCommand) Kill()
func (*BuiltinCommand) SameAs ¶
func (c *BuiltinCommand) SameAs(o Command) bool
func (*BuiltinCommand) SetStderr ¶
func (c *BuiltinCommand) SetStderr(w io.Writer) bool
func (*BuiltinCommand) SetStdin ¶
func (c *BuiltinCommand) SetStdin(r io.Reader) bool
func (*BuiltinCommand) SetStdout ¶
func (c *BuiltinCommand) SetStdout(w io.Writer) bool
func (*BuiltinCommand) Start ¶
func (c *BuiltinCommand) Start() error
func (*BuiltinCommand) Wait ¶
func (c *BuiltinCommand) Wait() (int, error)
type BuiltinCommandFunc ¶
type Command ¶
type MacroCommand ¶
type MacroCommand struct {
// contains filtered or unexported fields
}
func BuildCommandLine ¶
func BuildCommandLine(commandLine string, builtins map[string]BuiltinCommandFunc) ([]*MacroCommand, error)
func (*MacroCommand) AddPiped ¶
func (mc *MacroCommand) AddPiped(c Command) error
func (*MacroCommand) Anchor ¶
func (mc *MacroCommand) Anchor() string
func (*MacroCommand) Close ¶ added in v0.2.3
func (mc *MacroCommand) Close()
func (*MacroCommand) FileExt ¶
func (mc *MacroCommand) FileExt() string
func (*MacroCommand) Kill ¶
func (mc *MacroCommand) Kill()
func (*MacroCommand) Run ¶
func (mc *MacroCommand) Run() (int, error)
func (*MacroCommand) SameAs ¶
func (mc *MacroCommand) SameAs(other *MacroCommand) bool
func (*MacroCommand) SetStderr ¶
func (mc *MacroCommand) SetStderr(w *os.File) bool
func (*MacroCommand) Stdout ¶
func (mc *MacroCommand) Stdout() (io.Reader, bool)
type OsCommand ¶
Click to show internal directories.
Click to hide internal directories.