Sha256: 250102e864842f0d65714b225d8d088f02540df1152e0e9a03527a36f2dca1e6

Contents?: true

Size: 531 Bytes

Versions: 9

Compression:

Stored size: 531 Bytes

Contents

# encoding: UTF-8

require_relative '../shared'
require_relative '../../commands/projects'

GoodData::CLI.module_eval do
  desc 'Manage your projects'
  command :projects do |c|
    c.desc "Lists user's projects"
    c.command :list do |list|
      list.action do |global_options, options, _args|
        opts = options.merge(global_options)
        client = GoodData.connect(opts)
        list = GoodData::Command::Projects.list(client: client)
        puts list.map { |p| [p.uri, p.title].join(',') }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gooddata-0.6.20 lib/gooddata/cli/commands/projects_cmd.rb
gooddata-0.6.19 lib/gooddata/cli/commands/projects_cmd.rb
gooddata-0.6.18 lib/gooddata/cli/commands/projects_cmd.rb
gooddata-0.6.17 lib/gooddata/cli/commands/projects_cmd.rb
gooddata-0.6.16 lib/gooddata/cli/commands/projects_cmd.rb
gooddata-0.6.15 lib/gooddata/cli/commands/projects_cmd.rb
gooddata-0.6.14 lib/gooddata/cli/commands/projects_cmd.rb
gooddata-0.6.13 lib/gooddata/cli/commands/projects_cmd.rb
gooddata-0.6.12 lib/gooddata/cli/commands/projects_cmd.rb