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