Skip to content

Commit

Permalink
Merge pull request #1111 from rsteube/update-spec
Browse files Browse the repository at this point in the history
upated spec
  • Loading branch information
rsteube authored May 9, 2022
2 parents d389cbe + 68eed50 commit c3f3da8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion completers/carapace_completer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func flagCmd(args []string) *cobra.Command {
"style": carapace.ActionStyleConfig(),
})

carapace.Gen(cmd).PositionalCompletion(
carapace.Gen(cmd).PositionalAnyCompletion(
carapace.ActionCallback(func(c carapace.Context) carapace.Action {
if len(args) > 0 && args[0] == "--macros" {
return spec.ActionMacro("$_" + cmd.Flag("macros").Value.String())
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/mitchellh/go-ps v1.0.0
github.com/pelletier/go-toml v1.9.5
github.com/rsteube/carapace v0.20.2
github.com/rsteube/carapace-spec v0.0.15
github.com/rsteube/carapace-spec v0.0.16
github.com/spf13/cobra v1.4.0
github.com/spf13/pflag v1.0.5
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rsteube/carapace v0.20.2 h1:i6QSQZ5vZKmXcwupsYch8XdJ/GBbZU+H8XtfXEs8Z4E=
github.com/rsteube/carapace v0.20.2/go.mod h1:GgiwpPVhucHNOv0AmtIkxhiEFkCMP5BBRauyQLP0mFY=
github.com/rsteube/carapace-spec v0.0.15 h1:5XGqPACOl5Nu2D8DuueQJVPXE8j8jjSotnJuZ/q1K/4=
github.com/rsteube/carapace-spec v0.0.15/go.mod h1:vyKkMfbIYHhPiUeyCemLWh96XNPwWI9B6Go0+W5nDUw=
github.com/rsteube/carapace-spec v0.0.16 h1:HW3+VYX1ZyT9QDUFtjdgCX2dVYAiZL9d0I00qocW478=
github.com/rsteube/carapace-spec v0.0.16/go.mod h1:vyKkMfbIYHhPiUeyCemLWh96XNPwWI9B6Go0+W5nDUw=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q=
github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g=
Expand Down
2 changes: 1 addition & 1 deletion pkg/actions/bridge/argcomplete.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/rsteube/carapace"
)

// ActionArgcomplete bridges python argcomplete (https://github.com/kislyuk/argcomplete)
// ActionArgcomplete bridges kislyuk/argcomplete
// var rootCmd = &cobra.Command{
// Use: "az",
// Short: "Azure Command-Line Interface",
Expand Down

0 comments on commit c3f3da8

Please sign in to comment.