ru.pavkin.todoist.api.core.model.util.CombineCommands.Syntax
Creates a dependant command that uses the tempId
of this command and
stacks it to this command.
Creates a dependant command that uses the tempId
of this command and
stacks it to this command.
Returns an HList
of this command and the dependant command.
A function that receives a tempId and creates a command.
An HList
of this command and the dependant command.
AddProject("p").andForIt(AddTask("t",_) // AddProject :: AddTask :: HNil
Creates multiple dependant commands that use the tempId
of this command and
stacks them to this command.
Creates multiple dependant commands that use the tempId
of this command and
stacks them to this command.
Returns an HList
of this command and the dependant commands.
A function that receives a tempId and creates an HList
of commands.
An HList
of this command and the dependant commands.
AddProject("p").andForItAll(id => AddTask("t1",id) :+ AddTask("t2",id)) // AddProject :: AddTask :: AddTask :: HNil
Creates a dependant command that uses the tempId
of this command.
Creates a dependant command that uses the tempId
of this command.
Returns only the dependant command.
A function that receives a tempId and creates a command.
The dependant command only
AddProject("p").forIt(AddTask("t",_) // AddTask