mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Updated Documentation
- Added description of import process.
This commit is contained in:
parent
e4f5d6579c
commit
c1291dc587
2 changed files with 30 additions and 1 deletions
|
@ -240,8 +240,13 @@ std::string handleImport (TDB& tdb, T& task, Config& conf)
|
|||
std::vector <std::string> lines;
|
||||
slurp (file, lines, true);
|
||||
|
||||
// Take a guess at the file type.
|
||||
fileType type = determineFileType (lines);
|
||||
|
||||
// TODO Allow an override.
|
||||
|
||||
// Determine which type it might be, then attempt an import.
|
||||
switch (determineFileType (lines))
|
||||
switch (type)
|
||||
{
|
||||
case task_1_4_3: out << importTask_1_4_3 (tdb, conf, lines); break;
|
||||
case task_1_5_0: out << importTask_1_5_0 (tdb, conf, lines); break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue