X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.cpp;h=fce55bbe9e856634a25b8141a3715965e88251b0;hb=55dad85695dba70b4447d1430733ecd85754783c;hp=c91dbf9abd520fc908698f68756d726d25002e95;hpb=c53c53b0280452e1c3a087fbf807b2e508cd66c4;p=mothur.git diff --git a/commandfactory.cpp b/commandfactory.cpp index c91dbf9..fce55bb 100644 --- a/commandfactory.cpp +++ b/commandfactory.cpp @@ -53,6 +53,7 @@ #include "listseqscommand.h" #include "getseqscommand.h" #include "removeseqscommand.h" +#include "systemcommand.h" /***********************************************************/ @@ -104,6 +105,7 @@ CommandFactory::CommandFactory(){ commands["list.seqs"] = "list.seqs"; commands["get.seqs"] = "get.seqs"; commands["remove.seqs"] = "get.seqs"; + commands["system"] = "system"; commands["quit"] = "quit"; } @@ -165,6 +167,7 @@ Command* CommandFactory::getCommand(string commandName, string optionString){ else if(commandName == "get.seqs") { command = new GetSeqsCommand(optionString); } else if(commandName == "remove.seqs") { command = new RemoveSeqsCommand(optionString); } else if(commandName == "merge.files") { command = new MergeFileCommand(optionString); } + else if(commandName == "system") { command = new SystemCommand(optionString); } else { command = new NoCommand(optionString); } return command;