This template is for building a Ruby CLI using Thor and some other goodies:
- An extension (
omg-thor-ext) to make Thor behave more like other CLIs (see Matt Brictson's blog about it) - Helper scripts
bin/install: installs dependencies and copies.env.exampleto.envbin/console: runs apryconsole with everything insrcloadedbin/cli: loads up the CLI
gh repo create your-name/your-new-cli-repo --public --template=omgreenfield/ruby-cli-templateGo through Gemfile and uncomment gems you want to include
bin/installbin/console
bin/cli help# Just the 1 required argument
bin/cli example "required arg"
# The 1 required argument and 1 optional argument
bin/cli example "required arg" "optional arg"
# The 1 required argument, 1 optional argument, and some named args
bin/cli example "required arg" "optional arg" -s "named string" -n 123 -brspec
# or
bundle exec rspec