Class: A2::Subcommand::User::ListAll

Inherits:
CmdParse::Command
  • Object
show all
Defined in:
lib/a2/subcommands/user.rb

Instance Method Summary collapse

Constructor Details

#initializeListAll

Returns a new instance of ListAll.



5
6
7
# File 'lib/a2/subcommands/user.rb', line 5

def initialize
  super('list-users', takes_commands: false)
end

Instance Method Details

#executeObject



9
10
11
# File 'lib/a2/subcommands/user.rb', line 9

def execute
  puts JSON.pretty_generate(A2::Client.new(command_parser.data).list_all_users)
end