Skip to content

Commit

Permalink
Merge pull request #135 from rsteube/dependabot/go_modules/github.com…
Browse files Browse the repository at this point in the history
…/rsteube/carapace-0.43.5

build(deps): bump github.com/rsteube/carapace from 0.40.0 to 0.43.5
  • Loading branch information
rsteube authored Sep 19, 2023
2 parents 51b0d6e + ca09df3 commit b1af0b5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
20 changes: 10 additions & 10 deletions cmd/gj/cmd/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,34 @@ func init() {

carapace.Gen(issueCmd).FlagCompletion(carapace.ActionMap{
"assignee": carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action {
return action.ActionUsers(&issueOpts.Host).Invoke(c).Filter(c.Parts).ToA().NoSpace() // TODO assignable users
return action.ActionUsers(&issueOpts.Host).FilterParts().NoSpace() // TODO assignable users
}),
"component": carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action {
return action.ActionComponents(&issueOpts.Host, issueOpts.Project).Invoke(c).Filter(c.Parts).ToA().NoSpace()
return action.ActionComponents(&issueOpts.Host, issueOpts.Project).FilterParts().NoSpace()
}),
"resolution": carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action {
return action.ActionResolutions(&issueOpts.Host).Invoke(c).Filter(c.Parts).ToA().NoSpace()
return action.ActionResolutions(&issueOpts.Host).FilterParts().NoSpace()
}),
"priority": carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action {
return action.ActionPriorities(&issueOpts.Host).Invoke(c).Filter(c.Parts).ToA().NoSpace()
return action.ActionPriorities(&issueOpts.Host).FilterParts().NoSpace()
}),
"project": carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action {
return action.ActionProjects(&issueOpts.Host, projectOpts.Category).Invoke(c).Filter(c.Parts).ToA().NoSpace()
return action.ActionProjects(&issueOpts.Host, projectOpts.Category).FilterParts().NoSpace()
}),
"status": carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action {
return action.ActionStatuses(&issueOpts.Host).Invoke(c).Filter(c.Parts).ToA().NoSpace()
return action.ActionStatuses(&issueOpts.Host).FilterParts().NoSpace()
}),
"not-status": carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action {
return action.ActionStatuses(&issueOpts.Host).Invoke(c).Filter(c.Parts).ToA().NoSpace()
return action.ActionStatuses(&issueOpts.Host).FilterParts().NoSpace()
}),
"status-category": carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action {
return action.ActionStatusCategories(&issueOpts.Host).Invoke(c).Filter(c.Parts).ToA().NoSpace()
return action.ActionStatusCategories(&issueOpts.Host).FilterParts().NoSpace()
}),
"not-status-category": carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action {
return action.ActionStatusCategories(&issueOpts.Host).Invoke(c).Filter(c.Parts).ToA().NoSpace()
return action.ActionStatusCategories(&issueOpts.Host).FilterParts().NoSpace()
}),
"type": carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action {
return action.ActionIssueTypes(&issueOpts.Host, issueOpts.Project).Invoke(c).Filter(c.Parts).ToA().NoSpace()
return action.ActionIssueTypes(&issueOpts.Host, issueOpts.Project).FilterParts().NoSpace()
}),
"filter": action.ActionFilters(&issueOpts.Host),
"host": action.ActionConfigHosts(),
Expand Down
2 changes: 1 addition & 1 deletion cmd/gj/cmd/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func init() {
carapace.Gen(projectCmd).FlagCompletion(carapace.ActionMap{
"category": carapace.ActionMultiParts(",", func(c carapace.Context) carapace.Action {
host := projectCmd.Flag("host").Value.String()
return action.ActionProjectCategories(&host).Invoke(c).Filter(c.Parts).ToA().NoSpace()
return action.ActionProjectCategories(&host).FilterParts().NoSpace()
}),
"host": carapace.ActionCallback(func(c carapace.Context) carapace.Action {
if hosts, err := config.Hosts(); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/kr/pretty v0.2.0 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/muesli/gamut v0.3.1
github.com/rsteube/carapace v0.40.0
github.com/rsteube/carapace v0.43.5
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
gopkg.in/yaml.v2 v2.4.0
Expand Down
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,10 @@ github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rsteube/carapace v0.40.0 h1:m6bZzMzjIezcCE0SEMF7WSug4BqlTaxHTq2qVC85RYI=
github.com/rsteube/carapace v0.40.0/go.mod h1:jkLt41Ne2TD2xPuMdX/2O05Smhy8vMgG7O2TYvC0yOc=
github.com/rsteube/carapace v0.43.5 h1:rbXIGGoffXew0Pk/oM5LHlMf1jBv34TedFXscl59zy4=
github.com/rsteube/carapace v0.43.5/go.mod h1:1l4sZA+/sGW9sBLqEholUd+kn9xKgh2ghBFDYC3D/zA=
github.com/rsteube/carapace-shlex v0.0.4 h1:3GVn8PaM2RCxPTAiwVy9vDQI8Mi7DqrbdpDgf5ZzQmY=
github.com/rsteube/carapace-shlex v0.0.4/go.mod h1:zPw1dOFwvLPKStUy9g2BYKanI6bsQMATzDMYQQybo3o=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
Expand Down

0 comments on commit b1af0b5

Please sign in to comment.