Commit eade2262 authored by Jan Reimes's avatar Jan Reimes
Browse files

feat: add TDC_WORKSPACE env var for --workspace option

Allows setting the default workspace via environment variable so
the correct workspace is always used without passing -w explicitly.
parent c1b036e8
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -225,10 +225,7 @@ FiguresModeOption = Annotated[
    FiguresMode,
    typer.Option(
        "--figures",
        help=(
            "Figure handling for all profiles: "
            "embed (images embedded/self-contained) or reference (extract image files)"
        ),
        help=("Figure handling for all profiles: embed (images embedded/self-contained) or reference (extract image files)"),
        envvar=ConfigEnvVar.TDC_FIGURES.name,
    ),
]
@@ -258,8 +255,7 @@ DocxDirectOption = Annotated[
]
WorkspaceNameOption = Annotated[
    str | None,
    typer.Option("-w", "--workspace", help="Workspace name (default: active workspace)",
                envvar=ConfigEnvVar.TDC_WORKSPACE.name),
    typer.Option("-w", "--workspace", help="Workspace name (default: active workspace)", envvar=ConfigEnvVar.TDC_WORKSPACE.name),
]
SourceKindOption = Annotated[
    str,