start function
Implementation
start(List<String> arguments) async {
final ArgParser parser = ArgParser(allowTrailingOptions: true);
parser.addFlag(helpFlag, abbr: 'h', help: 'Usage help', negatable: false);
// Make default null to differentiate when it is explicitly set
parser.addOption(fileOption,
abbr: 'f', help: 'Config file (default: $defaultConfigFile)');
final ArgResults argResults = parser.parse(arguments);
if (argResults[helpFlag]) {
stdout.writeln('Generates icons for iOS and Android');
stdout.writeln(parser.usage);
exit(0);
}
final Map<String, dynamic>? yamlConfig =
loadConfigFileFromArgResults(argResults, verbose: true);
if (yamlConfig?['packageName'] != null) {
print("RENAME PACKAGE ANDROID");
var androidStep =
AndroidRenameSteps(yamlConfig?['packageName'], yamlConfig?['appName']);
await androidStep.process();
await androidStep.appNameCahnge("TEST");
}
if (yamlConfig == null) {
print("error");
// throw const NoConfigFoundException();
}
}