runWithConfig method

  1. @override
Future<void> runWithConfig(
  1. Configuration<ProjectUserRevokeOption> commandConfig
)
override

Runs this command with prepared configuration (options). Subclasses should override this method.

Implementation

@override
Future<void> runWithConfig(
  final Configuration<ProjectUserRevokeOption> commandConfig,
) async {
  final projectId = commandConfig.value(ProjectUserRevokeOption.projectId);
  final userEmail = commandConfig.value(ProjectUserRevokeOption.user);

  await ProjectCommands.revokeUser(
    runner.serviceProvider.cloudApiClient,
    logger: logger,
    projectId: projectId,
    email: userEmail,
    unassignRoleNames: const [],
    unassignAllRoles: true,
  );
}