Sha256: 2446758fc0bd1c0a3f1a6766a6212f4a5fc285df4e5a14a9af19db925f8b6376

Contents?: true

Size: 660 Bytes

Versions: 2

Compression:

Stored size: 660 Bytes

Contents

# frozen_string_literal: true

module RubyJard
  module Commands
    # Command used to continue program execution.
    class ContinueCommand < Pry::ClassCommand
      group 'RubyJard'
      description 'Continue program execution.'

      match 'continue'

      banner <<-BANNER
      Usage: continue
      Examples:
        continue

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

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

Pry::Commands.add_command(RubyJard::Commands::ContinueCommand)
Pry::Commands.alias_command 'c', 'continue'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_jard-0.3.0 lib/ruby_jard/commands/continue_command.rb
ruby_jard-0.2.3 lib/ruby_jard/commands/continue_command.rb