Skip to content

Commit

Permalink
Resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
schnie committed Feb 11, 2018
2 parents 6826597 + 976d0a5 commit 02286c2
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 6 deletions.
19 changes: 13 additions & 6 deletions cmd/airflow.go
Expand Up @@ -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{
Expand All @@ -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,
}

Expand All @@ -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,
}
)
Expand Down
72 changes: 72 additions & 0 deletions 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) {
}

0 comments on commit 02286c2

Please sign in to comment.