X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=src%2Fdiag.cpp;h=54c5184beeb336a486ea7bbe188ad4ffb77d9b9a;hb=6b00badf490a075f6520e0f856aaa68ae52e67d8;hp=3b4e3a9cdc436db97144325df623333f1df95319;hpb=eb1e18ee5dc8235e48dd5184f60c13c33cad6add;p=gen-shell.git diff --git a/src/diag.cpp b/src/diag.cpp index 3b4e3a9..54c5184 100644 --- a/src/diag.cpp +++ b/src/diag.cpp @@ -25,7 +25,6 @@ //////////////////////////////////////////////////////////////////////////////// #include -#include #include #include #include @@ -94,14 +93,7 @@ int cmdDiagnostics () << "\n\n"; std::cout << bold.colorize ("Build Features") - << "\n" - - // Build date. - << " " << "Built: " << __DATE__ << " " << __TIME__ << "\n" -#ifdef HAVE_COMMIT - << " " << "Commit: " << COMMIT << "\n" -#endif - << " CMake: " << CMAKE_VERSION << "\n"; + << "\n"; std::cout << "libreadline: " #ifdef HAVE_READLINE @@ -135,29 +127,6 @@ int cmdDiagnostics () std::cout << " TASKDATA: " << (env ? env : "") << "\n"; - - // Taskwarrior version + location - std::string path (getenv ("PATH")); - std::cout << " PATH: " << path << "\n"; - - for (const auto& i : split (path, ':')) - { - File task (i + "/task"); - if (task.exists ()) - { - std::string input; - std::string output; - execute ("task", {"--version"}, input, output); - - std::cout << "Taskwarrior: " - << i - << "/task " - << output; // Still has \n - } - } - - std::cout << "\n"; - return 0; } ////////////////////////////////////////////////////////////////////////////////