Sha256: 92af39e86b7d27a911cbef109ba873e7a56e59f444885dbe1d6179b19f3f2579

Contents?: true

Size: 809 Bytes

Versions: 1

Compression:

Stored size: 809 Bytes

Contents

# frozen_string_literal: true

module RubyJard
  module Commands
    # Command used to continue program execution.
    # Data attached in the throw:
    # * command: constant symbol (:continue)
    # * pry: current context pry instance
    class ContinueCommand < Pry::ClassCommand
      group 'RubyJard'
      description 'Continue program execution.'

      match 'continue'

      banner <<-BANNER
      Usage: continue

      Continue program execution. The program will stop at the next breakpoint, or run until it finishes.

      Examples:
        continue
      BANNER

      def process
        throw :control_flow, command: :continue, pry: pry_instance
      ensure
        Byebug.stop if Byebug.stoppable?
      end
    end
  end
end

Pry::Commands.add_command(RubyJard::Commands::ContinueCommand)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_jard-0.1.0 lib/ruby_jard/commands/continue_command.rb