parent
ff3a51f354
commit
623b35629b
4
draw.go
4
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.
|
||||
|
|
4
git.go
4
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
|
||||
}
|
||||
|
|
8
go.mod
8
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
|
||||
)
|
||||
|
|
8
go.sum
8
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=
|
||||
|
|
2
new.go
2
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"
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package repostatus
|
||||
|
||||
import (
|
||||
"go.wit.com/gui/gui"
|
||||
"go.wit.com/gui"
|
||||
"go.wit.com/lib/gadgets"
|
||||
)
|
||||
|
||||
|
|
2
unix.go
2
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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue