old code, new gadgets
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
1d2dacab26
commit
940b1d8b6e
2
go.mod
2
go.mod
|
@ -4,7 +4,7 @@ go 1.21.4
|
||||||
|
|
||||||
require (
|
require (
|
||||||
go.wit.com/gui v0.12.16
|
go.wit.com/gui v0.12.16
|
||||||
go.wit.com/lib/gadgets v0.12.8
|
go.wit.com/lib/gadgets v0.12.9
|
||||||
go.wit.com/log v0.5.5
|
go.wit.com/log v0.5.5
|
||||||
go.wit.com/widget v1.1.5
|
go.wit.com/widget v1.1.5
|
||||||
)
|
)
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -6,8 +6,8 @@ go.wit.com/dev/davecgh/spew v1.1.4 h1:C9hj/rjlUpdK+E6aroyLjCbS5MFcyNUOuP1ICLWdNe
|
||||||
go.wit.com/dev/davecgh/spew v1.1.4/go.mod h1:sihvWmnQ/09FWplnEmozt90CCVqBtGuPXM811tgfhFA=
|
go.wit.com/dev/davecgh/spew v1.1.4/go.mod h1:sihvWmnQ/09FWplnEmozt90CCVqBtGuPXM811tgfhFA=
|
||||||
go.wit.com/gui v0.12.16 h1:GBiPiDyzkGCxwNegehHiONmNppaqyFZv7iteLUHJ/Po=
|
go.wit.com/gui v0.12.16 h1:GBiPiDyzkGCxwNegehHiONmNppaqyFZv7iteLUHJ/Po=
|
||||||
go.wit.com/gui v0.12.16/go.mod h1:27+THr2a84GZ61KKUuN30WYnYoSsBewllUKc+fnWLto=
|
go.wit.com/gui v0.12.16/go.mod h1:27+THr2a84GZ61KKUuN30WYnYoSsBewllUKc+fnWLto=
|
||||||
go.wit.com/lib/gadgets v0.12.8 h1:Y5YSOdoB3dD70j/cXrQPQay4P13TYMn2IIU8BZ8DHHg=
|
go.wit.com/lib/gadgets v0.12.9 h1:yayXQDiAENfMElRMeh7Yab1f6HNkiy5Aw6KNP5Wd1DI=
|
||||||
go.wit.com/lib/gadgets v0.12.8/go.mod h1:jDAyYalsa8cHElAl83T34qm5n8yEy+JaWSlFQoX8d7c=
|
go.wit.com/lib/gadgets v0.12.9/go.mod h1:Hb/vSiW22hPJjTVA1mShQ6HuqQ7dHGB95WLEfZlPO3M=
|
||||||
go.wit.com/log v0.5.5 h1:bK3b94uVKgev4jB5wg06FnvCFBEapQICTSH2YW+CWr4=
|
go.wit.com/log v0.5.5 h1:bK3b94uVKgev4jB5wg06FnvCFBEapQICTSH2YW+CWr4=
|
||||||
go.wit.com/log v0.5.5/go.mod h1:BaJBfHFqcJSJLXGQ9RHi3XVhPgsStxSMZRlaRxW4kAo=
|
go.wit.com/log v0.5.5/go.mod h1:BaJBfHFqcJSJLXGQ9RHi3XVhPgsStxSMZRlaRxW4kAo=
|
||||||
go.wit.com/widget v1.1.5 h1:jx5hJ2WLZJnCcvMuaLHegzpNlzwo+0kOkzsRkzRiB30=
|
go.wit.com/widget v1.1.5 h1:jx5hJ2WLZJnCcvMuaLHegzpNlzwo+0kOkzsRkzRiB30=
|
||||||
|
|
8
unix.go
8
unix.go
|
@ -124,11 +124,6 @@ func runCmd(path string, parts []string) (error, bool, string) {
|
||||||
return RunCmd(fulldir, parts)
|
return RunCmd(fulldir, parts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func RunCmdNew(workingpath string, parts []string) (error, bool, string) {
|
|
||||||
time.Sleep(10 * time.Second)
|
|
||||||
return RunCmd(workingpath, parts)
|
|
||||||
}
|
|
||||||
|
|
||||||
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")
|
||||||
|
@ -142,9 +137,6 @@ func RunCmd(workingpath string, parts []string) (error, bool, string) {
|
||||||
parts = parts[1:]
|
parts = parts[1:]
|
||||||
|
|
||||||
log.Warn("working path =", workingpath, "thing =", thing, "cmdline =", parts)
|
log.Warn("working path =", workingpath, "thing =", thing, "cmdline =", parts)
|
||||||
if thing == "pwd" {
|
|
||||||
os.Exit(-1)
|
|
||||||
}
|
|
||||||
// Create the command
|
// Create the command
|
||||||
cmd := exec.Command(thing, parts...)
|
cmd := exec.Command(thing, parts...)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue