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
- Host: GitHub
- URL: https://github.com/ddavison/new-ruby-cli
- Owner: ddavison
- License: mit
- Created: 2014-11-24T16:02:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-24T16:22:57.000Z (over 11 years ago)
- Last Synced: 2025-02-05T00:09:07.816Z (over 1 year ago)
- Language: Shell
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.