app/packages/sct_dev_tools/bin/sct_dev_tools.dart

13 lines
283 B
Dart
Raw Normal View History

2024-03-14 21:49:21 +08:00
import 'auto_l10n.dart';
void main(List<String> args) {
switch (args.elementAtOrNull(0)) {
case "gen":
return AutoL10nTools().genL10nFiles();
2024-03-15 00:01:06 +08:00
case "replace":
return AutoL10nTools().replaceL10nFiles();
2024-03-14 21:49:21 +08:00
default:
2024-03-15 00:01:06 +08:00
throw Exception("cmd not found");
2024-03-14 21:49:21 +08:00
}
}