createInitFutureServerPattern function
Implementation
Future<void> createInitFutureServerPattern() async {
var canContinue = await createMain();
if (!canContinue) return;
var isServerProject = PubspecUtils.isServerProject;
if (!isServerProject) {
await installFutureServer();
}
var initialDirs = [
Directory(Structure.replaceAsExpected(path: 'lib/server/data/')),
];
FutureServerMainExample(isServer: isServerProject).create();
await Future.wait([
CreateResponseCommand().execute(),
]);
createListDirectory(initialDirs);
LogService.success(
Translation(LocaleKeys.sucess_future_server_pattern_generated));
}