Say "Hello!"

Go ahead, try it…

Now go wild. Say "Show me…" and make your demands!

Say "Show me Arches National Park!"

Say "Show me cute kittens!"

Let's try something more interesting…

No problem, say "Show TPS report"

That's cool, but in the real world it's not all kittens and hello world.

Simple. Here is all the code needed to achieve that:

How did you do that?

What about more complicated commands?

annyang understands commands with named variables, splats, and optional words.

Use named variables for one word arguments in your command.

Use splats to capture multi-word text at the end of your command (greedy).

Use optional words or phrases to define a part of the command as optional.