Skip to content

Commit

Permalink
Add flag completions for run command
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRene committed Feb 28, 2024
1 parent 0257abf commit 3980660
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions completers/terramate_completer/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ func init() {
runCmd.Flags().Bool("reverse", false, "Reverse the order of execution")
rootCmd.AddCommand(runCmd)

carapace.Gen(runCmd).FlagCompletion(carapace.ActionMap{
"cloud-sync-terraform-plan-file": carapace.ActionValues(),
"disable-safeguards": carapace.ActionValues("all", "none", "git", "git-untracked", "git-uncommitted", "outdated-code", "git-out-of-sync").UniqueList(","),
// TODO enable dynamic completion
})

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

0 comments on commit 3980660

Please sign in to comment.