Sha256: f03de616b2b0cbc0f9ad7319b529816f136ac78538aee523a1f9a4dc64cc91b6

Contents?: true

Size: 872 Bytes

Versions: 42

Compression:

Stored size: 872 Bytes

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2017 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 'pathname'
require 'tty-spinner'

require_relative '../shared'
require_relative '../../commands/domain'

module GoodData
  module CLI
    desc 'Manage your domain'
    arg_name 'domain_command'

    command :domain do |c|
      c.desc 'Shows users in domain'
      c.command :users do |users|
        users.action do |global_options, options, args|
          opts = options.merge(global_options)
          spinner = TTY::Spinner.new ":spinner Fetching users from domain"
          spinner.auto_spin
          res = GoodData::Command::Domain.list_users(args[0], opts)
          spinner.stop
          res
        end
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
gooddata-2.3.1-java lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.3.1 lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.3.0-java lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.3.0 lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.2.0-java lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.2.0 lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.19-java lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.19 lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.17-java lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.17 lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.15-java lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.15 lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.14-java lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.14 lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.13-java lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.13 lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.12-java lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.12 lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.11-java lib/gooddata/cli/commands/domain_cmd.rb
gooddata-2.1.11 lib/gooddata/cli/commands/domain_cmd.rb