diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-13 20:26:02 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-13 20:26:02 +1000 |
commit | 97cff656121270e9c790432e28622d92ab7b0f1a (patch) | |
tree | 7425013e94dc0a19699b48bde6bb20c6f5b86c8a /pkg/app | |
parent | f9c39ad64bddd1577636c0ce5606eda44bc704ef (diff) |
progress on refactor
Diffstat (limited to 'pkg/app')
-rw-r--r-- | pkg/app/app.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go index 726567b01..b6318b745 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -4,8 +4,10 @@ import ( "io" "github.com/Sirupsen/logrus" + "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/commands" "github.com/jesseduffield/lazygit/pkg/config" + "github.com/jesseduffield/lazygit/pkg/gui" ) // App struct @@ -16,6 +18,7 @@ type App struct { Log *logrus.Logger OSCommand *commands.OSCommand GitCommand *commands.GitCommand + Gui *gocui.Gui } // NewApp retruns a new applications @@ -34,6 +37,10 @@ func NewApp(config config.AppConfigurer) (*App, error) { if err != nil { return nil, err } + app.Gui, err = gui.NewGui(app.Log, app.GitCommand, config.GetVersion()) + if err != nil { + return nil, err + } return app, nil } |