add 'git pull' button

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-20 21:38:12 -06:00
parent ca5007fa87
commit a9a42d5cd8
1 changed files with 5 additions and 2 deletions

View File

@ -111,8 +111,11 @@ func (rs *RepoStatus) drawGitCommands() {
rs.Update()
})
newgrid.NewButton("git pull" func() {
log.Warn("Add git pull here")
newgrid.NewButton("git pull", func() {
var cmd []string
cmd = append(cmd, "git", "pull")
err, b, output := RunCmd("/home/jcarr/go/src/"+rs.repopath, cmd)
log.Warn("Did git pull here", err, b, output)
})
rs.major = gadgets.NewBasicCombobox(newgrid, "major")