summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/types.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-31 22:11:34 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commit2a1e3faa0c61cc8c2418310089485dbab268228f (patch)
tree742988b455946b12a84adccb950b8df5a631417b /pkg/gui/controllers/types.go
parenteb056576cfe7d97503ef1baf3e1730c87d63976f (diff)
resetting controllers on new repo
Diffstat (limited to 'pkg/gui/controllers/types.go')
-rw-r--r--pkg/gui/controllers/types.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/pkg/gui/controllers/types.go b/pkg/gui/controllers/types.go
index c3466e536..ecd02536c 100644
--- a/pkg/gui/controllers/types.go
+++ b/pkg/gui/controllers/types.go
@@ -1,39 +1,9 @@
package controllers
import (
- "github.com/jesseduffield/lazygit/pkg/commands/models"
"github.com/jesseduffield/lazygit/pkg/gui/types"
)
-type IRefsHelper interface {
- CheckoutRef(ref string, options types.CheckoutRefOptions) error
- CreateGitResetMenu(ref string) error
- ResetToRef(ref string, strength string, envVars []string) error
- NewBranch(from string, fromDescription string, suggestedBranchname string) error
-}
-
-type ISuggestionsHelper interface {
- GetRemoteSuggestionsFunc() func(string) []*types.Suggestion
- GetBranchNameSuggestionsFunc() func(string) []*types.Suggestion
- GetFilePathSuggestionsFunc() func(string) []*types.Suggestion
- GetRemoteBranchesSuggestionsFunc(separator string) func(string) []*types.Suggestion
- GetRefsSuggestionsFunc() func(string) []*types.Suggestion
- GetCustomCommandsHistorySuggestionsFunc() func(string) []*types.Suggestion
-}
-
-type IFileHelper interface {
- EditFile(filename string) error
- EditFileAtLine(filename string, lineNumber int) error
- OpenFile(filename string) error
-}
-
-type IWorkingTreeHelper interface {
- AnyStagedFiles() bool
- AnyTrackedFiles() bool
- IsWorkingTreeDirty() bool
- FileForSubmodule(submodule *models.SubmoduleConfig) *models.File
-}
-
// all fields mandatory (except `CanRebase` because it's boolean)
type SwitchToCommitFilesContextOpts struct {
RefName string