From 297c62e5ec093c16696ebce5b7da248324beabb7 Mon Sep 17 00:00:00 2001 From: Radoslav Dimitrov Date: Mon, 24 Jun 2024 17:40:56 +0300 Subject: [PATCH] Make invite command visible Signed-off-by: Radoslav Dimitrov --- cmd/cli/app/auth/invite/invite.go | 7 +++---- cmd/cli/app/auth/invite/invite_accept.go | 11 +++++------ cmd/cli/app/auth/invite/invite_decline.go | 11 +++++------ cmd/cli/app/auth/invite/invite_get.go | 11 +++++------ cmd/cli/app/auth/invite/invite_list.go | 9 ++++----- 5 files changed, 22 insertions(+), 27 deletions(-) diff --git a/cmd/cli/app/auth/invite/invite.go b/cmd/cli/app/auth/invite/invite.go index 2c0fd3c1fa..85719ce541 100644 --- a/cmd/cli/app/auth/invite/invite.go +++ b/cmd/cli/app/auth/invite/invite.go @@ -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() }, diff --git a/cmd/cli/app/auth/invite/invite_accept.go b/cmd/cli/app/auth/invite/invite_accept.go index 0659fa515c..cbf87796a7 100644 --- a/cmd/cli/app/auth/invite/invite_accept.go +++ b/cmd/cli/app/auth/invite/invite_accept.go @@ -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 diff --git a/cmd/cli/app/auth/invite/invite_decline.go b/cmd/cli/app/auth/invite/invite_decline.go index 4c710b4271..267c58786c 100644 --- a/cmd/cli/app/auth/invite/invite_decline.go +++ b/cmd/cli/app/auth/invite/invite_decline.go @@ -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 diff --git a/cmd/cli/app/auth/invite/invite_get.go b/cmd/cli/app/auth/invite/invite_get.go index 276ae87cfc..4c0db23d34 100644 --- a/cmd/cli/app/auth/invite/invite_get.go +++ b/cmd/cli/app/auth/invite/invite_get.go @@ -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 diff --git a/cmd/cli/app/auth/invite/invite_list.go b/cmd/cli/app/auth/invite/invite_list.go index 2fb593c286..13ced94fd6 100644 --- a/cmd/cli/app/auth/invite/invite_list.go +++ b/cmd/cli/app/auth/invite/invite_list.go @@ -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