|
|
@ -29,6 +29,7 @@ void addVersion() async {
|
|
|
|
String result = yamlContent.replaceFirst(version, resultVersion.toString());
|
|
|
|
String result = yamlContent.replaceFirst(version, resultVersion.toString());
|
|
|
|
await File(yamlPath).writeAsString(result);
|
|
|
|
await File(yamlPath).writeAsString(result);
|
|
|
|
stdout.write('version has been add 👍\n');
|
|
|
|
stdout.write('version has been add 👍\n');
|
|
|
|
|
|
|
|
await uploadVersion();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Task('add path version number')
|
|
|
|
@Task('add path version number')
|
|
|
@ -45,6 +46,7 @@ void addVersionPatch() async {
|
|
|
|
String result = yamlContent.replaceFirst(version, resultVersion.toString());
|
|
|
|
String result = yamlContent.replaceFirst(version, resultVersion.toString());
|
|
|
|
await File(yamlPath).writeAsString(result);
|
|
|
|
await File(yamlPath).writeAsString(result);
|
|
|
|
stdout.write('version has been add 👍\n');
|
|
|
|
stdout.write('version has been add 👍\n');
|
|
|
|
|
|
|
|
await uploadVersion();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Task('add major version number')
|
|
|
|
@Task('add major version number')
|
|
|
@ -61,6 +63,7 @@ void addVersionMajor() async {
|
|
|
|
String result = yamlContent.replaceFirst(version, resultVersion.toString());
|
|
|
|
String result = yamlContent.replaceFirst(version, resultVersion.toString());
|
|
|
|
await File(yamlPath).writeAsString(result);
|
|
|
|
await File(yamlPath).writeAsString(result);
|
|
|
|
stdout.write('version has been add 👍\n');
|
|
|
|
stdout.write('version has been add 👍\n');
|
|
|
|
|
|
|
|
await uploadVersion();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Task()
|
|
|
|
@Task()
|
|
|
|