3 #include "OutputModule.h"
4 #include "terminalCodes/TerminalCodes.h"
8 namespace parameterLister {
10 void OutputModule::process(std::ostream &output, std::string &command, std::vector<std::string> &args) {
11 terminalCodes::Modifier fgGreen(terminalCodes::FG_GREEN);
12 terminalCodes::Modifier fgReset(terminalCodes::FG_DEFAULT);
16 output << "<outputModule>" << endl;
18 for_each(args.begin(), args.end(), [&output, command, fgGreen, fgReset](string s) {
19 output << fgGreen << command << fgReset << ": " << s << endl;
22 output << "</outputModule>" << endl;