Table of Contents

Class: AbstractCommand ./src/peak/running/commands.py

Simple, commandline-driven process

Base Classes   
binding.Component
Methods   
_invocationError
_run
getCommandParent
getSubcommand
isInteractive
run
showHelp
  _invocationError 
_invocationError ( self,  msg )

Write msg and usage to stderr if interactive, otherwise re-raise

  _run 
_run ( self )

Override this in subclasses to implement desired behavior

Exceptions   
NotImplementedError
  getCommandParent 
getCommandParent ( self )

Get or create a component to be used as the subcommand's parent

  getSubcommand 
getSubcommand (
        self,
        executable,
        **kw,
        )

Return a ICmdLineApp with our environment as its defaults

Any IExecutable may be supplied as the basis for creating the ICmdLineApp. NotImplementedError is raised if the supplied object is not an IExecutable.

  isInteractive 
isInteractive ( self )

True if stdin is a terminal

  run 
run ( self )

Run the command

  showHelp 
showHelp ( self )

Display usage message on stderr


Table of Contents

This document was automatically generated on Tue Feb 17 19:55:49 2004 by HappyDoc version 2.1