Skip to content

Commit

Permalink
sudo: complete files
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jul 25, 2024
1 parent 409cc0c commit 929f81a
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 929f81a

Please sign in to comment.