Loading kontrctl/commands/roles.py +3 −3 Original line number Diff line number Diff line Loading @@ -67,11 +67,11 @@ def cli_roles_create(obj, remote, course, **kwargs): # Role users # cli_role_users = click.Group('users', help='Users management for the role') cli_role_users = click.Group('clients', help='Clients management for the role') cli_roles.add_command(cli_role_users) @cli_role_users.command('list', help='List users for the role') @cli_role_users.command('list', help='List clients for the role') @click.option('-r', '--remote', required=False, help='Sets remote') @click.option('-c', '--course', required=False, help='Select course') @click.argument('codename') Loading @@ -82,7 +82,7 @@ def cli_role_users_list(obj: AppConfig, remote, course, codename: str): helpers.generic_list_users(course.roles, codename, name='clients') @cli_role_users.command('add', help='Add user for the role') @cli_role_users.command('add', help='Add client to the role') @click.option('-r', '--remote', required=False, help='Sets remote') @click.option('-c', '--course', required=False, help='Select course') @click.argument('codename') Loading Loading
kontrctl/commands/roles.py +3 −3 Original line number Diff line number Diff line Loading @@ -67,11 +67,11 @@ def cli_roles_create(obj, remote, course, **kwargs): # Role users # cli_role_users = click.Group('users', help='Users management for the role') cli_role_users = click.Group('clients', help='Clients management for the role') cli_roles.add_command(cli_role_users) @cli_role_users.command('list', help='List users for the role') @cli_role_users.command('list', help='List clients for the role') @click.option('-r', '--remote', required=False, help='Sets remote') @click.option('-c', '--course', required=False, help='Select course') @click.argument('codename') Loading @@ -82,7 +82,7 @@ def cli_role_users_list(obj: AppConfig, remote, course, codename: str): helpers.generic_list_users(course.roles, codename, name='clients') @cli_role_users.command('add', help='Add user for the role') @cli_role_users.command('add', help='Add client to the role') @click.option('-r', '--remote', required=False, help='Sets remote') @click.option('-c', '--course', required=False, help='Select course') @click.argument('codename') Loading