Repository navigation
v0.22.0
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-lineif 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) andconfigure.py(mission, config, reset), plusprompts.pyfor the
shared interactive pickers. Each command is one typed function, so adding a
flag is adding a parameter.--helpnow generates its four command panels from the registrations instead
of a hand-maintained epilog, which had already drifted and omittedverify.
-hstill works. New:--install-completionand--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,--execand--archworked. 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 passedstderr=Truetorich.Console.print(), which has no such
argument, so every interactive picker that found nothing to pick —check,
list,verify,coverage,update,resolve,aliases, andgetwith
no argument on an empty registry — died with aTypeError. 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