Context
We run hey from scheduled jobs (JSON output, no TTY). A job that used the same box name for hey search --in and hey box failed on the second command.
No account-specific details below.
What happens
hey search --in papertrail works. The help text lists imbox, feed, papertrail, or trash.
hey box papertrail returns {"ok": false, "error": "box \"papertrail\" not found", "code": "not_found"}.
hey box list shows the box as kind trailbox, name Paper Trail. The Feed is feedbox / The Feed.
So one box has three spellings, and each command accepts a different subset.
Ask
- Let
hey box <name> (and hey box view) accept the same short names as hey search --in: imbox, feed, papertrail, trash, plus the kinds (feedbox, trailbox, ...) and display names.
- Let
hey search --in accept the kinds too, so one spelling works everywhere.
- When a name does not match, list the valid names in the error.
Why it matters
Scripts pick a spelling from one command's help and reuse it in another. The mismatch only shows up at run time, and in an unattended job that means a silent gap until someone reads the logs.
Context
We run
heyfrom scheduled jobs (JSON output, no TTY). A job that used the same box name forhey search --inandhey boxfailed on the second command.No account-specific details below.
What happens
hey search --in papertrailworks. The help text listsimbox, feed, papertrail, or trash.hey box papertrailreturns{"ok": false, "error": "box \"papertrail\" not found", "code": "not_found"}.hey box listshows the box as kindtrailbox, namePaper Trail. The Feed isfeedbox/The Feed.So one box has three spellings, and each command accepts a different subset.
Ask
hey box <name>(andhey box view) accept the same short names ashey search --in:imbox,feed,papertrail,trash, plus the kinds (feedbox,trailbox, ...) and display names.hey search --inaccept the kinds too, so one spelling works everywhere.Why it matters
Scripts pick a spelling from one command's help and reuse it in another. The mismatch only shows up at run time, and in an unattended job that means a silent gap until someone reads the logs.