diff options
| author | Jeff Carr <[email protected]> | 2024-01-20 21:38:12 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-20 21:38:12 -0600 |
| commit | a9a42d5cd87ee68e26651be81088649a32c711e6 (patch) | |
| tree | 5d4ef520d6b7a02ec864b36d1716860f20fcf2bf | |
| parent | ca5007fa87f410db3d96a47de67e77144c1c6b7b (diff) | |
add 'git pull' buttonv0.12.18
Signed-off-by: Jeff Carr <[email protected]>
| -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") |
