#NEWLINE# def listCommands( self , pluginCommands = [ ] ) : #NEWLINE# #INDENT# commands = set ( self ) #NEWLINE# for s in dir ( self ) : #NEWLINE# #INDENT# if self . isCommandMethod ( s ) : #NEWLINE# #INDENT# commands . add ( s ) #NEWLINE# #UNINDENT# #UNINDENT# for cb in self . cbs : #NEWLINE# #INDENT# name = cb . canonicalName ( ) #NEWLINE# for command in cb . listCommands ( ) : #NEWLINE# #INDENT# if ( command == name ) : #NEWLINE# #INDENT# commands . add ( command ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# commands . add ( ' ' . join ( [ name , command ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# L = list ( commands ) #NEWLINE# L . sort ( ) #NEWLINE# return L