mirror of
https://github.com/directus/directus.git
synced 2026-01-22 19:08:01 -05:00
Fix cli role name attr
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { getSchema } from '../../../utils/get-schema';
|
||||
|
||||
export default async function rolesCreate({ name, admin }: { name: string; admin: boolean }): Promise<void> {
|
||||
export default async function rolesCreate({ role: name, admin }: { role: string; admin: boolean }): Promise<void> {
|
||||
const { default: database } = require('../../../database/index');
|
||||
const { RolesService } = require('../../../services/roles');
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ const rolesCommand = program.command('roles');
|
||||
rolesCommand
|
||||
.command('create')
|
||||
.description('Create a new role')
|
||||
.option('--name <value>', `name for the role`)
|
||||
.option('--role <value>', `name for the role`)
|
||||
.option('--admin', `whether or not the role has admin access`)
|
||||
.action(rolesCreate);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user