Skip to content

Commit

Permalink
Make invite command visible
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
  • Loading branch information
rdimitrov committed Jun 24, 2024
1 parent b5398b9 commit 297c62e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 27 deletions.
7 changes: 3 additions & 4 deletions cmd/cli/app/auth/invite/invite.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ import (

// inviteCmd represents the offline-token set of sub-commands
var inviteCmd = &cobra.Command{
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 (accept/decline/list) your invitations.`,
Use: "invite",
Short: "Manage user invitations",
Long: `The minder auth invite command lets you manage (accept/decline/list) your invitations.`,
RunE: func(cmd *cobra.Command, _ []string) error {
return cmd.Usage()
},
Expand Down
11 changes: 5 additions & 6 deletions cmd/cli/app/auth/invite/invite_accept.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ import (

// inviteAcceptCmd represents the accept command
var inviteAcceptCmd = &cobra.Command{
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),
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 "invite accept" subcommand
Expand Down
11 changes: 5 additions & 6 deletions cmd/cli/app/auth/invite/invite_decline.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ import (

// inviteDeclineCmd represents the decline command
var inviteDeclineCmd = &cobra.Command{
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),
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),
}

// inviteDeclineCommand is the "invite decline" subcommand
Expand Down
11 changes: 5 additions & 6 deletions cmd/cli/app/auth/invite/invite_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ import (

// inviteGetCmd represents the list command
var inviteGetCmd = &cobra.Command{
Hidden: true, // TODO: This hides the command, remove it once it's implemented
Use: "get",
Short: "Get info about pending invitations",
Long: `Get shows additional information about a pending invitation`,
RunE: cli.GRPCClientWrapRunE(inviteGetCommand),
Args: cobra.ExactArgs(1),
Use: "get",
Short: "Get info about pending invitations",
Long: `Get shows additional information about a pending invitation`,
RunE: cli.GRPCClientWrapRunE(inviteGetCommand),
Args: cobra.ExactArgs(1),
}

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

// inviteListCmd represents the list command
var inviteListCmd = &cobra.Command{
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),
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 297c62e

Please sign in to comment.