generateConfig function
Entry point of command run
Implementation
Future<void> generateConfig(List<String> arguments) {
final parser = ArgumentParser(arguments);
return loadConfig(parser.parseConfigPath()).then((yamlConfig) {
return Config.fromMap(
PlatformValueProvider(),
yamlConfig,
parser.parseArguments(yamlConfig),
);
}).then((config) {
return ConfigGenerator(config).generate();
}).then((_) {
exitCode = 0;
}).catchError((e) {
exitCode = 2;
stderr.writeln(e);
});
}