Sha256: 4df8fd9fe20d07b7e09e82ef72e9c00c7c34c1cc4b33fad7c6c71f162a5be41f

Contents?: true

Size: 584 Bytes

Versions: 1

Compression:

Stored size: 584 Bytes

Contents

# frozen_string_literal: true

module RubyJard
  module Commands
    # Command used to explore stacktrace.
    class ListCommand < Pry::ClassCommand
      group 'RubyJard'
      description 'Refresh the current UI'

      match 'list'

      banner <<-BANNER
      Usage:
        - list
        - l

      Refresh the current UI.

      BANNER

      def process
        RubyJard::ControlFlow.dispatch(:list)
      end
    end
  end
end

Pry::Commands.add_command(RubyJard::Commands::ListCommand)
Pry::Commands.alias_command 'l', 'list'
Pry::Commands.alias_command 'whereami', 'list'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_jard-0.2.2 lib/ruby_jard/commands/list_command.rb