summaryrefslogtreecommitdiffstats
path: root/pkg/gui/services/custom_commands
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-08-12 09:24:39 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-08-13 13:56:50 +1000
commitfaed509bfd142a93cddf92a8795eaeb7e754b794 (patch)
tree832c690e3668a9d0e540a8b52d8053148433a6f5 /pkg/gui/services/custom_commands
parentb8d944399901685e5edc1bded23457db0dd283c5 (diff)
fix CI
Diffstat (limited to 'pkg/gui/services/custom_commands')
-rw-r--r--pkg/gui/services/custom_commands/resolver.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/pkg/gui/services/custom_commands/resolver.go b/pkg/gui/services/custom_commands/resolver.go
index 1b80987c1..4702d36c4 100644
--- a/pkg/gui/services/custom_commands/resolver.go
+++ b/pkg/gui/services/custom_commands/resolver.go
@@ -2,7 +2,6 @@ package custom_commands
import (
"bytes"
- "fmt"
"text/template"
"github.com/jesseduffield/lazygit/pkg/common"
@@ -106,13 +105,6 @@ func (self *Resolver) resolveMenuOption(option *config.CustomCommandMenuOption,
}, nil
}
-func main() {
- fmt.Println(ResolveTemplate("old approach: {{index .PromptResponses 0}}, new approach: {{ .Form.a }}", CustomCommandObject{
- PromptResponses: []string{"a"},
- Form: map[string]string{"a": "B"},
- }))
-}
-
type CustomCommandObject struct {
// deprecated. Use Responses instead
PromptResponses []string