Sha256: 0944f7302f0468674d20a0a9f7dd1c0fc5211d694bf2f96a4a9a056e7a032bb1

Contents?: true

Size: 447 Bytes

Versions: 8

Compression:

Stored size: 447 Bytes

Contents

module Climine::Command
  class User < Base
    desc "get [ID]", "get Redmine User"
    def get(id=nil)
      say("required user id!", :red) unless id
      render :user, redmine.user(id)
    end

    desc "list", "get Redmine Users"
    option :name, type: :string, aliases: '-n', banner: "NAME", desc: "filter users on their login, firstname, lastname and mail"
    def list
      render :users, redmine.users(options.to_hash)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
climine-0.1.1 lib/climine/command/user.rb
climine-0.1.0 lib/climine/command/user.rb
climine-0.0.8 lib/climine/command/user.rb
climine-0.0.7 lib/climine/command/user.rb
climine-0.0.6 lib/climine/command/user.rb
climine-0.0.5 lib/climine/command/user.rb
climine-0.0.4 lib/climine/command/user.rb
climine-0.0.3 lib/climine/command/user.rb