File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
completers/pacman_completer/cmd Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ func init() {
2222
2323 cmd , _ , _ := rootCmd .Find ([]string {"_carapace" })
2424 cmd .PreRun = func (cmd * cobra.Command , args []string ) {
25- if len (args ) < 4 || ! regexp .MustCompile ("-[^-] " ).MatchString (args [3 ]) {
25+ if len (args ) < 4 || ( len ( args ) == 4 && regexp .MustCompile ("^--? " ).MatchString (args [3 ]) ) {
2626 rootCmd .Flags ().BoolP ("database" , "D" , false , "Operate on the package database" )
2727 rootCmd .Flags ().BoolP ("deptest" , "T" , false , "Check dependencies" )
2828 rootCmd .Flags ().BoolP ("files" , "F" , false , "Query the files database" )
Original file line number Diff line number Diff line change @@ -6,9 +6,8 @@ require (
66 github.com/mitchellh/go-homedir v1.1.0
77 github.com/mitchellh/go-ps v1.0.0
88 github.com/pelletier/go-toml v1.8.1
9- github.com/rsteube/carapace v0.3.7
9+ github.com/rsteube/carapace v0.3.8
1010 github.com/spf13/cobra v1.1.1
11- github.com/spf13/pflag v1.0.5
1211 gopkg.in/ini.v1 v1.62.0
1312 gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776
1413)
Original file line number Diff line number Diff line change @@ -151,8 +151,8 @@ github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7z
151151github.com/prometheus/tsdb v0.7.1 /go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU =
152152github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af /go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg =
153153github.com/rogpeppe/go-internal v1.3.0 /go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4 =
154- github.com/rsteube/carapace v0.3.7 h1:LHjiJaGjPUK3LChngvHDOjO11QJ9jqUlDfa/J1IhJC0 =
155- github.com/rsteube/carapace v0.3.7 /go.mod h1:KFUcTCOChx8NdnMn7+l/3/ty+BLt+I3ciWnBwoT/OQk =
154+ github.com/rsteube/carapace v0.3.8 h1:Tir8haipGCvfyWlLTPv/zGWJFA1NkUmQj+pXFOIUHfE =
155+ github.com/rsteube/carapace v0.3.8 /go.mod h1:KFUcTCOChx8NdnMn7+l/3/ty+BLt+I3ciWnBwoT/OQk =
156156github.com/russross/blackfriday/v2 v2.0.1 /go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM =
157157github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f /go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts =
158158github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 /go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc =
You can’t perform that action at this time.
0 commit comments