Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Build Awesome Command-Line Applications in Ruby 2
For the Best Reading Experience...
Table of Contents
What Readers Are Saying About Build Awesome Command-Line Applications in Ruby
Introduction
How This Book Is Organized
Who This Book Is For
What You’ll Need
Conventions Used in the Book
Online Resources
Acknowledgments
Chapter 1: Have a Clear and Concise Purpose
Problem 1: Backing Up Data
Problem 2: Managing Tasks
What Makes an Awesome Command-Line App
Moving On
Chapter 2: Be Easy to Use
Understanding the Command Line: Options, Arguments, and Commands
Building an Easy-to-Use Command-Line Interface
Building an Easy-to-Use Command-Suite Interface
Moving On
Chapter 3: Be Helpful
Documenting a Command-Line Interface
Documenting a Command Suite
Including a Man Page
Writing Good Help Text and Documentation
Moving On
Chapter 4: Play Well with Others
Using Exit Codes to Report Success or Failure
Using the Standard Output and Error Streams Appropriately
Formatting Output for Use As Input to Another Program
Trapping Signals Sent from Other Apps
Moving On
Chapter 5: Delight Casual Users
Choosing Names for Options and Commands
Choosing Default Values for Flags and Arguments
Deciding Default Behavior
Moving On
Chapter 6: Make Configuration Easy
Why External Configuration?
Reading External Configuration from Files
Using Configuration Files with Command Suites
Design Considerations When Using Configuration
Moving On
Chapter 7: Distribute Painlessly
Distributing with RubyGems
Distributing Without RubyGems
Collaborating with Other Developers
Moving On
Chapter 8: Test, Test, Test
Testing User Behavior with Acceptance Tests
Testing in Isolation with Unit Tests
A Word About Test-Driven Development
Moving On
Chapter 9: Be Easy to Maintain
Dividing Code into Multiple Files
Designing Code for Maintainability
Moving On
Chapter 10: Add Color, Formatting, and Interactivity
Adding Color Using ANSI Escape Sequences
Formatting Output with Tables
Providing Interactive User Input with readline
Moving On
Appendix 1: Common Command-Line Gems and Libraries
Alternatives for Simple Command-Line Apps
Alternatives for Command Suites
Other Relevant Libraries
Bibliography
You May Be Interested In…
← Prev
Back
Next →
← Prev
Back
Next →