Compilations Commands
CLI commands for managing quantum program compilations.
Compilations CLI presenter - Explicit Typer commands for compilation management.
This module provides the CLI presentation layer for compilations. It uses the StandardCliCommands factory to generate consistent commands with minimal boilerplate.
register_cli
register_cli(app: Typer, ctx_provider: Callable[[], AppContext], logger: Logger) -> None
Register compilations CLI commands with the main app.
This function creates a Typer sub-application for compilations and registers all compilation-related commands. It's called by the plugin loader during application initialization.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app
|
Typer
|
Main Typer application to attach commands to. |
required |
ctx_provider
|
Callable[[], AppContext]
|
Callable that returns the current AppContext. |
required |
logger
|
Logger
|
Logger instance for this plugin. |
required |
Source code in qsh/plugins/compilations/cli.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | |