create method

dynamic create({
  1. dynamic commandLine = String,
})

Implementation

create({commandLine = String}) async {
  final parsed = parse(commandLine: commandLine);
  final paths = getPath(parsed);
  final content = await getENVContent(paths['origin']);
  if (content != null) {
    final expanded = expand(content, false);
    final codes = GenCodeOfDart(expanded).code;
    await write(paths['generated'], codes);
  } else {
    debugPrint('Content is null, cannot expand.');
  }
}