Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 92316e1 Feb 14, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
exe
lib update starter project template Feb 8, 2018
spec comment out SimpleCov Dec 5, 2017
.gitignore ignore Gemfile.lock Jul 8, 2014
CHANGELOG.md 2.2.1 release Feb 3, 2018
Gemfile change thor_template into a generator Apr 28, 2014
Guardfile
LICENSE.txt bundle gem thor_template Nov 30, 2013
README.md update readme Feb 14, 2018
Rakefile include bundler gem tasks Apr 29, 2014
thor_template.gemspec reanme bin folder to exe Dec 5, 2017

README.md

Build Thor CLI Project in Under a Second

Thor Template

Build Status Code Climate

IMPORTANT: This tool is superseded by cli-template. This tool still works and generates a fine CLI. The new one supports different templates and auto-completion.

thor_template is a generator tool that builds a starter CLI project based on Thor. This blog post, Build Thor CLI Project in Under a Second, also covers usage and also contains a video demo.

Installation

gem install thor_template

Usage

thor_template new mycli
cd mycli
exe/mycli hello world

The above generated a starter CLI project called mycli with a working hello command. The generated project also has starter specs for you 😁

$ rake
rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
Foo::CLI
  foo
    should hello world

Finished in 0.09672 seconds (files took 0.20945 seconds to load)
1 example, 0 failures
$
You can’t perform that action at this time.