execute method

  1. @override
Future<void> execute()
override

execute command

Implementation

@override
Future<void> execute() async {
  // bool canContinue = await createMain();
  // if (!canContinue) return;
  GetServerPubspecSample(basename(Directory.current.path)).create();
  AnalysisOptionsSample(
    include: 'include: package:pedantic/analysis_options.yaml',
  ).create();
  await PubspecUtils.addDependencies('get_server', runPubGet: false);
  await PubspecUtils.addDependencies('pedantic',
      isDev: true, runPubGet: false);
  await PubspecUtils.addDependencies('test', isDev: true, runPubGet: false);

  await createInitGetxPattern();
}