INNER CODE UNIT · Python

main

torognes/vsearch · completion/scripts/gen_fish.py:97

def main() -> None:
    s = spec_mod.load()
    by_name = {o.name: o for o in s.options}

    header = HEADER.replace("{COMMANDS_SPACE_SEPARATED}", " ".join(s.commands))
    out: list[str] = [header]

    # ---- Pre-command suggestions (no command on line) ----
    out.append("# ---------------------------------------------------------------------------")
    out.append("# Pre-command suggestions (no command flag on the line yet)")
    out.append("# ---------------------------------------------------------------------------")

    # Each command flag (including --help / --version, which are commands
    # in their own right). Cross-cutting options like --log / --quiet are
    # not commands and are surfaced via the per-command sections below
    # once an action flag is on the line.
    out.append("# Command (action) flags")
    for name in s.commands:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…