existConfig static method

Future<bool> existConfig(
  1. String? dir
)

Implementation

static Future<bool> existConfig(String? dir) async {
  var cfgPath = await CliHelper.configPath(dir);
  if (cfgPath != null) {
    var file = File(cfgPath);
    if (await file.exists()) {
      return true;
    } else {
      return false;
    }
  } else {
    return false;
  }
}