From f7bc837a362f2845131b651856d7e8f6131804bd Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Sun, 10 Sep 2023 18:15:40 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20expose=20providers=20cli=20comma?= =?UTF-8?q?nd=20(#1674)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... because we use the same command in cnspec Signed-off-by: Dominik Richter --- apps/cnquery/cmd/providers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/cnquery/cmd/providers.go b/apps/cnquery/cmd/providers.go index 2879371253..812e25511f 100644 --- a/apps/cnquery/cmd/providers.go +++ b/apps/cnquery/cmd/providers.go @@ -20,15 +20,15 @@ import ( ) func init() { - rootCmd.AddCommand(providersCmd) - providersCmd.AddCommand(listProvidersCmd) - providersCmd.AddCommand(installProviderCmd) + rootCmd.AddCommand(ProvidersCmd) + ProvidersCmd.AddCommand(listProvidersCmd) + ProvidersCmd.AddCommand(installProviderCmd) installProviderCmd.Flags().StringP("file", "f", "", "install a provider via a file") installProviderCmd.Flags().String("url", "", "install a provider via URL") } -var providersCmd = &cobra.Command{ +var ProvidersCmd = &cobra.Command{ Use: "providers", Short: "Providers add connectivity to all assets.", Long: `Manage your providers. List and install new ones or update existing ones.`,