Skip to content

Commit

Permalink
Merge pull request #2459 from carapace-sh/sudo-complete-files
Browse files Browse the repository at this point in the history
sudo: complete files
  • Loading branch information
rsteube authored Jul 25, 2024
2 parents 409cc0c + 929f81a commit d9ec6e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions completers/sudo_completer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ func init() {
"user": os.ActionUsers(),
})

carapace.Gen(rootCmd).PositionalCompletion(
carapace.Batch(
carapace.ActionExecutables(),
carapace.ActionFiles(),
).ToA(),
)

carapace.Gen(rootCmd).PositionalAnyCompletion(
bridge.ActionCarapaceBin(),
)
Expand Down

0 comments on commit d9ec6e5

Please sign in to comment.