Skip to content

Commit

Permalink
🔧 expose providers cli command (#1674)
Browse files Browse the repository at this point in the history
... because we use the same command in cnspec

Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus authored Sep 11, 2023
1 parent e6bd6ef commit f7bc837
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/cnquery/cmd/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
Expand Down

0 comments on commit f7bc837

Please sign in to comment.