From e23eaf3298eeaf80815f426f1ec7fde71afc56ec Mon Sep 17 00:00:00 2001 From: Sergey Smolnikov Date: Wed, 2 Oct 2024 14:33:17 +0200 Subject: [PATCH] Added flag completion --- cmd/getResources.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/getResources.go b/cmd/getResources.go index 0e89a1b..a407a00 100644 --- a/cmd/getResources.go +++ b/cmd/getResources.go @@ -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) }