mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Enhancement - duplicate
- Implemented duplicate command. - Now allows duplication (and demotion) of recurring tasks.
This commit is contained in:
parent
8a22ac7cf2
commit
23f0a9658e
2 changed files with 61 additions and 43 deletions
|
@ -204,7 +204,9 @@ std::string Context::dispatch ()
|
|||
else if (cmd.command == "export") { out = handleExport (); }
|
||||
/*
|
||||
else if (cmd.command == "import") { out = handleImport (); }
|
||||
*/
|
||||
else if (cmd.command == "duplicate") { out = handleDuplicate (); }
|
||||
/*
|
||||
else if (cmd.command == "edit") { out = handleEdit (); }
|
||||
*/
|
||||
|
||||
|
@ -449,7 +451,6 @@ void Context::parse ()
|
|||
// Anything else is just considered description.
|
||||
else
|
||||
{
|
||||
header ("parse description '" + *arg + "'");
|
||||
if (foundSequence)
|
||||
foundSomethingAfterSequence = true;
|
||||
|
||||
|
@ -473,7 +474,10 @@ void Context::parse ()
|
|||
}
|
||||
|
||||
if (descCandidate != "" && noVerticalSpace (descCandidate))
|
||||
{
|
||||
header ("parse description '" + descCandidate + "'");
|
||||
task.set ("description", descCandidate);
|
||||
}
|
||||
|
||||
// TODO task.validate () ?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue