Package conary :: Package lib :: Module mainhandler :: Class MainHandler
[hide private]
[frames] | no frames]

Class MainHandler

source code

object --+
         |
        MainHandler
Known Subclasses:
command.MainHandler

Class to handle parsing and executing commands set up to use AbstractCommands

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
registerCommand(self, commandClass) source code
 
_registerCommand(self, commandClass) source code
 
unregisterCommand(self, commandClass) source code
 
_unregisterCommand(self, commandClass) source code
 
_getPreCommandOptions(self, argv, cfg)
Allow the user to specify generic flags before they specify the command to run.
source code
 
usage(self, rc=1, showAll=False) source code
 
getConfigFile(self, argv)
Find the appropriate config file
source code
 
getParser(self, command) source code
 
getParserByClass(self, commandClass, commandName=None) source code
 
_getUsage(self, commandName) source code
 
_getUsageByClass(self, commandClass, commandName=None) source code
 
_getParserFlags(self, thisCommand) source code
 
getCommand(self, argv, cfg) source code
 
main(self, argv=None, debuggerException=<class exceptions.Exception at 0x2b2d7ea760b0>, cfg=None, **kw)
Process argv and execute commands as specified.
source code
 
runCommand(self, thisCommand, *args, **kw) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  abstractCommand = None
  commandList = []
  name = None
  version = '<no version>'
  hobbleShortOpts = False
  configClass = None
  useConaryOptions = True
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)