redding/sanford — pull request #51 by jcredding (2013-02-11 21:14:42+00:00)
Title: Added initial CLI

**WIP**

This is my work so far to add a CLI for Sanford. This works, but is still using daemons and I want to reorganize some pieces. I also haven't removed the rake stuff. This is the minimal implementation of the CLI in my mind (supports what we had with rake).

The CLI's help output looks like:

```bash
Usage: sanford
Commands: run, start, stop, restart

-h, --host HOST Name of the Host configuration
-i, --ip IP IP address to bind to
-p, --port PORT Port number to bind to
--version
--help
```

@kellyredding - One thing I noticed / thought of while using cli.rb was that it's defining the global CLI namespace. This could be a little intrusive for applications in general, so I chose to namespace it under `CLIRB`. Any thoughts on this? I also added it directly under `lib` which works really nicely. Can you think of any problems doing this? Maybe requiring it through rubygems (which I'm pretty sure I'm doing) would funk with others gems that embed cli.rb in the same style? Just a couple questions, it's working great though.