You are here

protected function CreateEdgeRoleCommand::configure in Apigee Edge 8

File

src/Command/CreateEdgeRoleCommand.php, line 40

Class

CreateEdgeRoleCommand
Developer synchronization command class for Drupal Console.

Namespace

Drupal\apigee_edge\Command

Code

protected function configure() {
  $this
    ->setName('apigee_edge:role:create')
    ->setDescription($this
    ->trans('commands.apigee_edge.role.create.description'))
    ->setHelp('commands.apigee_edge.role.create.help')
    ->addArgument('org', InputArgument::REQUIRED, $this
    ->trans('commands.apigee_edge.role.create.arguments.org'))
    ->addArgument('email', InputArgument::REQUIRED, $this
    ->trans('commands.apigee_edge.role.create.arguments.email'))
    ->addOption('password', 'p', InputArgument::OPTIONAL, $this
    ->trans('commands.apigee_edge.role.create.options.password'))
    ->addOption('base-url', 'b', InputArgument::OPTIONAL, $this
    ->trans('commands.apigee_edge.role.create.options.base-url'))
    ->addOption('role-name', 'r', InputArgument::OPTIONAL, $this
    ->trans('commands.apigee_edge.role.create.options.role-name'))
    ->addOption('force', 'f', InputOption::VALUE_NONE, $this
    ->trans('commands.apigee_edge.role.create.options.force'));
}