Sha256: 5e8ab25e674c587903c94dd531d2ef6e07d0ef91636d84c5f1afc6d37f52014f
Contents?: true
Size: 764 Bytes
Versions: 10
Compression:
Stored size: 764 Bytes
Contents
# encoding: UTF-8 require 'pp' require_relative '../shared' require_relative '../../commands/api' GoodData::CLI.module_eval do desc 'Some basic API stuff directly from CLI' arg_name 'info|test|get|delete' command :api do |c| c.desc 'Info about the API version etc' c.command :info do |info| info.action do |global_options, options, args| opts = options.merge(global_options) GoodData.connect(opts) pp GoodData::Command::Api.info end end c.desc 'GET request on our API' c.command :get do |get| get.action do |global_options, options, args| opts = options.merge(global_options) GoodData.connect(opts) pp GoodData::Command::Api.get(args[0]) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems