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
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 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | |