diff options
Diffstat (limited to 'pkg/gui/services/custom_commands/resolver.go')
-rw-r--r-- | pkg/gui/services/custom_commands/resolver.go | 8 |
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 |