diff --git a/cmd/airflow.go b/cmd/airflow.go index 95920155b..97b19946b 100644 --- a/cmd/airflow.go +++ b/cmd/airflow.go @@ -12,8 +12,15 @@ var ( airflowRootCmd = &cobra.Command{ Use: "airflow", - Short: "Manage airflow projects", - Long: "Manage airflow projects", + Short: "Manage airflow projects and deployments", + Long: "Manage airflow projects and deployments", + } + + airflowInitCmd = &cobra.Command{ + Use: "init", + Short: "Scaffold a new airflow project", + Long: "Scaffold a new airflow project", + Run: airflowInit, } airflowInitCmd = &cobra.Command{ @@ -25,8 +32,8 @@ var ( airflowCreateCmd = &cobra.Command{ Use: "create", - Short: "Create a new airflow project", - Long: "Create a new airflow project", + Short: "Create a new airflow deployment", + Long: "Create a new airflow deployment", Run: airflowCreate, } @@ -40,8 +47,8 @@ var ( airflowStatusCmd = &cobra.Command{ Use: "status", - Short: "Print the status of the airflow cluster", - Long: "Print the status of the airflow cluster", + Short: "Print the status of an airflow deployment", + Long: "Print the status of an airflow deployment", Run: airflowStatus, } ) diff --git a/cmd/clickstream.go b/cmd/clickstream.go new file mode 100644 index 000000000..0fb5a47a2 --- /dev/null +++ b/cmd/clickstream.go @@ -0,0 +1,72 @@ +package cmd + +import ( + "github.com/spf13/cobra" +) + +var ( + + clickstreamRootCmd = &cobra.Command{ + Use: "clickstream", + Short: "Manage clickstream projects and deployments", + Long: "Manage clickstream projects and deployments", + } + + clickstreamInitCmd = &cobra.Command{ + Use: "init", + Short: "Create a new clickstream project", + Long: "Create a new clickstream project", + Run: clickstreamInit, + } + + clickstreamCreateCmd = &cobra.Command{ + Use: "create", + Short: "Create a new clickstream deployment", + Long: "Create a new clickstream deployment", + Run: clickstreamCreate, + } + + clickstreamDeployCmd = &cobra.Command{ + Use: "deploy", + Short: "Deploy a clickstream project", + Long: "Deploy a clickstream project to a given deployment", + Args: cobra.ExactArgs(2), + Run: clickstreamDeploy, + } + + clickstreamStatusCmd = &cobra.Command{ + Use: "status", + Short: "Print the status of a clickstream deployment", + Long: "Print the status of a clickstream deployment", + Run: clickstreamStatus, + } +) + +func init() { + // Clickstream root + RootCmd.AddCommand(clickstreamRootCmd) + + // Clickstream init + clickstreamRootCmd.AddCommand(clickstreamInitCmd) + + // Clickstream create + clickstreamRootCmd.AddCommand(clickstreamCreateCmd) + + // Clickstream deploy + clickstreamRootCmd.AddCommand(clickstreamDeployCmd) + + // Clickstream status + clickstreamRootCmd.AddCommand(clickstreamStatusCmd) +} + +func clickstreamInit(cmd *cobra.Command, args []string) { +} + +func clickstreamCreate(cmd *cobra.Command, args []string) { +} + +func clickstreamDeploy(cmd *cobra.Command, args []string) { +} + +func clickstreamStatus(cmd *cobra.Command, args []string) { +}