{"repo":"albertalef/rubyshell","free":true,"listed":false,"github":"https://github.com/albertalef/rubyshell","clone":"git clone https://github.com/albertalef/rubyshell.git","description":"Rubyist way to create Shell Scripts!!","language":"Ruby","stars":190,"topics":["automation","ruby","script","shell","shell-script","hacktoberfest"],"license":"MIT","category":"workflow-automation","readme_excerpt":"The Rubyist way to write shell scripts Installation · Usage · Wiki · Examples · Contributing Yes, that's valid Ruby! ls and cat are just shell commands, but RubyShell makes them behave like Ruby methods. Installation Or install directly: Why RubyShell? The Problem Ever written something like this? Or tried to do error handling in bash? The Solution Usage Basic Commands Pipelines Directory Scoping Error Handling Parallel Execution Run multiple commands concurrently and get results as they complete: Returns an Enumerator with results in completion order. Errors are captured and returned as values (not raised). Environment Variables Debug Mode Output Parsers Parse command output directly into Ruby objects: Chain Options Real-World Examples Git Workflow Automation Log Analysis Docker Cleanup Batch File Processing System Health Check Interactive Script with Confirmation Deploy Script Comparison Task Bash RubyShell ------ ------ ----------- Error handling cmd \\ \\ echo \"fail\" rescue CommandError String manipulation echo $var \\ sed \\ awk result.gsub(/.../) Data structures Arrays only Hashes, objects, classes Iteration for f in ; do .each , .map , .select Testing DIY RSpec, Minitest Documentation See Wiki for complete documentation including all options and advanced features. Development Contributing Bug reports and pull requests are welcome on GitHub. See CONTRIBUTING.md for guidelines and testing patterns. Sponsors License MIT License - see LICENSE.","default_branch":null,"files":null,"tree":[],"storefront":"/r/albertalef","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/albertalef/rubyshell/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}