Methods
# static registerCMD()
Takes a Command object with some additional information
and returns a Command run
able in a Task or as-is.
Example
const genie = {
sub$: "GENIE",
args: "your wish"
work: x => console.log("🧞 says:", x, "is my command")
}
const GENIE = registerCMD(genie)
run(GENIE)
// 🧞 says: your wish is my command
A Command object can have four keys:
sub$
(required)args
(optional, sets default) during registrationwork
(required)src$
(optional, enables stream to feed Command)