From 68eed50170cddcf56ce0317a8bf6e49884848898 Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 10 May 2022 00:10:59 +0200 Subject: [PATCH] upated spec --- completers/carapace_completer/cmd/root.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- pkg/actions/bridge/argcomplete.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/completers/carapace_completer/cmd/root.go b/completers/carapace_completer/cmd/root.go index d6f8f1d7fb..d42052963f 100644 --- a/completers/carapace_completer/cmd/root.go +++ b/completers/carapace_completer/cmd/root.go @@ -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()) diff --git a/go.mod b/go.mod index 7ff34d94a5..2351264e65 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 679f26c4e6..5fce9dd458 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/pkg/actions/bridge/argcomplete.go b/pkg/actions/bridge/argcomplete.go index 52b235fbb1..2b122b20ad 100644 --- a/pkg/actions/bridge/argcomplete.go +++ b/pkg/actions/bridge/argcomplete.go @@ -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",