runWithConfig method

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

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

Implementation

@override
Future<void> runWithConfig(
  final Configuration<RevokeTokenCommandOption> commandConfig,
) async {
  final tokenId = commandConfig.value(RevokeTokenCommandOption.tokenId);

  await Auth.revokeToken(
    runner.serviceProvider.cloudApiClient,
    logger: logger,
    tokenId: tokenId,
    localStoragePath: globalConfiguration.scloudDir.path,
  );
}