trestle.core.commands.author.common
trestle.core.commands.author.common ¤
AuthorCommonCommands - reusable utilities to increase code base abstraction for author command.
Attributes¤
logger = logging.getLogger(__name__) module-attribute ¤
Classes¤
AuthorCommonCommand ¤
Bases: CommandPlusDocs
flowchart TD
trestle.core.commands.author.common.AuthorCommonCommand[AuthorCommonCommand]
trestle.core.commands.command_docs.CommandPlusDocs[CommandPlusDocs]
trestle.core.commands.command_docs.CommandBase[CommandBase]
trestle.core.commands.command_docs.CommandPlusDocs --> trestle.core.commands.author.common.AuthorCommonCommand
trestle.core.commands.command_docs.CommandBase --> trestle.core.commands.command_docs.CommandPlusDocs
click trestle.core.commands.author.common.AuthorCommonCommand href "" "trestle.core.commands.author.common.AuthorCommonCommand"
click trestle.core.commands.command_docs.CommandPlusDocs href "" "trestle.core.commands.command_docs.CommandPlusDocs"
click trestle.core.commands.command_docs.CommandBase href "" "trestle.core.commands.command_docs.CommandBase"
Extension for the subset of commands that operate using the common mode structure.
Source code in trestle/core/commands/author/common.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
Attributes¤
task_name instance-attribute ¤
trestle_root instance-attribute ¤
Functions¤
rel_dir(path) ¤
Stringify a directory relative to trestle root.
Source code in trestle/core/commands/author/common.py
63 64 65 | |
handler: python