parameters: (self, args)
docstring: List available or active hooks.
docstring_summary: List available or active hooks.
docstring_tokens: List available or active hooks .
function: def do_list(self, args):
  		"""List available or active hooks."""
  		args = args.split()
  		
  		if len(args) != 2:
  			print "list hooks available"
  			print "list hooks active"
  			return
  
  		if args[1] == 'available':
  			print '\n'.join(self.AVAILABLE_HOOKS)
  
  		if args[1] == 'active':
  			print '\n'.join(self.HOOKS)
function_tokens: def do_list ( self , args ) : args = args . split ( ) if len ( args ) != 2 : print "list hooks available" print "list hooks active" return if args [ 1 ] == 'available' : print '\n' . join ( self . AVAILABLE_HOOKS ) if args [ 1 ] == 'active' : print '\n' . join ( self . HOOKS )