By David B. Copeland
Speak on to your method. With its basic instructions, flags, and parameters, a well-formed command-line program is the fastest method to automate a backup, a construct, or a deployment and simplify your life.
As Ruby professional David Copeland explains, writing a command-line software that's self-documenting, powerful, adaptable and endlessly worthwhile is simpler than you may imagine. Ruby is especially suited for this activity, because it combines high-level abstractions with "close to the steel" method interplay wrapped up in a concise, readable syntax. in addition, Ruby has the help of a wealthy environment of open-source instruments and libraries.
Ten insightful chapters each one clarify and show a command-line most sensible perform. you will see tips on how to use those instruments to raise the lowliest automation script to a maintainable, polished software.
You'll how one can use unfastened, open resource parsers to create hassle-free command-line interfaces in addition to command suites. you will see the way to use defaults to maintain recommendations uncomplicated for daily clients, whereas giving complex clients thoughts for extra advanced projects.
There's no cause a command-line program may still lack documentation, even if it truly is a part of a aid command or a guy web page; you can find out whilst and the way to take advantage of either. Your trip from command-line amateur to seasoned ends with a glance at helpful techniques to checking out your apps, and comprises a few enjoyable ideas for outside-the-box, colourful interfaces that may pride your users.
With Ruby, the command line isn't useless. lengthy dwell the command line.
What You Need:
All you have to is Ruby, and the power to put in a couple of gemstones alongside the best way. Examples written for Ruby 1.9.2, yet 1.8.7 may still paintings simply as well.
Read or Download Build Awesome Command-Line Applications in Ruby: Control Your Computer, Simplify Your Life PDF
Similar Programming books
For those that are approximately to write down their first embedded application - or were suffering to benefit approximately this crucial zone - this booklet will store weeks of attempt.
“Next time a few child indicates up at my door requesting a code evaluate, this can be the publication that i'm going to throw at him. ” –Aaron Hillegass, founding father of immense Nerd Ranch, Inc. , and writer of Cocoa Programming for Mac OS X Unlocking the secrets and techniques of Cocoa and Its Object-Oriented Frameworks Mac and iPhone builders are frequently beaten via the breadth and class of the Cocoa frameworks.
Bestselling Programming educational and Reference thoroughly Rewritten for the recent C++11 common absolutely up-to-date and recast for the newly published C++11 normal, this authoritative and complete advent to C++ can assist you to benefit the language quickly, and to take advantage of it in sleek, powerful methods.
Hold velocity with the fast-developing international of working structures Open-source working platforms, digital machines, and clustered computing are one of the top fields of working platforms and networking which are swiftly altering. With large revisions and organizational alterations, Silberschatz, Galvin, and Gagne’s working approach strategies, 8th version is still as present and proper as ever, aiding you grasp the elemental suggestions of working platforms whereas getting ready your self for today’s rising advancements.
Additional info for Build Awesome Command-Line Applications in Ruby: Control Your Computer, Simplify Your Life
We’ll find out about this sort of trying out through the use of the preferred Cucumber trying out instrument, besides Aruba, that's an extension to Cucumber designed to aid try command-line functions. popularity exams are an outstanding position to begin as a result usercentered technique, so let’s bounce in and notice how they paintings. when we have a obtain from Wow! publication