diff options
Diffstat (limited to 'draw.go')
| -rw-r--r-- | draw.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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") |
