mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
feat(cli): Adding whoami alias (#23385)
Signed-off-by: Christian Hernandez <christian@chernand.io> Co-authored-by: Blake Pettersson <blake.pettersson@gmail.com>
This commit is contained in:
committed by
GitHub
parent
81ae77a4ad
commit
d14ba140d1
@@ -155,8 +155,9 @@ has appropriate RBAC permissions to change other accounts.
|
||||
func NewAccountGetUserInfoCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
|
||||
var output string
|
||||
command := &cobra.Command{
|
||||
Use: "get-user-info",
|
||||
Short: "Get user info",
|
||||
Use: "get-user-info",
|
||||
Short: "Get user info",
|
||||
Aliases: []string{"whoami"},
|
||||
Example: templates.Examples(`
|
||||
# Get User information for the currently logged-in user (see 'argocd login')
|
||||
argocd account get-user-info
|
||||
|
||||
Reference in New Issue
Block a user