Skip to content

Commit

Permalink
Hide the auth invite commands until it's fully implemented in the server
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslav Dimitrov <[email protected]>
  • Loading branch information
rdimitrov committed Jun 6, 2024
1 parent 8f08094 commit 10b6225
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
5 changes: 3 additions & 2 deletions cmd/cli/app/auth/invite/invite.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ import (

// inviteCmd represents the offline-token set of sub-commands
var inviteCmd = &cobra.Command{
Use: "invite",
Short: "Manage user invitations",
Hidden: true, // TODO: This hides the command, remove it once it's implemented
Use: "invite",
Short: "Manage user invitations",
Long: `The minder auth invite command lets you manage user invitations
for the minder control plane.`,
RunE: func(cmd *cobra.Command, _ []string) error {
Expand Down
11 changes: 6 additions & 5 deletions cmd/cli/app/auth/invite/invite_accept.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ import (

// inviteAcceptCmd represents the accept command
var inviteAcceptCmd = &cobra.Command{
Use: "accept",
Short: "Accept a pending invitation",
Long: `Accept a pending invitation for the current minder user`,
RunE: cli.GRPCClientWrapRunE(inviteAcceptCommand),
Args: cobra.ExactArgs(1),
Hidden: true, // TODO: This hides the command, remove it once it's implemented
Use: "accept",
Short: "Accept a pending invitation",
Long: `Accept a pending invitation for the current minder user`,
RunE: cli.GRPCClientWrapRunE(inviteAcceptCommand),
Args: cobra.ExactArgs(1),
}

// inviteAcceptCommand is the whoami subcommand
Expand Down
11 changes: 6 additions & 5 deletions cmd/cli/app/auth/invite/invite_decline.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ import (

// inviteDeclineCmd represents the decline command
var inviteDeclineCmd = &cobra.Command{
Use: "decline",
Short: "Declines a pending invitation",
Long: `Declines a pending invitation for the current minder user`,
RunE: cli.GRPCClientWrapRunE(inviteDeclineCommand),
Args: cobra.ExactArgs(1),
Hidden: true, // TODO: This hides the command, remove it once it's implemented
Use: "decline",
Short: "Declines a pending invitation",
Long: `Declines a pending invitation for the current minder user`,
RunE: cli.GRPCClientWrapRunE(inviteDeclineCommand),
Args: cobra.ExactArgs(1),
}

// inviteAcceptCommand is the whoami subcommand
Expand Down
9 changes: 5 additions & 4 deletions cmd/cli/app/auth/invite/invite_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ import (

// inviteListCmd represents the list command
var inviteListCmd = &cobra.Command{
Use: "list",
Short: "List pending invitations",
Long: `List shows all pending invitations for the current minder user`,
RunE: cli.GRPCClientWrapRunE(inviteListCommand),
Hidden: true, // TODO: This hides the command, remove it once it's implemented
Use: "list",
Short: "List pending invitations",
Long: `List shows all pending invitations for the current minder user`,
RunE: cli.GRPCClientWrapRunE(inviteListCommand),
}

// inviteListCommand is the whoami subcommand
Expand Down

0 comments on commit 10b6225

Please sign in to comment.