(self, args)
List available or active hooks.
List available or active hooks.
List available or active hooks .
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)
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 )