version
trestle.core.commands.version
¤
Trestle Validate Command.
logger
¤
Classes¤
VersionCmd (CommandBase)
¤
Output version info for trestle and OSCAL.
Source code in trestle/core/commands/version.py
class VersionCmd(CommandBase):
"""Output version info for trestle and OSCAL."""
name = 'version'
def _run(self, args: argparse.Namespace) -> int:
version_string = f'Trestle version v{__version__} based on OSCAL version {OSCAL_VERSION}'
self.out(version_string)
return CmdReturnCodes.SUCCESS.value
name
¤
handler: python