CommandRegistry & CommandHandle
Bases: Generic[T]
Registry for stack commands.
Source code in orche/stack.py
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 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | |
build
property
Decorator for the 'build' command.
down
property
Decorator for the 'down' command.
stop
property
Decorator for the 'stop' command.
up
property
Decorator for the 'up' command.
available_commands()
Return list of registered command names.
Source code in orche/stack.py
109 110 111 | |
get(name)
Get a registered command handler.
Source code in orche/stack.py
105 106 107 | |
get_after_hooks(name)
Return after-hooks for the given command.
Source code in orche/stack.py
117 118 119 | |
get_before_hooks(name)
Return before-hooks for the given command.
Source code in orche/stack.py
113 114 115 | |
register(name)
Decorator to register a command.
Source code in orche/stack.py
81 82 83 | |
Bases: Generic[T]
A command slot with optional before/after hooks.
Source code in orche/stack.py
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 | |
after
property
Decorator to register an after-hook for this command.
before
property
Decorator to register a before-hook for this command.
__call__(func)
Register func as the main handler (backward-compatible decorator).
Source code in orche/stack.py
47 48 49 50 | |