spire-io/spire.io.rb — Issue #4: Nominate spire CLI subcommands
Author: dyoder
Created: 2012-02-10 01:32:54+00:00
State: open

I've just committed the beginnings of a spire.io CLI to the spire.io.rb repo.

Right now there is one sub-command: register.

spire register -e 'dan+test.123@spire.io' -p password

This is hopefully somewhat useful already. But what's more important is the framework that's now in place to add new sub-commands.

If you study `lib/spire/commands/register.rb` you'll see the basic pattern. It's straightforward to add new commands following that pattern.

Then you simply your `Command` class to the `COMMANDS` hash in `lib/spire/commands/cli.rb` with the subcommand that corresponds to it.

I plan to add several tonight/tomorrow. But what I really want to know is what subcommands would be the most useful? I figure account reset and password change. (You'd still have to go check your email afterwards but ...)

We could also do publish and subscribe. But is there anything else that would be cool?