Class: JCF::CLI::Commands::CF::Users

Inherits:
JCF::CLI::Command show all
Defined in:
lib/jcf/cli/commands/cf/users.rb

Instance Method Summary collapse

Methods inherited from JCF::CLI::Command

inherited

Instance Method Details

#call(name: nil, **_options) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/jcf/cli/commands/cf/users.rb', line 13

def call(name: nil, **_options)
  data = if name
           JCF::CF::User.all(partial_usernames: name)
         else
           JCF::CF::User.all
         end

  out.puts formatter.format(data: JCF::CF::Base.format(data))
end