diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 19:10:57 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 20:48:49 +1000 |
commit | 1759ddf2470389d8de7ccedad24caf66c3cdb7d5 (patch) | |
tree | 728215e1a6a2e60580ac905b1709f67a38f1814c /pkg/gui/gui.go | |
parent | f9643448a4ba186fb56d408a5ee8a21193986cd6 (diff) |
move OS commands into their own package
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 6dc3bf12c..8c85a468f 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -22,6 +22,7 @@ import ( "github.com/golang-collections/collections/stack" "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/commands" + "github.com/jesseduffield/lazygit/pkg/commands/oscommands" "github.com/jesseduffield/lazygit/pkg/commands/patch" "github.com/jesseduffield/lazygit/pkg/config" "github.com/jesseduffield/lazygit/pkg/i18n" @@ -90,7 +91,7 @@ type Gui struct { g *gocui.Gui Log *logrus.Entry GitCommand *commands.GitCommand - OSCommand *commands.OSCommand + OSCommand *oscommands.OSCommand SubProcess *exec.Cmd State *guiState Config config.AppConfigurer @@ -384,7 +385,7 @@ func (gui *Gui) resetState() { // for now the split view will always be on // NewGui builds a new gui handler -func NewGui(log *logrus.Entry, gitCommand *commands.GitCommand, oSCommand *commands.OSCommand, tr *i18n.Localizer, config config.AppConfigurer, updater *updates.Updater, filterPath string, showRecentRepos bool) (*Gui, error) { +func NewGui(log *logrus.Entry, gitCommand *commands.GitCommand, oSCommand *oscommands.OSCommand, tr *i18n.Localizer, config config.AppConfigurer, updater *updates.Updater, filterPath string, showRecentRepos bool) (*Gui, error) { gui := &Gui{ Log: log, GitCommand: gitCommand, |