Skip to content

Commit 4fe49ba

Browse files
committed
fixup! Add runCommand function to Go template syntax
1 parent 7a0e096 commit 4fe49ba

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pkg/gui/controllers/helpers/refs_helper.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ package helpers
22

33
import (
44
"fmt"
5+
"strings"
6+
"text/template"
7+
58
"github.com/jesseduffield/gocui"
69
"github.com/jesseduffield/lazygit/pkg/commands/git_commands"
710
"github.com/jesseduffield/lazygit/pkg/commands/models"
@@ -10,8 +13,6 @@ import (
1013
"github.com/jesseduffield/lazygit/pkg/gui/types"
1114
"github.com/jesseduffield/lazygit/pkg/utils"
1215
"github.com/samber/lo"
13-
"strings"
14-
"text/template"
1516
)
1617

1718
type IRefsHelper interface {

pkg/gui/services/custom_commands/handler_creator.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ package custom_commands
33
import (
44
"errors"
55
"fmt"
6+
"strings"
7+
"text/template"
8+
69
"github.com/jesseduffield/gocui"
710
"github.com/jesseduffield/lazygit/pkg/config"
811
"github.com/jesseduffield/lazygit/pkg/gui/controllers/helpers"
912
"github.com/jesseduffield/lazygit/pkg/gui/style"
1013
"github.com/jesseduffield/lazygit/pkg/gui/types"
1114
"github.com/jesseduffield/lazygit/pkg/utils"
1215
"github.com/samber/lo"
13-
"strings"
14-
"text/template"
1516
)
1617

1718
// takes a custom command and returns a function that will be called when the corresponding user-defined keybinding is pressed

0 commit comments

Comments
 (0)