Skip to content

Clearer build messages, and shell completions - #16

Merged
wiseodd merged 3 commits into
mainfrom
enhancements
Nov 29, 2026
Merged

wiseodd merged 3 commits into
mainfrom
enhancements

Conversation

@wiseodd

@wiseodd wiseodd commented Nov 29, 2026

Copy link
Copy Markdown
Owner

The enhancement issues from the 0.1.0 dogfooding, in one PR.

Build messages:

Shell completions:

  • sortes completions <shell> prints the completion script for bash, zsh or fish. It's hidden from sortes --help, since instructors don't need it, and documented in the reference. Closes Shell completions #13.

Not included: #10 (Homebrew) is being done in the tap's own repository, and #11 (Typst Universe) waits for typst/packages to merge the submission.

make check passes (52 unit, 26 end-to-end tests). I also read each new message in a real run, which caught "About 1 drawn questions are"; it now reads "About 1 drawn question is".

- The repeats warning says the count is of drawn questions, shows the
  cap and what it's a share of, and names a memory: value that lowers
  the repeats.
- Expected repeats are rounded to one decimal, without a trailing .0.
- Key reports show a question without a letter as "–", not "written".
- A draw that replaces questions says which: "Replaced <a> with <b>".

Closes #5
Closes #6
Closes #7
Closes #8
A hidden command, for bash, zsh and fish, so it stays out of
instructors' way in --help.

Closes #13
@wiseodd wiseodd added this to the v0.2.0 milestone Nov 29, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Deploying sortes with  Cloudflare Pages  Cloudflare Pages

Latest commit: 061af47
Status: ✅  Deploy successful!
Preview URL: https://14feebfc.sortes-5eu.pages.dev
Branch Preview URL: https://enhancements.sortes-5eu.pages.dev

View logs

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5 · The PR appears safe to merge, with a non-blocking issue in how repeat warnings display the allowed count.RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The PR reaches users of the command-line exam builder and shell setup.

The PR appears safe to merge, with a non-blocking issue in how repeat warnings display the allowed count.

Findings

  1. P2 Repeat warning contradicts itself ▶

Summary

This PR makes build reports clearer and adds shell completion scripts.

  • Repeat warnings explain the count, cap, and memory setting.
  • Build reports name the questions that replace deleted draws.
  • Key reports show a dash when an answer has no letter.
  • The command-line tool prints completion scripts for three shells.

One non-blocking issue remains: rounding the allowed count can make a repeat warning contradict itself.

Reviews (1) · Last reviewed commit: "feat: sortes completions prints shell co..." · Reviewed by Greptile

Comment thread src/build.rs Resolved
Show as many decimals as it takes (up to three) for the expected repeats
and the cap to differ, e.g. "0.43 ... more than the 0.4", and say
"question" for one. Found by Greptile on #16.
@wiseodd
wiseodd merged commit 5967a5a into main Nov 29, 2026
7 checks passed
@wiseodd
wiseodd deleted the enhancements branch November 29, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant