Sha256: ac5f50da3f0f8b16c7ae85fa79f1a63ed0b32bcc4f2f1a2cb83260f690a71dd2

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
gooddata-0.6.11 lib/gooddata/cli/commands/projects_cmd.rb