runWithConfig method
Runs this command with prepared configuration (options). Subclasses should override this method.
Implementation
@override
Future<void> runWithConfig(
final Configuration<ProjectLinkCommandOption> commandConfig,
) async {
final projectId = commandConfig.value(ProjectLinkCommandOption.projectId);
final projectDirectory = runner.verifiedProjectDirectory();
final configFilePath = globalConfiguration.projectConfigFile?.path ??
p.join(
projectDirectory.path,
ProjectConfigFileConstants.defaultFileName,
);
logger.debug('Using project directory `${projectDirectory.path}`');
await ProjectCommands.linkProject(
runner.serviceProvider.cloudApiClient,
logger: logger,
projectId: projectId,
projectDirectory: projectDirectory.path,
configFilePath: configFilePath,
);
}