Sha256: b3b7abef9ebc617a5587ea2bb60f393504708221be907c9dadbfcf9613385fa0
Contents?: true
Size: 560 Bytes
Versions: 12
Compression:
Stored size: 560 Bytes
Contents
module CollinsShell; module Console; module Commands Io = Pry::CommandSet.new do create_command "wc", "Pipe results to wc to get the number of assets/lines" do command_options :keep_retval => true group "I/O" def process args.size end end create_command "more", "Ensure results are paginated" do command_options :keep_retval => true group "I/O" def process value = args.map {|a| a.to_s}.join("\n") render_output value, opts nil end end end end; end; end
Version data entries
12 entries across 12 versions & 1 rubygems