Skip to content

Commit

Permalink
fix: accept capital chars in run command (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbozhenko authored Jul 1, 2024
1 parent f970bf2 commit 6a9ad1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/multigitter/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"regexp"
"sync"
"syscall"
"unicode"

"github.com/eiannone/keyboard"
"github.com/lindell/multi-gitter/internal/git"
Expand Down Expand Up @@ -420,7 +421,7 @@ func (r *Runner) interactive(dir string, repo scm.Repository) error {
return errRejected
}

switch char {
switch unicode.ToLower(char) {
case 'v':
fmt.Println("Showing changes...")
cmd := exec.Command("git", "diff", "HEAD~1")
Expand Down

0 comments on commit 6a9ad1b

Please sign in to comment.