GenRefsCommand constructor

GenRefsCommand({
  1. required Config config,
  2. required CreateFileReferences createFileReferences,
})

Implementation

GenRefsCommand({
  required this.config,
  required this.createFileReferences,
}) {
  argParser.addOption(AppConstants.argLongPackageName,
      abbr: AppConstants.argShortPackageName,
      defaultsTo: null,
      mandatory: false);

  argParser.addOption(AppConstants.argLongExcludeSuffix,
      abbr: AppConstants.argShortExcludeSuffix,
      defaultsTo: AppConstants.excludeSuffixDefaultValue,
      mandatory: false);

  argParser.addMultiOption(AppConstants.argLongExcludeFiles,
      splitCommas: true, help: AppConstants.argLongExcludeFilesHelp);

  argParser.addMultiOption(AppConstants.argLongExcludeContents,
      splitCommas: true, help: AppConstants.argLongExcludeContentsHelp);

  argParser.addOption(AppConstants.argLongExcludeContentsPath,
      help: AppConstants.argLongExcludeContentsPathHelp, mandatory: false);
}