2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-06-27 06:43:13 +00:00
This commit is contained in:
2022-03-12 16:21:29 +03:00
parent 92a26b8ce5
commit 88eba227ae
64 changed files with 38165 additions and 2952 deletions

View File

@ -58,13 +58,13 @@ void main(List<String> arguments) async {
return;
} else if (cmd == "version") {
await printVersion();
printVersion();
} else {
printUsage();
}
}
printUsage() {
void printUsage() {
// print help
print("Esiur package command line");
print("");
@ -80,7 +80,7 @@ printUsage() {
print("\t-d, --dir\tName of the directory to generate model inside.");
}
printVersion() async {
void printVersion() async {
var p = Platform.script.pathSegments;
var path = p.take(p.length - 2).join('/') + "/pubspec.yaml";
var yaml = await File(path).readAsString();