diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-29 19:09:20 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | 138be04e6575f2bd087630e49d122af578c78bf6 (patch) | |
tree | ed038641d6871e49ff426096f300e6b3b3ab4f1e /pkg/gui/controllers/types.go | |
parent | 1a74ed32143f826104e1d60f4392d2d8ba53cd80 (diff) |
refactor contexts code
Diffstat (limited to 'pkg/gui/controllers/types.go')
-rw-r--r-- | pkg/gui/controllers/types.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/pkg/gui/controllers/types.go b/pkg/gui/controllers/types.go index 21f774944..19e3769a5 100644 --- a/pkg/gui/controllers/types.go +++ b/pkg/gui/controllers/types.go @@ -2,31 +2,9 @@ package controllers import ( "github.com/jesseduffield/lazygit/pkg/commands/models" - "github.com/jesseduffield/lazygit/pkg/commands/oscommands" - "github.com/jesseduffield/lazygit/pkg/config" - "github.com/jesseduffield/lazygit/pkg/gui/popup" "github.com/jesseduffield/lazygit/pkg/gui/types" ) -type IGuiCommon interface { - popup.IPopupHandler - - LogAction(action string) - LogCommand(cmdStr string, isCommandLine bool) - // we call this when we want to refetch some models and render the result. Internally calls PostRefreshUpdate - Refresh(types.RefreshOptions) error - // we call this when we've changed something in the view model but not the actual model, - // e.g. expanding or collapsing a folder in a file view. Calling 'Refresh' in this - // case would be overkill, although refresh will internally call 'PostRefreshUpdate' - PostRefreshUpdate(types.Context) error - RunSubprocessAndRefresh(oscommands.ICmdObj) error - PushContext(context types.Context, opts ...types.OnFocusOpts) error - PopContext() error - - GetAppState() *config.AppState - SaveAppState() error -} - type IRefHelper interface { CheckoutRef(ref string, options types.CheckoutRefOptions) error CreateGitResetMenu(ref string) error |