Sha256: e73b43713a73765cb1836d59a471af29a72868ca5e463586ef21b91e161be66c

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

module Nrb
  module Commands
    class Console < Commands::Inside
      desc 'Jump into a Pry console with your project loaded.'

      class_option :pretend, default: false, type: :boolean,
        desc: 'Pretend opening the console. Useful for testing.'

      def start
        required = require_main_file
        Pry.start unless options[:pretend]
        required
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nrb-1.1.0 lib/nrb/commands/console.rb