diff --git a/draw.go b/draw.go index 707abe4..dfbe14c 100644 --- a/draw.go +++ b/draw.go @@ -4,10 +4,10 @@ import ( "strconv" "strings" - "go.wit.com/gui/gui" + "go.wit.com/gui" "go.wit.com/lib/gadgets" - "go.wit.com/lib/widget" "go.wit.com/log" + "go.wit.com/widget" ) // creates the actual widgets. diff --git a/git.go b/git.go index 31175b6..7c4e3bb 100644 --- a/git.go +++ b/git.go @@ -8,6 +8,10 @@ import ( "io/ioutil" ) +func (rs *RepoStatus) String() string { + return rs.repopath +} + func (rs *RepoStatus) GetPath() string { return rs.repopath } diff --git a/go.mod b/go.mod index c9d2f59..34175e3 100644 --- a/go.mod +++ b/go.mod @@ -1,16 +1,18 @@ -module go.wit.com/gui/lib/repostatus +module go.wit.com/lib/gui/repostatus go 1.21.4 require ( - go.wit.com/gui/gadgets v0.12.5 - go.wit.com/gui/gui v0.12.10 + go.wit.com/gui v0.9.24 + go.wit.com/lib/gadgets v0.12.7 go.wit.com/log v0.5.5 + go.wit.com/widget v1.1.5 ) require ( go.wit.com/dev/alexflint/arg v1.4.5 // indirect go.wit.com/dev/alexflint/scalar v1.2.1 // indirect go.wit.com/dev/davecgh/spew v1.1.4 // indirect + go.wit.com/gui/gui v0.12.10 // indirect go.wit.com/gui/widget v1.1.3 // indirect ) diff --git a/go.sum b/go.sum index 692f9c8..5875ac6 100644 --- a/go.sum +++ b/go.sum @@ -4,11 +4,15 @@ go.wit.com/dev/alexflint/scalar v1.2.1 h1:loXOcbVnd+8YeJRLey+XXidecBiedMDO00zQ26 go.wit.com/dev/alexflint/scalar v1.2.1/go.mod h1:+rYsfxqdI2cwA8kJ7GCMwWbNJvfvWUurOCXLiwdTtSs= go.wit.com/dev/davecgh/spew v1.1.4 h1:C9hj/rjlUpdK+E6aroyLjCbS5MFcyNUOuP1ICLWdNek= go.wit.com/dev/davecgh/spew v1.1.4/go.mod h1:sihvWmnQ/09FWplnEmozt90CCVqBtGuPXM811tgfhFA= -go.wit.com/gui/gadgets v0.12.5 h1:Eg7UbwnvwGgYlNX+sgKQNVcbRMZyYL4ChDmS2p/DHtM= -go.wit.com/gui/gadgets v0.12.5/go.mod h1:OB7MtEZy/VK2HrU3yiEuzY9n4LjZwO0L06NYUAFybJs= +go.wit.com/gui v0.9.24 h1:NYcNrEIkcnDqOJ1rKQCvXOo3Jp2XUBgR2fTfO4x3WMM= +go.wit.com/gui v0.9.24/go.mod h1:fBjVvDK/rYjbDz6xbLYXtdDLyfe5X/J4NEdfZRvVuXc= go.wit.com/gui/gui v0.12.10 h1:52wFdTqB/GpsFKYFTUvSbHQWNEXz114lhvTfMVrXpYM= go.wit.com/gui/gui v0.12.10/go.mod h1:YgbFWxsGqZb45oLGaHim2GukPzPgMLQcVRRI0QkrGS8= go.wit.com/gui/widget v1.1.3 h1:GvLzGSOF9tfmoh6HNbFdN+NSlBo2qeS/Ba2TnQQ1A1U= go.wit.com/gui/widget v1.1.3/go.mod h1:A6/FaiFQtAHTjgo7c4FrokXe6bXX1Cowo35b2Lgi31E= +go.wit.com/lib/gadgets v0.12.7 h1:rWao9D6MXTe4FQ0qVixViuywHTbppvRIFJUS/UPk/K0= +go.wit.com/lib/gadgets v0.12.7/go.mod h1:jDAyYalsa8cHElAl83T34qm5n8yEy+JaWSlFQoX8d7c= go.wit.com/log v0.5.5 h1:bK3b94uVKgev4jB5wg06FnvCFBEapQICTSH2YW+CWr4= 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/go.mod h1:I8tnD3x3ECbB/CRNnLCdC+uoyk7rK0AEkzK1bQYSqoQ= diff --git a/new.go b/new.go index 6242987..c5a0756 100644 --- a/new.go +++ b/new.go @@ -1,7 +1,7 @@ package repostatus import ( - "go.wit.com/gui/gui" + "go.wit.com/gui" "go.wit.com/lib/gadgets" "go.wit.com/log" ) diff --git a/structs.go b/structs.go index e30c133..5097c22 100644 --- a/structs.go +++ b/structs.go @@ -1,7 +1,7 @@ package repostatus import ( - "go.wit.com/gui/gui" + "go.wit.com/gui" "go.wit.com/lib/gadgets" ) diff --git a/unix.go b/unix.go index 716798e..6d3615c 100644 --- a/unix.go +++ b/unix.go @@ -146,7 +146,7 @@ func RunCmd(workingpath string, parts []string) (error, bool, string) { output, err := cmd.CombinedOutput() if err != nil { log.Error(err) - log.Warn("output was", output) + log.Warn("output was", string(output)) log.Warn("cmd exited with error", err) return err, false, string(output) }