parent
2940358bf9
commit
e2c6ba0c2b
2
run.go
2
run.go
|
@ -110,6 +110,7 @@ func RunPath(path string, args []string) *RunResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
// send the path and the command
|
// send the path and the command
|
||||||
|
// captures the output so you can not see the command run in real time
|
||||||
func RunCmd(workingpath string, parts []string) (error, bool, string) {
|
func RunCmd(workingpath string, parts []string) (error, bool, string) {
|
||||||
if len(parts) == 0 {
|
if len(parts) == 0 {
|
||||||
log.Warn("command line was empty")
|
log.Warn("command line was empty")
|
||||||
|
@ -172,6 +173,7 @@ func RunCmd(workingpath string, parts []string) (error, bool, string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// send the path and the command
|
// send the path and the command
|
||||||
|
// also does not seem to show the output in realtime
|
||||||
func RunCmdRun(workingpath string, parts []string) error {
|
func RunCmdRun(workingpath string, parts []string) error {
|
||||||
if len(parts) == 0 {
|
if len(parts) == 0 {
|
||||||
log.Warn("command line was empty")
|
log.Warn("command line was empty")
|
||||||
|
|
1
shell.go
1
shell.go
|
@ -113,6 +113,7 @@ func Exec(cmdline string) {
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// run interactively. output from the cmd is in real time
|
||||||
func NewRun(workingpath string, cmd []string) error {
|
func NewRun(workingpath string, cmd []string) error {
|
||||||
log.Log(INFO, "NewRun() ", cmd)
|
log.Log(INFO, "NewRun() ", cmd)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue