/
deployment.go
61 lines (49 loc) · 1.24 KB
/
deployment.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package cmd
import (
"github.com/spf13/cobra"
)
var (
deploymentRootCmd = &cobra.Command{
Use: "deployment",
Aliases: []string{"de"},
Short: "Manage airflow deployments",
Long: "Manage airflow deployments",
}
deploymentCreateCmd = &cobra.Command{
Use: "create",
Short: "Create a new Astronomer Deployment",
Long: "Create a new Astronomer Deployment",
RunE: deploymentCreate,
}
deploymentListCmd = &cobra.Command{
Use: "list",
Short: "List airflow deployments",
Long: "List airflow deployments",
RunE: deploymentList,
}
deploymentUpdateCmd = &cobra.Command{
Use: "update",
Short: "Update airflow deployments",
Long: "Update airflow deployments",
RunE: deploymentUpdate,
}
)
func init() {
// deployment root
RootCmd.AddCommand(deploymentRootCmd)
// deployment create
deploymentRootCmd.AddCommand(deploymentCreateCmd)
// deployment list
deploymentRootCmd.AddCommand(deploymentListCmd)
// deployment update
deploymentRootCmd.AddCommand(deploymentUpdateCmd)
}
func deploymentCreate(cmd *cobra.Command, args []string) error {
return nil
}
func deploymentList(cmd *cobra.Command, args []string) error {
return nil
}
func deploymentUpdate(cmd *cobra.Command, args []string) error {
return nil
}