updateProject function

Future<bool> updateProject({
  1. String path = '',
})

Implementation

Future<bool> updateProject({
  String path = '',
}) async {
  var workDir = path;
  if (path == '') {
    workDir = Directory.current.path + '/';
  } else {
    workDir = path;
  }
  print('loading upper.json');
  return loadJson(workDir + 'upper.json').fold(
    (l) {
      print(l);
      return false;
    },
    (r) {
      return executeProjectUpdate(
        r,
        path: workDir,
      );
    },
  );
}