Sha256: 7a487efa39c8e870039075f6b29311c0451326cd3d8c0fab9d798d2a6b728091

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2015 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

require 'pathname'
require 'pp'

require_relative '../shared'
require_relative '../../commands/project'

module GoodData
  module CLI
    desc 'Manage your project'
    arg_name 'project_command'

    command :project do |c|
      c.desc 'If you are in a gooddata project blueprint or if you provide a project id it will start an interactive session inside that project'
      c.command :jack_in do |jack|
        jack.action do |global_options, options, _args|
          warn '[DEPRECATION] `gooddata project jack_in` is deprecated.  Please use `gooddata jack_in` instead.'
          opts = options.merge(global_options)
          GoodData::Command::Project.jack_in(opts)
        end
      end
    end

    desc 'If you are in a gooddata project blueprint or if you provide a project id it will start an interactive session inside that project'
    command :jack_in do |jack|
      jack.action do |global_options, options, _args|
        opts = options.merge(global_options)
        GoodData::Command::Project.jack_in(opts)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gooddata-0.6.25 lib/gooddata/cli/commands/project_cmd.rb