init method
Implementation
Future<void> init() async {
try {
currentPath = Directory.current.path;
final file = File('$currentPath/pubspec.yaml');
if (!file.existsSync()) {
print('file မရှိပါ');
return;
}
final res = loadYaml(file.readAsStringSync());
pubspec = Map<String, dynamic>.from(res);
await initChangeLog();
await initReleaseFile();
print('Created Successfully');
} catch (e) {
print('init: ${e.toString()}');
}
}