#NEWLINE# @ classmethod #NEWLINE# def command_function( cls , cmd_name ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return cls . _cmds [ cmd_name ] [ 0 ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise CommandNotFoundError ( cmd_name )