Json2DartCommand constructor

Json2DartCommand()

Implementation

Json2DartCommand() {
  argParser.addOptionMorphemeYaml();
  argParser.addFlag(
    'api',
    help: 'Generate models with implement api.',
  );
  argParser.addFlag(
    'endpoint',
    help: 'Generate endpoint from path json2dart.yaml.',
  );
  argParser.addFlag(
    'unit-test',
    help: 'Generate unit test for api implementation.',
  );
  argParser.addFlag(
    'only-unit-test',
    help: 'Generate only unit test for api implementation.',
  );
  argParser.addOption(
    'feature-name',
    abbr: 'f',
    help: 'Generate spesific feature (Optional)',
  );
  argParser.addOption(
    'page-name',
    abbr: 'p',
    help: 'Generate spesific page, must include --feature-name (Optional)',
  );
  argParser.addFlag(
    'replace',
    help:
        'Replace value generated. if set to false will be delete all directory generated json2dart before.',
  );
  argParser.addOption(
    'apps-name',
    abbr: 'a',
    help: 'Generate spesific apps (Optional)',
  );
}