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:
Christian Hernandez
2025-06-13 12:37:43 -07:00
committed by GitHub
parent 81ae77a4ad
commit d14ba140d1

View File

@@ -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