Skip to content

Commit

Permalink
Merge pull request #1622 from rsteube/git-blame-dash
Browse files Browse the repository at this point in the history
git: blame - dash completion
  • Loading branch information
rsteube authored Mar 31, 2023
2 parents 81893f5 + 94bd3b9 commit bf7d893
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions completers/git_completer/cmd/blame.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,8 @@ func init() {
return git.ActionRefFiles(c.Args[0])
}),
)

carapace.Gen(blameCmd).DashAnyCompletion(
carapace.ActionPositional(blameCmd),
)
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.19
require (
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
github.com/pelletier/go-toml v1.9.5
github.com/rsteube/carapace v0.33.9
github.com/rsteube/carapace v0.33.10
github.com/rsteube/carapace-bridge v0.0.16
github.com/rsteube/carapace-spec v0.6.5
github.com/spf13/cobra v1.6.1
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3v
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rsteube/carapace v0.33.9 h1:dUBWNWXTUCTc5qQcpA6jb9PuuO1jkNDFPSuMkGk8TGg=
github.com/rsteube/carapace v0.33.9/go.mod h1:/ALYHicIpak6TjQnKl7HupclqJydy2LQb6CkawYBxDo=
github.com/rsteube/carapace v0.33.10 h1:8eb+rvZFObqnibO7qUHva+tmUO+OCfoukDFd6rh+Dss=
github.com/rsteube/carapace v0.33.10/go.mod h1:/ALYHicIpak6TjQnKl7HupclqJydy2LQb6CkawYBxDo=
github.com/rsteube/carapace-bridge v0.0.16 h1:urbBN59Kx3d1bdOLvDe5DalvVwJK1tA+d8AXb/4Oax8=
github.com/rsteube/carapace-bridge v0.0.16/go.mod h1:20dVunkGVXzlpVz6Tkv0pSxEXm3N0QJ528zYdsfUrd8=
github.com/rsteube/carapace-pflag v0.1.0 h1:CPJRlj3jbyOnxuMf5pdrM76hEwdQ0STDDmkAHQcGbhg=
Expand Down

0 comments on commit bf7d893

Please sign in to comment.