Class: JCF::CLI::Commands::CF::Users
- Inherits:
-
JCF::CLI::Command
- Object
- Dry::CLI::Command
- JCF::CLI::Command
- JCF::CLI::Commands::CF::Users
- Defined in:
- lib/jcf/cli/commands/cf/users.rb
Instance Method Summary collapse
Methods inherited from JCF::CLI::Command
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, **) 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 |