////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
-#include <commit.h>
#include <iostream>
#include <string>
#include <vector>
<< "\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
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;
}
////////////////////////////////////////////////////////////////////////////////