////////////////////////////////////////////////////////////////////////////////
//
-// 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
////////////////////////////////////////////////////////////////////////////////
#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;
}
////////////////////////////////////////////////////////////////////////////////