GenerateCommand constructor

GenerateCommand()

Implementation

GenerateCommand() {
  argParser
    ..addOption(
      'output',
      abbr: 'o',
      help: 'Root directory the generated files will be written to.',
      defaultsTo: '.',
    )
    ..addOption(
      'input',
      abbr: 'i',
      help: 'Path to the open api spec file.',
      defaultsTo: 'openapi.yaml',
    )
    ..addOption(
      'backend-name',
      help: 'Name of the folder the backend api will be generated.',
      defaultsTo: 'backend',
    )
    ..addFlag(
      'new',
      abbr: 'n',
      help: 'Generate new brand new files.',
      negatable: false,
    );
}