Class: A2::Subcommand::Team::ListAll

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

Instance Method Summary collapse

Constructor Details

#initializeListAll

Returns a new instance of ListAll.



12
13
14
# File 'lib/a2/subcommands/team.rb', line 12

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

Instance Method Details

#executeObject



16
17
18
# File 'lib/a2/subcommands/team.rb', line 16

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