aboutsummaryrefslogtreecommitdiff
path: root/data/core/commands/command.lua
AgeCommit message (Collapse)Author
2022-08-16Allow command predicates to manage parameters passed to the commandsGuldoman
When a command is performed with parameters, those are now passed to the predicate. The predicate can then return, after the validity boolean, any other value that will then be passed to the actual command. If the predicate only returns the validity boolean, the original parameters are passed through to the actual command. This allows predicates to manipulate the received parameters, and allows them to pass the result of an expensive computation to the actual command, which won't have to recalculate it. String and table predicates will now also return `core.active_view`.
2021-06-07Commands refactor (#257)Takase
* remove unecessary check * move command registration to core/commands
2019-12-28Initial commitrxi