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

Version Path
collins_shell-0.2.26 lib/collins_shell/console/commands/io.rb
collins_shell-0.2.24 lib/collins_shell/console/commands/io.rb
collins_shell-0.2.23 lib/collins_shell/console/commands/io.rb
collins_shell-0.2.22 lib/collins_shell/console/commands/io.rb
collins_shell-0.2.21 lib/collins_shell/console/commands/io.rb
collins_shell-0.2.20 lib/collins_shell/console/commands/io.rb
collins_shell-0.2.19 lib/collins_shell/console/commands/io.rb
collins_shell-0.2.18 lib/collins_shell/console/commands/io.rb
collins_shell-0.2.17 lib/collins_shell/console/commands/io.rb
collins_shell-0.2.16 lib/collins_shell/console/commands/io.rb
collins_shell-0.2.15 lib/collins_shell/console/commands/io.rb
collins_shell-0.2.14 lib/collins_shell/console/commands/io.rb