runWithConfig method
Runs this command with prepared configuration (options). Subclasses should override this method.
Implementation
@override
Future<void> runWithConfig(
final Configuration<ProjectInviteUserOption> commandConfig,
) async {
final projectId = commandConfig.value(ProjectInviteUserOption.projectId);
final userEmail = commandConfig.value(ProjectInviteUserOption.user);
final roles = commandConfig.value(ProjectInviteUserOption.roles);
await ProjectCommands.inviteUser(
runner.serviceProvider.cloudApiClient,
logger: logger,
projectId: projectId,
email: userEmail,
assignRoleNames: roles,
);
}