Coder Social home page Coder Social logo

thor_template's Introduction

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
$

thor_template's People

Contributors

tongueroo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

wwalker lylelh

thor_template's Issues

"rake rename" fails

โ˜บ [wwalker@greased-lightning:~/br/stale_amis]
$ rake rename
sed: can't read s/thor_template/stale_amis/g: No such file or directory
sed: can't read s/ThorTemplate/StaleAmis/g: No such file or directory
sed: can't read s/thor_template/stale_amis/g: No such file or directory
sed: can't read s/ThorTemplate/StaleAmis/g: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.