updateGrpcServer function

Future<bool> updateGrpcServer(
  1. UpperProject upperJson, {
  2. required String path,
})

Implementation

Future<bool> updateGrpcServer(
  UpperProject upperJson, {
  required String path,
}) async {
  print('updating grpc_server.dart . . .');

  return writeInFile(
    '$path/lib/src',
    'grpc_server.dart',
    getGrpcServer(
      upperJson.name,
      port: upperJson.portNumer,
    ),
  );
}