X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getcurrentcommand.cpp;h=b9b907d903752d8a93979680d361c2ea683c7cab;hb=9a808b553f14a25f9c5e94da92a7077a57054e8e;hp=d74786ce1eaaa8767164a0fbd670d06843388b44;hpb=a54ba6143022dc7294f4fdc468fc10b627c64b0e;p=mothur.git diff --git a/getcurrentcommand.cpp b/getcurrentcommand.cpp index d74786c..b9b907d 100644 --- a/getcurrentcommand.cpp +++ b/getcurrentcommand.cpp @@ -90,7 +90,9 @@ int GetCurrentCommand::execute(){ try { if (abort == true) { if (calledHelp) { return 0; } return 2; } - + + cFactory = CommandFactory::getInstance(); + //user wants to clear a type if (types.size() != 0) { for (int i = 0; i < types.size(); i++) { @@ -158,8 +160,31 @@ int GetCurrentCommand::execute(){ m->mothurOutEndLine(); m->mothurOut("Current files saved by mothur:"); m->mothurOutEndLine(); m->printCurrentFiles(); } + + string inputDir = cFactory->getInputDir(); + if (inputDir != "") { + m->mothurOutEndLine(); m->mothurOut("Current input directory saved by mothur: " + inputDir); m->mothurOutEndLine(); + } + + string outputDir = cFactory->getOutputDir(); + if (outputDir != "") { + m->mothurOutEndLine(); m->mothurOut("Current output directory saved by mothur: " + outputDir); m->mothurOutEndLine(); + } + string defaultPath = m->getDefaultPath(); + if (defaultPath != "") { + m->mothurOutEndLine(); m->mothurOut("Current default directory saved by mothur: " + defaultPath); m->mothurOutEndLine(); + } + + + string temp = "./"; +#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix) +#else + temp = ".\\"; +#endif + temp = m->getFullPathName(temp); + m->mothurOutEndLine(); m->mothurOut("Current working directory: " + temp); m->mothurOutEndLine(); - return 0; + return 0; } catch(exception& e) {