Skip to content

Commit

Permalink
Merge branch 'master' of github.com:astronomerio/astro-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ryw committed Feb 8, 2018
2 parents 571a6f8 + d4f7bba commit 976d0a5
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions cmd/users.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package cmd

import "github.com/spf13/cobra"

var (
usersRootCmd = &cobra.Command{
Use: "users",
Short: "Manage astronomer users",
Long: "Manage astronomer users",
}

usersListCmd = &cobra.Command{
Use: "list",
Short: "List astronomer users",
Long: "List astronomer users",
Run: usersList,
}

usersCreateCmd = &cobra.Command{
Use: "create",
Short: "Add an astronomer user",
Long: "Add an astronomer user",
Run: usersCreate,
}

usersDeleteCmd = &cobra.Command{
Use: "delete",
Short: "Delete an astronomer user",
Long: "Delete an astronomer user",
Run: usersDelete,
}
)

func init() {
// Users root
RootCmd.AddCommand(usersRootCmd)

// Users list
usersRootCmd.AddCommand(usersListCmd)

// Users create
usersRootCmd.AddCommand(usersCreateCmd)

// Users delete
usersRootCmd.AddCommand(usersDeleteCmd)
}

func usersList(cmd *cobra.Command, args []string) {
}

func usersCreate(cmd *cobra.Command, args []string) {
}

func usersDelete(cmd *cobra.Command, args []string) {
}

0 comments on commit 976d0a5

Please sign in to comment.