963 B
963 B
Module - "exec"
exec := import("exec")
Module Functions
look_path(file string) => string/error
: port ofexec.LookPath
functioncommand(name string, args array(string)) =>
Cmd/error: port of
exec.Command` function
Cmd Functions
cmd := exec.command("echo", ["foo", "bar"])
output := cmd.output()
combined_output() => bytes/error
: port ofexec.Cmd.CombinedOutput
functionoutput() => bytes/error
: port ofexec.Cmd.Output
functioncombined_output() => bytes/error
: port ofexec.Cmd.CombinedOutput
functionrun() => error
: port ofexec.Cmd.Run
functionstart() => error
: port ofexec.Cmd.Start
functionwait() => error
: port ofexec.Cmd.Wait
functionset_path(path string)
: setsPath
ofexec.Cmd
set_dir(dir string)
: setsDir
ofexec.Cmd
set_env(env array(string))
: setsEnv
ofexec.Cmd
process() => Process
: returns Process (Process
ofexec.Cmd
)