An open API service indexing awesome lists of open source software.

https://github.com/ddavison/new-ruby-cli

bootstrap shell script for new ruby cli apps
https://github.com/ddavison/new-ruby-cli

Last synced: 10 months ago
JSON representation

bootstrap shell script for new ruby cli apps

Awesome Lists containing this project

README

          

new-ruby-cli
---

A simple bootstrap script that will create everything you need for a new ruby CLI app.

Simply include the bash script via `source`, and be on your way.

Example:
```bash
$ source new-ruby-cli.sh
$ new-ruby-cli app
$ tree app
app
├── README.md
├── bin
│   └── app
└── lib
├── app
│   ├── commands.rb
│   └── version.rb
└── app.rb
$ cd bin
$ ./app
Usage: app [options] ...
-v, --version Show the version
-h, --help Show the usage
```

### Known caveats
- Since the generation is based on the name, names with Dashes **do not work**. You'll have to refactor your module
- This project will generate a gitignore using the [`gi`](http://gitignore.io) CLI. If you do not have `gi` in your path, then [add it!](https://github.com/joeblau/gitignore.io#linux) you'll thank me.