Sha256: 559b02933a06a972cb7d1e5f21d2d85a17d33a08592c795f7f459adbd929d6bb

Contents?: true

Size: 402 Bytes

Versions: 11

Compression:

Stored size: 402 Bytes

Contents

require 'irb'
require 'irb/completion'

module RubyNEAT
  module Cli
    class Console < Thor
      class << self
        def default_command
          # TODO: maybe dynamically set it in Rakefile and then retrieve from ENV?
          # require "#{$calling_gem_name}"
          ARGV.clear
          IRB.start
        end
        alias_method :default_task, :default_command
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rubyneat-0.5.3 lib/rubyneat/cli/console.rb
rubyneat-0.4.6 lib/rubyneat/cli/console.rb
rubyneat-0.5.2 lib/rubyneat/cli/console.rb
rubyneat-0.5.0 lib/rubyneat/cli/console.rb
rubyneat-0.4.5 lib/rubyneat/cli/console.rb
rubyneat-0.4.4 lib/rubyneat/cli/console.rb
rubyneat-0.4.3 lib/rubyneat/cli/console.rb
rubyneat-0.4.2 lib/rubyneat/cli/console.rb
rubyneat-0.4.0.alpha.5 lib/rubyneat/cli/console.rb
rubyneat-0.4.0.alpha.4 lib/rubyneat/cli/console.rb
rubyneat-0.4.0.alpha.3 lib/rubyneat/cli/console.rb