Sha256: 8336f7fd20ee920d514626afa32d42777f8e3cea7b5b99f5a4c6a6455f26c743

Contents?: true

Size: 1.49 KB

Versions: 25

Compression:

Stored size: 1.49 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

      c.desc 'Shows users in project'
      c.command :users do |users|
        users.action do |global_options, options, _args|
          opts = options.merge(global_options)
          GoodData::Command::Project.list_users(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

25 entries across 25 versions & 2 rubygems

Version Path
gooddata-edge-0.6.27.edge lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.49 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.48 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.47 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.46 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.45 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.44 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.43 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.42 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.41 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.40 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.39 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.38 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.37 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.36 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.35 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.34 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.33 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.32 lib/gooddata/cli/commands/project_cmd.rb
gooddata-0.6.31 lib/gooddata/cli/commands/project_cmd.rb