Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign role command #678

Closed
vanstee opened this issue May 11, 2016 · 0 comments
Closed

Redesign role command #678

vanstee opened this issue May 11, 2016 · 0 comments
Assignees
Milestone

Comments

@vanstee
Copy link
Member

vanstee commented May 11, 2016

role is similar to permissions. We'll need to swap long args for subcommands. Also I'm going to rename role to roles to be consistent with other command names.

USAGE

roles <subcommand>

roles list
roles create <role-name>
roles drop <role-name>
roles grant <role-name> <group-name ...>
roles revoke <role-name> <group-name ...>

EXAMPLES

roles list
> NAME  GROUPS
  ops   cog flywheel
  ux    flywheel

roles create ops
> Created role ops

roles drop ops
> Deleted role ops

roles grant ops cog
> Granted role ops to group cog

roles grant ops cog flywheel
> Granted role ops to groups cog flywheel

roles revoke ops cog
> Revoked role ops from group cog

roles revoke ops cog flywheel
> Revoked role ops from cog flywheel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants