Platformsh\Cli\Command\User\UserRoleCommand::configure PHP Method

configure() protected method

protected configure ( )
    protected function configure()
    {
        $this->setName('user:role')->setDescription("View or change a user's role")->addArgument('email', InputArgument::REQUIRED, "The user's email address")->addOption('role', 'r', InputOption::VALUE_REQUIRED, "A new role for the user")->addOption('level', 'l', InputOption::VALUE_REQUIRED, "The role level ('project' or 'environment')")->addOption('pipe', null, InputOption::VALUE_NONE, 'Output the role only');
        $this->addProjectOption()->addEnvironmentOption()->addNoWaitOption();
        $this->addExample("View Alice's role on the project", '[email protected]');
        $this->addExample("View Alice's role on the environment", '[email protected] --level environment');
        $this->addExample("Give Alice the 'contributor' role on the environment 'test'", '[email protected] --level environment --environment test --role contributor');
    }
UserRoleCommand