Documentation ¶
Index ¶
- func FindFiles(root string, opts FindFilesOpts) ([]string, error)
- func GetEnvVal(key, def string) string
- func GetWorkingDirectory() (string, error)
- type AsyncCommand
- type Command
- func (c *Command) In(dir string) *Command
- func (c *Command) MustRun()
- func (c *Command) MustRunE()
- func (c *Command) MustRunS()
- func (c *Command) MustRunV()
- func (c *Command) Run() error
- func (c *Command) RunE() error
- func (c *Command) RunS() error
- func (c *Command) RunV() error
- func (c *Command) WithArg(name, val string) *Command
- func (c *Command) WithEnv(name, val string) *Command
- type FindFilesOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWorkingDirectory ¶
Types ¶
type AsyncCommand ¶
type AsyncCommand struct {
// contains filtered or unexported fields
}
func AsyncCmdf ¶
func AsyncCmdf(format string, a ...interface{}) (*AsyncCommand, error)
func MustAsyncCmdf ¶
func MustAsyncCmdf(format string, a ...interface{}) *AsyncCommand
func (AsyncCommand) MustStart ¶
func (c AsyncCommand) MustStart()
func (AsyncCommand) MustStop ¶
func (c AsyncCommand) MustStop()
func (AsyncCommand) Start ¶
func (c AsyncCommand) Start() error
func (AsyncCommand) Stop ¶
func (c AsyncCommand) Stop() error
type Command ¶
type Command struct {
shx.PreparedCommand
}
type FindFilesOpts ¶
Click to show internal directories.
Click to hide internal directories.