File Import

- Implemented scaffolding for new import command.
This commit is contained in:
Paul Beckingham
2009-03-25 02:05:50 -04:00
parent c31ec6b6a6
commit db7b2dd9fe
9 changed files with 207 additions and 3 deletions

View File

@@ -172,6 +172,10 @@ static std::string shortUsage (Config& conf)
table.addCell (row, 1, "task stats");
table.addCell (row, 2, "Shows task database statistics");
row = table.addRow ();
table.addCell (row, 1, "task import");
table.addCell (row, 2, "Imports tasks from a variety of formats");
row = table.addRow ();
table.addCell (row, 1, "task export");
table.addCell (row, 2, "Exports all tasks as a CSV file");
@@ -844,6 +848,7 @@ std::string runTaskCommand (
else if (command == "start") { cmdMod = true; out = handleStart (tdb, task, conf); }
else if (command == "stop") { cmdMod = true; out = handleStop (tdb, task, conf); }
else if (command == "undo") { cmdMod = true; out = handleUndo (tdb, task, conf); }
else if (command == "import") { cmdMod = true; out = handleImport (tdb, task, conf); }
// Command that display IDs and therefore need TDB::gc first.