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 4d9cdf8 commit e23eaf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/getResources.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ func init() {
getResourcesCmd.Flags().StringP(flagnames.Component, "n", "", "Optional, name of the component")
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)
_ = getResourcesCmd.RegisterFlagCompletionFunc(flagnames.Application, completion.ApplicationCompletion)
_ = getResourcesCmd.RegisterFlagCompletionFunc(flagnames.Application, completion.EnvironmentCompletion)
_ = getResourcesCmd.RegisterFlagCompletionFunc(flagnames.Application, completion.ComponentCompletion)
setContextSpecificPersistentFlags(getResourcesCmd)
}

0 comments on commit e23eaf3

Please sign in to comment.