evoke

Examples of natural-language commands you can run or adapt.

Type what you want, and a program you installed does it. A reflex is a small program you install and ask for in your words. One example runs today on a Mac, and five are patterns to adapt to your own programs.

Examples

01 to 06

Pick one, and follow it to its set-up.

Each page shows a sentence, what the terminal printed, one case where evoke asked or stopped, and what you need. Each ends with the steps to run it or adapt it.

$ evoke "set the volume to 40 percent"
01Everyday Mac tasksFifteen reflexes for everyday things on a Mac: lock the screen, set the volume, start a timer or a draft.Runs today on a Mac with the collection.
$ evoke "look up dana's address and email them"
02Pass a result to the next stepOne sentence looks up an address, and the next step starts an email to it.A pattern to adapt. You write the lookup. Two collection reflexes pass a path the same way.
$ evoke "scale checkout to 6 in staging"
03kubectl operations in your team's wordsYour names for services fill kubectl's arguments. A scale runs when evoke is sure enough, and a rollback always asks.A pattern to adapt. Needs kubectl and access to your cluster.
$ node queue.ts < inbox.txt
04Triage typed requestsA file of requests, one per line. The clear ones run, and the rest wait for a person.A pattern to adapt, at a terminal or in eleven lines of your app.
$ node runbook.ts "drain the primary"
05A runbook whose check picks the next stepFive sentences in one plan. The check's result picks between telling the channel and failing back; only the failover asks.A pattern for your app. The database programs are stand-ins.
$ node checker.ts
06Maker-checker approvalOne person types a payment. The decision waits until another confirms it.A pattern for your app. Authorization stays yours.

No example fits? Wrap a program of your own.

evoke runs only reflexes that someone wrote and you installed. A reflex can wrap a script, a command or a function you already have. To wrap a command, one file is enough: the manifest, which says what it does and what to ask you.