-
Notifications
You must be signed in to change notification settings - Fork 500
/
provider.go
30 lines (27 loc) · 879 Bytes
/
provider.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package provider
import (
"github.com/cloudquery/cloudquery/cli/pkg/core"
"github.com/spf13/cobra"
)
var (
providerShort = "Top-level command to interact with providers."
providerExample = `
# Sync (Upgrade or Downgrade) all providers specified in cloudquery.yml This will also create the schema.
cloudquery provider sync
# Sync one or more providers
cloudquery provider sync aws, gcp
# Drop provider schema, running fetch again will recreate all tables unless --skip-build-tables is specified
cloudquery provider drop aws
`
)
func NewCmdProvider() *cobra.Command {
cmd := &cobra.Command{
Use: "provider [subcommand]",
Short: providerShort,
Long: providerShort,
Example: providerExample,
Version: core.Version,
}
cmd.AddCommand(newCmdProviderSync(), newCmdProviderDrop(), newCmdProviderPurge(), newCmdProviderDownload())
return cmd
}