setCommands method

CommandRunner setCommands({
  1. required ArgParser parser,
  2. required Config config,
  3. required List<String> arguments,
})

Implementation

CommandRunner setCommands(
    {required ArgParser parser,
    required Config config,
    required List<String> arguments}) {
  return CommandRunner(AppConstants.cmdGenRefs, AppConstants.cmdGenRefsHelp)
    ..addCommand(GenRefsCommand(
        config: config,
        createFileReferences: CreateFileReferences(
            CreateFileReferencesHelper(FileSystemUtil()),
            AppConstants.sourceDirectory,
            config)));
}