Sha256: 98130c2217d608921b206b8e0afedd1dd17b25e73dad913ab1a56178a2fe8235
Contents?: true
Size: 292 Bytes
Versions: 2
Compression:
Stored size: 292 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'command_lion' require 'pry' CommandLion::App.run do name "Example" ctrl_c do puts "Exiting!" exit 0 end command :example do action do loop { puts "CTL+C to exit!"; sleep 1 } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
command_lion-2.0.1 | examples/ctrl_c.rb |
command_lion-2.0.0 | examples/ctrl_c.rb |