def commands(*command_list):
 def add_attribute(function):
  if (not hasattr(function, u'commands')):
   function.commands = []
  function.commands.extend(command_list)
  return function
 return add_attribute

def commands ( * command_list ) : def add_attribute ( function ) : if ( not hasattr ( function , u'commands' ) ) : function . commands = [ ] function . commands . extend ( command_list ) return function return add_attribute
returns a list of subcommand objects from all loaded plugins .