trestle.core.commands.command_docs
trestle.core.commands.command_docs ¤
Trestle command abstraction.
Improves parsing until such a point as ILCLI is fixed.
Attributes¤
logger = logging.getLogger(__name__) module-attribute ¤
Classes¤
CommandBase ¤
Bases: Command
Linear extension to the ILCLI interface to use documentation string more.
Trestle commands not requiring trestle-root should extend from this class.
Source code in trestle/core/commands/command_docs.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
Functions¤
__init__(parser=None, parent=None, name=None, out=None, err=None) ¤
Override default ILCLI behaviour to include class documentation in command help description.
Source code in trestle/core/commands/command_docs.py
40 41 42 43 44 45 46 47 48 49 50 | |
CommandPlusDocs ¤
Bases: CommandBase
This class validates trestle-root argument.
Trestle commands requiring trestle-root should extend from this class. All commands that extend this class will validate the state of trestle workspace.
Source code in trestle/core/commands/command_docs.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
handler: python