Sha256: c8c061cfe5cf7ba1934638bdde4e080d71149d113d119b94bbcc0e767debc69b
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
[![Build Thor CLI Project in Under a Second](https://img.youtube.com/vi/GcVhdoneZYk/0.jpg)](https://www.youtube.com/watch?v=GcVhdoneZYk) # ThorTemplate [![Build Status](https://travis-ci.org/tongueroo/thor_template.svg?branch=generator)](https://travis-ci.org/tongueroo/thor_template) [![Code Climate](https://codeclimate.com/github/tongueroo/thor_template.png)](https://codeclimate.com/github/tongueroo/thor_template) `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](https://blog.boltops.com/2017/09/14/build-thor-cli-project-in-under-a-second), also covers usage and also contains a video demo. ## Installation ```sh gem install thor_template ``` ## Usage ```sh thor_template new mycli cd mycli bin/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 😁 ```sh $ 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 $ ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
thor_template-2.0.2 | README.md |
thor_template-2.0.1 | README.md |
thor_template-2.0.0 | README.md |