Sha256: 79025f4e3edc2d9fef9bdf5662ea16e449b3d1f2163e860f4c3cb04226ad5652

Contents?: true

Size: 506 Bytes

Versions: 6

Compression:

Stored size: 506 Bytes

Contents

# encoding: UTF-8

require 'pp'

require_relative '../shared'

GoodData::CLI.module_eval do
  desc 'Interactive session with gooddata sdk loaded'
  command :console do |c|

    c.action do |global_options, options, args|
      puts "Use 'exit' to quit the live session. Use 'q' to jump out of displaying a large output."
      binding.pry(:quiet => true,
                  :prompt => [proc do |target_self, nest_level, pry|
                    'sdk_live_sesion: '
                  end])
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gooddata-0.6.7 lib/gooddata/cli/commands/console_cmd.rb
gooddata-0.6.6 lib/gooddata/cli/commands/console_cmd.rb
gooddata-0.6.5 lib/gooddata/cli/commands/console_cmd.rb
gooddata-0.6.4 lib/gooddata/cli/commands/console_cmd.rb
gooddata-0.6.3 lib/gooddata/cli/commands/console_cmd.rb
gooddata-0.6.2 lib/gooddata/cli/commands/console_cmd.rb