]> git.armaanb.net Git - gen-shell.git/blobdiff - src/diag.cpp
added install instructions
[gen-shell.git] / src / diag.cpp
index 8478fba2ad658fc3efdb7823d8526893c14b578b..54c5184beeb336a486ea7bbe188ad4ffb77d9b9a 100644 (file)
@@ -1,6 +1,6 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-// Copyright 2006 - 2017, Paul Beckingham, Federico Hernandez.
+// Copyright 2006 - 2017, Paul Beckingham, Federico Hernandez, 2020 Armaan Bhojwani.
 //
 // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to deal
@@ -25,7 +25,6 @@
 ////////////////////////////////////////////////////////////////////////////////
 
 #include <cmake.h>
-#include <commit.h>
 #include <iostream>
 #include <string>
 #include <vector>
@@ -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;
 }
 
 ////////////////////////////////////////////////////////////////////////////////