Sha256: 2c122c27db357084309088384069a7256a5442b1c16842151b08a5c40895335c

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

# encoding: UTF-8

require 'gli'

require_relative '../version'
require_relative '../core/core'
require_relative '../extensions/extensions'

include GLI::App

GoodData::CLI.module_eval do

  program_desc 'GoodData Ruby gem - a wrapper over GoodData API and several useful abstractions to make your everyday usage of GoodData easier.'

  version GoodData::VERSION

  desc 'GoodData user name'
  default_value nil
  arg_name 'gooddata-login'
  flag [:U, :username, :login]

  desc 'GoodData password'
  default_value nil
  arg_name 'gooddata-password'
  flag [:P, :password]

  desc 'Project pid'
  default_value nil
  arg_name 'project-id'
  flag [:p, :project_id]

  desc 'Server'
  default_value GoodData::Rest::Connection::DEFAULT_URL
  arg_name 'server'
  flag [:s, :server]

  desc 'WEBDAV Server. Used for uploads of files'
  default_value nil
  arg_name 'web dav server'
  flag [:w, :webdav_server]

  desc 'Token for project creation'
  default_value nil
  arg_name 'token'
  flag [:t, :token]

  desc 'Verbose mode'
  arg_name 'verbose'
  switch [:v, :verbose]

  desc 'Http logger on stdout'
  arg_name 'logger'
  switch [:l, :logger]

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gooddata-0.6.11 lib/gooddata/cli/shared.rb
gooddata-0.6.10 lib/gooddata/cli/shared.rb
gooddata-0.6.9 lib/gooddata/cli/shared.rb
gooddata-0.6.8 lib/gooddata/cli/shared.rb