Skip to content

Redesign role command #678

Description

@vanstee

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions