2025-02-05 12:48:05 +01:00
|
|
|
#include "SubCommand.h"
|
|
|
|
#include <sstream>
|
|
|
|
|
|
|
|
namespace commands {
|
2025-02-09 22:32:19 +01:00
|
|
|
SubCommand::SubCommand(const string& indicator, const bool show_result): name(indicator), show_result(show_result) {}
|
2025-02-05 12:48:05 +01:00
|
|
|
|
2025-02-09 21:14:26 +01:00
|
|
|
void SubCommand::run(stringstream& args) {
|
2025-02-05 12:48:05 +01:00
|
|
|
cout << "Not impl!\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
string SubCommand::get_name() {
|
|
|
|
return this->name;
|
|
|
|
}
|
2025-02-09 19:58:55 +01:00
|
|
|
|
|
|
|
bool SubCommand::should_display_result() const
|
|
|
|
{
|
|
|
|
return this->show_result;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // commands
|