Enhancements - Context integration
- Context now gathers messages and footnotes. - task now calls into the new 1.8.0 code (via Context), then calls into the old 1.7.0 code. Two for the price of one.
This commit is contained in:
12
src/task.cpp
12
src/task.cpp
@@ -297,16 +297,9 @@ int main (int argc, char** argv)
|
||||
try
|
||||
{
|
||||
context.initialize (argc, argv);
|
||||
/* return */ context.run ();
|
||||
|
||||
// When redirecting output to a file, do not use color, curses.
|
||||
if (!isatty (fileno (stdout)))
|
||||
{
|
||||
context.config.set ("curses", "off");
|
||||
|
||||
if (! context.config.get (std::string ("_forcecolor"), false))
|
||||
context.config.set ("color", "off");
|
||||
}
|
||||
|
||||
// start OBSOLETE
|
||||
TDB tdb;
|
||||
std::string dataLocation = expandPath (context.config.get ("data.location"));
|
||||
tdb.dataDirectory (dataLocation);
|
||||
@@ -342,6 +335,7 @@ int main (int argc, char** argv)
|
||||
std::cerr << context.stringtable.get (100, "Unknown error.") << std::endl;
|
||||
return -2;
|
||||
}
|
||||
// end OBSOLETE
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user