Skip to content

v0.22.0

Choose a tag to compare

@michaelaye michaelaye released this 26 Oct 11:59
· 40 commits to main since this release

The CLI is rebuilt on Typer, and a crash in every empty interactive picker is fixed.

Changed

  • The CLI is built on Typer instead of argparse. Every command, flag, default
    and exit code is unchanged bar the one exception below; what changed is the
    shape of the code and of --help. cli.py — 2,014 lines holding one argparse
    definition block and a 490-line if args.command == ... chain — is now the
    cli/ package with one module per help panel: browse.py (browse, get,
    update), inspect_cmds.py (list, check, verify, coverage, metakernels,
    resolve, aliases, stats, duplicates), transform.py (scan, rewrite, dedup,
    prune) and configure.py (mission, config, reset), plus prompts.py for the
    shared interactive pickers. Each command is one typed function, so adding a
    flag is adding a parameter.

    --help now generates its four command panels from the registrations instead
    of a hand-maintained epilog, which had already drifted and omitted verify.
    -h still works. New: --install-completion and --show-completion.

    Usage errors are worded by Click rather than argparse; they still exit 2.

  • Abbreviated long options are no longer accepted. argparse completed any
    unambiguous prefix, so --miss JUICE, --exec and --arch worked. Click
    does not: they now fail with exit 2 and name the full option
    (No such option: --miss (Possible options: --mission)). Spell options out in
    scripts and shell aliases.

Fixed

  • "No locally acquired metakernels" crashed instead of printing it. Eleven
    call sites passed stderr=True to rich.Console.print(), which has no such
    argument, so every interactive picker that found nothing to pick — check,
    list, verify, coverage, update, resolve, aliases, and get with
    no argument on an empty registry — died with a TypeError. They now write the
    hint to stderr as intended.

  • The Keep a Changelog header and [Unreleased] section, dropped by the 0.21.0
    release commit, are back, along with the [0.21.0] comparison link that
    commit never added.

Full notes: CHANGELOG.md