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