Documentation ¶
Index ¶
- func CheckDir(dir string) error
- func CleanDirs() error
- func Extract(filePath, extractPath, fileName string) error
- func GitGet(cmd Command, repo, destination string) error
- type CacheDirs
- type Cmd
- func (c Cmd) Exec(name string, commands ...string) ([]string, error)
- func (c Cmd) ExecInDir(name string, dir string, commands ...string) ([]string, error)
- func (c Cmd) ExecInDirUnparsed(name, dir string, commands ...string) (string, error)
- func (c Cmd) ExecUnparsed(name string, commands ...string) (string, error)
- type CmdMock
- func (c CmdMock) Exec(n string, cmds ...string) ([]string, error)
- func (c CmdMock) ExecInDir(n string, d string, cmds ...string) ([]string, error)
- func (c CmdMock) ExecInDirUnparsed(n string, d string, cmds ...string) (string, error)
- func (c CmdMock) ExecUnparsed(n string, cmds ...string) (string, error)
- type Command
- type Dirs
- type TmpDirs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cmd ¶
func (Cmd) Exec ¶
Exec generates a command from a string, runs it, then returns that commands stdout.
func (Cmd) ExecInDirUnparsed ¶
ExecInDirUnparsed generates a command from a string, runs it within the specified directory
type CmdMock ¶
type CmdMock struct { ReturnValue []string ReturnValueUnparsed string ReturnError bool ReturnErrorMsg string CmdExecuted string }
func (CmdMock) ExecInDirUnparsed ¶
type Dirs ¶
func CreateDirs ¶
Click to show internal directories.
Click to hide internal directories.