Future<String> readFile(String path) async { File file = File(path.path); if (!await file.exists()) { throw CliException(message: "File $path is not exist"); } return await file.readAsString(); }