Skip to content

Commit

Permalink
Add fake astro workspace user list
Browse files Browse the repository at this point in the history
  • Loading branch information
andriisoldatenko committed May 9, 2019
1 parent ee5f8c3 commit 8c3682d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cmd/workspace.go
@@ -1,6 +1,7 @@
package cmd

import (
"fmt"
"github.com/astronomer/astro-cli/workspace"
"github.com/pkg/errors"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -88,6 +89,13 @@ var (
Args: cobra.ExactArgs(1),
RunE: workspaceUserRm,
}

workspaceUserListCmd = &cobra.Command{
Use: "list",
Short: "Print list of user roles",
Long: "Print list of user roles",
RunE: workspaceUserList,
}
)

func init() {
Expand Down Expand Up @@ -120,6 +128,9 @@ func init() {
// workspace user remove
workspaceUserRootCmd.AddCommand(workspaceUserRmCmd)
workspaceUserRmCmd.PersistentFlags().StringVar(&workspaceId, "workspace-id", "", "workspace assigned to deployment")

// workspace user list
workspaceUserRootCmd.AddCommand(workspaceUserListCmd)
}

func workspaceCreate(cmd *cobra.Command, args []string) error {
Expand Down Expand Up @@ -197,3 +208,8 @@ func workspaceSwitch(cmd *cobra.Command, args []string) error {

return workspace.Switch(id)
}

func workspaceUserList(cmd *cobra.Command, args []string) error {
fmt.Println("user list")
return nil
}

0 comments on commit 8c3682d

Please sign in to comment.