relpipe-in-cli.cpp
branchv_0
changeset 16 70af16946466
parent 15 dc2121dec856
child 18 9e543fd0254c
--- a/relpipe-in-cli.cpp	Sat Jul 28 15:42:42 2018 +0200
+++ b/relpipe-in-cli.cpp	Sat Jul 28 22:29:40 2018 +0200
@@ -11,14 +11,18 @@
 #include "Command.h"
 #include "ArgumentsCommand.h"
 #include "DemoCommand.h"
+#include "StdInCommand.h"
 
 using namespace relpipe::cli;
 using namespace relpipe::in::cli;
 using namespace relpipe::writer;
 
 Command* findCommand(string_t commandName) {
+	// TODO: better command names
+	// TODO: help command
 	if (commandName == L"demo") return new DemoCommand();
 	else if (commandName == L"generate") return new ArgumentsCommand();
+	else if (commandName == L"generate-from-stdin") return new StdInCommand();
 	else throw RelpipeCLIException(L"Unknown command: " + commandName, CLI::EXIT_CODE_UNKNOWN_COMMAND);
 }