INNER CODE UNIT · Python

add_completion

Chanchaldhiman/CANviz · backend/canviz/cli.py:56

    add_completion=True,          # generates shell autocomplete for bash/zsh/fish
    no_args_is_help=False,        # allow bare `canviz` to run serve (backward compat)
    invoke_without_command=True,
)

console = Console()
err_console = Console(stderr=True)  # for status messages that must not pollute stdout

# ── Shared option types (reused across subcommands) ──────────────────────────

InterfaceOpt = Annotated[
    str,
    typer.Option(
        "--interface", "-i",
        help="CAN interface: gs_usb | slcan | socketcan | virtual",
    ),
]
ChannelOpt = Annotated[

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…