Sha256: e272e7bf000a5c4a466b7e121797992bb50f3b2bd8b240939135229fdee6513a

Contents?: true

Size: 732 Bytes

Versions: 3

Compression:

Stored size: 732 Bytes

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_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

3 entries across 3 versions & 1 rubygems

Version Path
gooddata-0.6.24 lib/gooddata/cli/commands/projects_cmd.rb
gooddata-0.6.23 lib/gooddata/cli/commands/projects_cmd.rb
gooddata-0.6.22 lib/gooddata/cli/commands/projects_cmd.rb