Sha256: 83980340b24ea9956331b21bda835660b36c07eb1e5d00ae26790f5d20b4c5ee

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

# encoding: utf-8

module GithubCLI
  class Commands::Organizations < Command

    namespace :org

    desc 'list', 'List public and private organizations for the authenticated user'
    method_option :user, :type => :string, :aliases => ["-u"],
                  :desc => 'List all public organizations for a user',
                  :banner => '<user>'
    method_option :params, :type => :hash, :default => {},
                  :desc => 'Additional request parameters e.i per_page:100'
    def list
      Organization.list options[:user], options[:params], options[:format]
    end

    desc 'get <org>', 'Get properties for a single organization'
    method_option :params, :type => :hash, :default => {},
                  :desc => 'Additional request parameters e.i per_page:100'
    def get(org)
      Organization.get org, options[:params], options[:format]
    end

    desc 'edit <org>', 'Edit organization'
    method_option :params, :type => :hash, :default => {},
                  :desc => 'Additonal request parameters e.i per_page:100'
    long_desc <<-DESC
      Parameters

      billing_email - Optional string - Billing email address. This address is not publicized.\n
      company - Optional string\n
      email - Optional string\n
      location - Optional string\n
      name - Optional string\n
    DESC
    def edit(org)
      Oraanization.edit org, options[:params], options[:format]
    end

  end # Organizations
end # GithubCLI

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
github_cli-0.4.0 lib/github_cli/commands/organizations.rb