int CountCommand::runCommand() { FileReader reader; reader.setLoadStringData(false); reader.addFiles(input_filenames); reader.runChain(); cout << reader.getCount() << endl; return 0; }
int HistoryCommand::runCommand() { FileReader reader; PrintHistory history; reader.addFiles(input_filenames); reader.addSink(&history); reader.runChain(); return 0; }