Documentation ¶
Index ¶
- func BuildCommandFromString(input string) (string, []string)
- func CopyFile(src string, dst string) error
- func Getopt(name, dfault string) string
- func Hostname() (name string, err error)
- func Random(size int) (string, error)
- func RunCommand(command string, args []string) error
- func RunProcessAsDaemon(signalChan chan os.Signal, command string, args []string)
- func RunScript(script string, params map[string]string, loader func(string) ([]byte, error)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCommandFromString ¶
BuildCommandFromString parses a string containing a command and multiple arguments and returns a valid tuple to pass to exec.Command
func RunCommand ¶
RunCommand run a command and return.
func RunProcessAsDaemon ¶
RunProcessAsDaemon start a child process that will run indefinitely
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.