new paths

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-18 05:01:54 -06:00
parent ff3a51f354
commit 623b35629b
7 changed files with 20 additions and 10 deletions

View File

@ -4,10 +4,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"go.wit.com/gui/gui" "go.wit.com/gui"
"go.wit.com/lib/gadgets" "go.wit.com/lib/gadgets"
"go.wit.com/lib/widget"
"go.wit.com/log" "go.wit.com/log"
"go.wit.com/widget"
) )
// creates the actual widgets. // creates the actual widgets.

4
git.go
View File

@ -8,6 +8,10 @@ import (
"io/ioutil" "io/ioutil"
) )
func (rs *RepoStatus) String() string {
return rs.repopath
}
func (rs *RepoStatus) GetPath() string { func (rs *RepoStatus) GetPath() string {
return rs.repopath return rs.repopath
} }

8
go.mod
View File

@ -1,16 +1,18 @@
module go.wit.com/gui/lib/repostatus module go.wit.com/lib/gui/repostatus
go 1.21.4 go 1.21.4
require ( require (
go.wit.com/gui/gadgets v0.12.5 go.wit.com/gui v0.9.24
go.wit.com/gui/gui v0.12.10 go.wit.com/lib/gadgets v0.12.7
go.wit.com/log v0.5.5 go.wit.com/log v0.5.5
go.wit.com/widget v1.1.5
) )
require ( require (
go.wit.com/dev/alexflint/arg v1.4.5 // indirect go.wit.com/dev/alexflint/arg v1.4.5 // indirect
go.wit.com/dev/alexflint/scalar v1.2.1 // indirect go.wit.com/dev/alexflint/scalar v1.2.1 // indirect
go.wit.com/dev/davecgh/spew v1.1.4 // 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 go.wit.com/gui/widget v1.1.3 // indirect
) )

8
go.sum
View File

@ -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/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 h1:C9hj/rjlUpdK+E6aroyLjCbS5MFcyNUOuP1ICLWdNek=
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/gadgets v0.12.5 h1:Eg7UbwnvwGgYlNX+sgKQNVcbRMZyYL4ChDmS2p/DHtM= go.wit.com/gui v0.9.24 h1:NYcNrEIkcnDqOJ1rKQCvXOo3Jp2XUBgR2fTfO4x3WMM=
go.wit.com/gui/gadgets v0.12.5/go.mod h1:OB7MtEZy/VK2HrU3yiEuzY9n4LjZwO0L06NYUAFybJs= 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 h1:52wFdTqB/GpsFKYFTUvSbHQWNEXz114lhvTfMVrXpYM=
go.wit.com/gui/gui v0.12.10/go.mod h1:YgbFWxsGqZb45oLGaHim2GukPzPgMLQcVRRI0QkrGS8= 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 h1:GvLzGSOF9tfmoh6HNbFdN+NSlBo2qeS/Ba2TnQQ1A1U=
go.wit.com/gui/widget v1.1.3/go.mod h1:A6/FaiFQtAHTjgo7c4FrokXe6bXX1Cowo35b2Lgi31E= 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 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/go.mod h1:I8tnD3x3ECbB/CRNnLCdC+uoyk7rK0AEkzK1bQYSqoQ=

2
new.go
View File

@ -1,7 +1,7 @@
package repostatus package repostatus
import ( import (
"go.wit.com/gui/gui" "go.wit.com/gui"
"go.wit.com/lib/gadgets" "go.wit.com/lib/gadgets"
"go.wit.com/log" "go.wit.com/log"
) )

View File

@ -1,7 +1,7 @@
package repostatus package repostatus
import ( import (
"go.wit.com/gui/gui" "go.wit.com/gui"
"go.wit.com/lib/gadgets" "go.wit.com/lib/gadgets"
) )

View File

@ -146,7 +146,7 @@ func RunCmd(workingpath string, parts []string) (error, bool, string) {
output, err := cmd.CombinedOutput() output, err := cmd.CombinedOutput()
if err != nil { if err != nil {
log.Error(err) log.Error(err)
log.Warn("output was", output) log.Warn("output was", string(output))
log.Warn("cmd exited with error", err) log.Warn("cmd exited with error", err)
return err, false, string(output) return err, false, string(output)
} }