Documentation ¶
Index ¶
Constants ¶
View Source
const ShellBinary = "/bin/sh"
ShellBinary holds the path of the shell command
Variables ¶
This section is empty.
Functions ¶
func GetNewTempDir ¶
func GetNewTempDir() string
Types ¶
type Dir ¶
type Dir struct { Name string `ko:"name=name"` Dir []*Dir `ko:"name=dir"` File []*File `ko:"name=file"` }
func (*Dir) Materialize ¶
type FileSystem ¶
type FileSystem struct {
Root *Dir `ko:"name=root"` // local root
}
type GoTask ¶
type GoTask struct { Name string `ko:"name=name"` Binary string `ko:"name=binary"` Arg []string `ko:"name=arg"` Env []string `ko:"name=env"` Dir *string `ko:"name=dir"` After []*GoTask `ko:"name=after"` }
GoTask implements the running on an external command.
func (*GoTask) RunWithOutput ¶
RunWithOutput invokes the external command, waits until it is terminated and returns its output.
Click to show internal directories.
Click to hide internal directories.