Skip to content

postmodern/ruby-cli-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby-cli-boilerplate

This repository contains a boilerplate Ruby CLI class that can be used to implement a basic zero-dependency CLI for other Ruby libraries.

Features

  • Zero-dependencies, making it ideal for adding a CLI to small libraries.
  • Correctly handles Ctrl^C and broken pipe exceptions.
  • Catches any other exceptions and prints a bug report.
  • Defines the CLI as a class, making it easy to test.
  • Comes with boilerplate RSpec tests.

Other CLI libraries

If you want to build a CLI for a large Ruby app or framework, and don't mind adding an extra dependency for a CLI library/framework, I recommend the following Ruby CLI libraries:

About

Zero-dependency Ruby CLI boilerplate code

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy