Sha256: 3d52dfd9b844da04104a084357592e9f429b4728c582404c8e35f5f6b0b76be0
Contents?: true
Size: 461 Bytes
Versions: 17
Compression:
Stored size: 461 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift(File.expand_path('../../lib',__FILE__)) require 'command_kit/command' require 'command_kit/pager' class PagerCmd < CommandKit::Command include CommandKit::Pager description "Demos using the pager" def run puts "Starting pager ..." pager do |io| 10.times do |i| io.puts i sleep 0.5 end end puts "Exiting pager ..." end end if __FILE__ == $0 PagerCmd.start end
Version data entries
17 entries across 17 versions & 1 rubygems