Sha256: 6b10abdfb9a32e14ae124061f72e30fcfe7ae1ef1b904f7cd5148edcd825a619
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.10 | lib/gooddata/cli/commands/projects_cmd.rb |
gooddata-0.6.9 | lib/gooddata/cli/commands/projects_cmd.rb |
gooddata-0.6.8 | lib/gooddata/cli/commands/projects_cmd.rb |