GraphQLGenCommandRunner constructor

GraphQLGenCommandRunner()

Implementation

GraphQLGenCommandRunner()
  : super(
      'graphql_gen_generator',
      'Generates Freezed models, field enums and typed argument builders '
          'from a GraphQL schema.',
    ) {
  argParser.addOption(
    'config',
    abbr: 'c',
    defaultsTo: GraphQLGenConfig.defaultPath,
    help: 'Path to the config file.',
  );
  addCommand(_InitCommand());
  addCommand(_FetchCommand());
  addCommand(_SyncCommand());
}