mirror of
https://github.com/rizinorg/rz-pipe.git
synced 2026-11-09 17:51:08 -10:00
* Add rz-pipe support for Ruby Also add Ruby to the list of supported languages on the README * Add a Makefile and update the CI for Ruby * Fix a typo in the examples
15 lines
210 B
Ruby
15 lines
210 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
# author [email protected]
|
|
|
|
require '../rzpipe'
|
|
|
|
begin
|
|
rzp = RzPipe.new
|
|
rescue Exception => e
|
|
rzp = RzPipe.new '/bin/ls'
|
|
end
|
|
puts rzp.cmd 'a'
|
|
puts rzp.cmd 'pd 10 main'
|
|
rzp.quit
|