justinmclean commented on code in PR #5618: URL: https://github.com/apache/gravitino/pull/5618#discussion_r1853316812
########## docs/cli.md: ########## @@ -522,51 +533,15 @@ gcli tag update --tag tagA --rename newTag gcli tag update --tag tagA --comment "new comment" ``` -### Role commands +### Authentication -#### Display role details +#### Simple authentication ```bash -gcli role details --role admin -``` - -#### List all roles - -```bash -gcli role list -``` - -#### Create a role - -```bash -gcli role create --role admin -``` - -#### Delete a role +gcli <normal command> --simple -```bash -gcli role delete --role admin -``` - -#### Add a role to a user - -```bash -gcli user grant --user new_user --role admin -``` - -#### Remove a role from a user - -```bash -gcli user revoke --user new_user --role admin -``` - -#### Add a role to a group - -```bash -gcli group grant --group groupA --role admin -``` +#### Simple authentication with user name -#### Remove a role from a group ```bash -gcli group revoke --group groupA --role admin +gcli <normal command> --simple --login userName Review Comment: seee above ########## docs/cli.md: ########## @@ -522,51 +533,15 @@ gcli tag update --tag tagA --rename newTag gcli tag update --tag tagA --comment "new comment" ``` -### Role commands +### Authentication -#### Display role details +#### Simple authentication ```bash -gcli role details --role admin -``` - -#### List all roles - -```bash -gcli role list -``` - -#### Create a role - -```bash -gcli role create --role admin -``` - -#### Delete a role +gcli <normal command> --simple -```bash -gcli role delete --role admin -``` - -#### Add a role to a user - -```bash -gcli user grant --user new_user --role admin -``` - -#### Remove a role from a user - -```bash -gcli user revoke --user new_user --role admin -``` - -#### Add a role to a group - -```bash -gcli group grant --group groupA --role admin -``` +#### Simple authentication with user name -#### Remove a role from a group ```bash -gcli group revoke --group groupA --role admin +gcli <normal command> --simple --login userName Review Comment: see above -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
