Skip to content

list subcommand panics on empty signature file #377

Description

@vikvang

Description

Running command-signatures list against an empty signatures file panics with an index-out-of-bounds instead of printing an empty table.

Steps to reproduce

  1. touch /tmp/empty.json
  2. command-signatures list --file /tmp/empty.json
  3. Panic: index out of bounds: the len is 0 but the index is 0

Expected

An empty listing (or a clear 'no signatures found' message), not a panic.

Environment

Built from main, macOS.

Activity

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

Metadata

Metadata

Labels

enhancementNew capability or improvement requestfactory:warp-for-ossOwned by the Warp for OSS factoryready-to-implementHuman gate: maintainer approved this issue for implementationready-to-specHuman gate: maintainer approved this issue for spec writingtriagedInitial factory triage has been completed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions