Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/dev/gp-gcloud/cmd/compute/root.go
2501 views
1
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package compute
6
7
import (
8
"github.com/spf13/cobra"
9
)
10
11
func NewCommand() *cobra.Command {
12
cmd := &cobra.Command{
13
Use: "compute",
14
Short: "gcloud compute wrapper",
15
}
16
17
cmd.AddCommand(newInstanceTemplatesCommand())
18
19
return cmd
20
}
21
22
func newInstanceTemplatesCommand() *cobra.Command {
23
cmd := &cobra.Command{
24
Use: "instance-templates",
25
Short: "instance-templates wrapper",
26
}
27
28
cmd.AddCommand(newInstanceTemplatesCreateCommand())
29
30
return cmd
31
}
32
33