run method

Future<void> run(
  1. String serviceName, {
  2. String? path,
})

Implementation

Future<void> run(String serviceName, {String? path}) async {
  if (serviceName.isEmpty) {
    print('请输入服务名称: ');
    return;
  }

  _createServiceFile(serviceName, path: path);

  print('服务已创建: $serviceName');
}