Skip to content

Commit

Permalink
Added flag completion
Browse files Browse the repository at this point in the history
  • Loading branch information
satr committed Oct 2, 2024
1 parent 2c91530 commit 4d9cdf8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/getResources.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,7 @@ func init() {
getResourcesCmd.Flags().String(flagnames.Duration, "", "If set, get resources during the specified period (default is 30 days), eg. 5m or 12h")
getResourcesCmd.Flags().String(flagnames.Since, "", "If set, get resources starting from the specified time in the past, eg. 5m or 12h")
_ = restartApplicationCmd.RegisterFlagCompletionFunc(flagnames.Application, completion.ApplicationCompletion)
_ = restartApplicationCmd.RegisterFlagCompletionFunc(flagnames.Application, completion.EnvironmentCompletion)
_ = restartApplicationCmd.RegisterFlagCompletionFunc(flagnames.Application, completion.ComponentCompletion)
setContextSpecificPersistentFlags(getResourcesCmd)
}

0 comments on commit 4d9cdf8

Please sign in to comment.