Documentation ¶
Index ¶
- func Arg(n int) string
- func ArgN() int
- func Args() []string
- func Cd(dir string)
- func CheckErr(err error) bool
- func Chmod(perm int, fileList ...string)
- func Cp(args ...string)
- func Err() error
- func Exists(name string) bool
- func ExistsDir(name string) bool
- func ExistsFile(name string) bool
- func Exit(code int)
- func ExitIfErr()
- func Mkdir(args ...string)
- func Mv(args ...string)
- func Popd()
- func Pushd(dir string)
- func Pwd() string
- func Rm(args ...string)
- func SetExitOnError(enable bool) bool
- func SetXtrace(enable bool) bool
- func Touch(args ...string)
- type MakeAuto
- type MakeFile
- type MakeFunc
- type MakeTask
- type MakeTasks
- type Stream
- func Cat(args ...string) Stream
- func Echo(msg string) Stream
- func Echof(format string, v ...interface{}) Stream
- func Exec(name string, args ...string) Stream
- func Exec2(name string, args ...string) Stream
- func From(ss ...string) Stream
- func FromFields(fields string) Stream
- func FromReader(r io.Reader) Stream
- func FromSlice(ss []string) Stream
- func Grep(pattern string, fileList ...string) Stream
- func GrepV(pattern string, fileList ...string) Stream
- func Ls(args ...string) Stream
- func Sed(fn func(string) string, fileList ...string) Stream
- func (sin Stream) Exec(name string, args ...string) Stream
- func (sin Stream) Exec2(name string, args ...string) Stream
- func (sin Stream) Grep(pattern string) Stream
- func (sin Stream) GrepV(pattern string) Stream
- func (s Stream) Print()
- func (s Stream) PrintTo(w io.Writer)
- func (s Stream) PrintToDevNull()
- func (s Stream) PrintToErr()
- func (s Stream) PrintToFile(fname string, append bool)
- func (s Stream) Reader() io.Reader
- func (sin Stream) Sed(fn func(string) string) Stream
- func (s Stream) Slice() []string
- func (s Stream) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExistsFile ¶
func SetExitOnError ¶
Types ¶
type MakeFile ¶
type MakeFile struct {
// contains filtered or unexported fields
}
func NewMakeFile ¶
func NewMakeFile() *MakeFile
type Stream ¶
type Stream chan string
func FromFields ¶
func FromReader ¶
func (Stream) PrintToDevNull ¶
func (s Stream) PrintToDevNull()
func (Stream) PrintToErr ¶
func (s Stream) PrintToErr()
func (Stream) PrintToFile ¶
Click to show internal directories.
Click to hide internal directories.