Integration - "projects" report

- "projects" report converted to 1.8.0.
- Relocated code from task.cpp to recur.cpp to allow unit tests to link
  without includign task.cpp and therefore main.
- Removed obsolete sandbox directory.
- Fixed bug where Config::load deleted the pre-loaded custom reports.
- Fixed bug where Cmd::valid failed to include custom reports properly.
This commit is contained in:
Paul Beckingham
2009-06-08 00:54:49 -04:00
parent cf67e0142c
commit fb5fe5f5b4
12 changed files with 494 additions and 516 deletions

View File

@@ -25,7 +25,6 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <iostream>
#include "Cmd.h"
#include "Context.h"
#include "util.h"
@@ -59,14 +58,9 @@ bool Cmd::valid (const std::string& input)
loadCommands ();
loadCustomReports ();
std::string candidate = lowerCase (input);
std::vector <std::string> matches;
autoComplete (candidate, commands, matches);
if (0 == matches.size ())
return false;
return true;
autoComplete (lowerCase (input), commands, matches);
return matches.size () == 1 ? true : false;
}
////////////////////////////////////////////////////////////////////////////////