-
-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathgcp.go
More file actions
34 lines (28 loc) · 1.45 KB
/
Copy pathgcp.go
File metadata and controls
34 lines (28 loc) · 1.45 KB
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
31
32
33
34
package gcp
import (
"github.com/spf13/cobra"
"github.com/cloudposse/atmos/cmd/gcp/gke"
"github.com/cloudposse/atmos/cmd/internal"
"github.com/cloudposse/atmos/pkg/flags"
"github.com/cloudposse/atmos/pkg/flags/compat"
)
var gcpCmd = &cobra.Command{
Use: "gcp",
Short: "Run GCP-specific commands for interacting with cloud resources",
Long: "This command allows interaction with Google Cloud resources through native Atmos commands.",
Args: cobra.NoArgs,
}
func init() {
gcpCmd.AddCommand(gke.GkeCmd)
internal.Register(&GCPCommandProvider{})
}
// GCPCommandProvider registers the gcp command.
type GCPCommandProvider struct{}
func (*GCPCommandProvider) GetCommand() *cobra.Command { return gcpCmd }
func (*GCPCommandProvider) GetName() string { return "gcp" }
func (*GCPCommandProvider) GetGroup() string { return "Cloud Integration" }
func (*GCPCommandProvider) GetAliases() []internal.CommandAlias { return nil }
func (*GCPCommandProvider) GetFlagsBuilder() flags.Builder { return nil }
func (*GCPCommandProvider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder { return nil }
func (*GCPCommandProvider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag { return nil }
func (*GCPCommandProvider) IsExperimental() bool { return false }