Skip to content

Manifest: should JSON output for devices be a dict or an array? #22

Open
@lpascal-ledger

Description

@lpascal-ledger

Currently, when outputing the devices:

$ ledger-manifest ledger_app.toml  -od
devices:
0. stax
1. nanos+
2. nanos
3. nanox

$ ledger-manifest ledger_app.toml -j -od
{"devices": ["nanos+", "stax", "nanox", "nanos"]}

... which prevents to directly use ledger-manifest in shell scripts (including GitHub actions). One needs to:

compatible_devices="$(ledger-manifest --output-devices "$APP_MANIFEST" -j | jq -rc '.devices')";

What should be the proper behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions