Skip to content

hey box should accept the same box names as hey search --in (papertrail, feed) #490

Description

@heredia21

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions