IntersectMBO / cardano-cli

This repository contains sources for the command-line interface (CLI) tool for interacting with the Cardano blockchain.
Apache License 2.0
37 stars 13 forks source link

[FR] - Make output of CLI commands consistent. #566

Open carbolymer opened 7 months ago

carbolymer commented 7 months ago

Internal/External Internal if an IOHK staff member.

Area Other Any other topic (Delegation, Ranking, ...).

Describe the feature you'd like Currently the output format of the CLI commands may depend on multiple things and sometimes is not deterministic. This may surprise the users and lead to a poor user experience (like in https://github.com/IntersectMBO/cardano-cli/pull/537 ).

An example is cardano-cli conway query ledger-state: https://github.com/IntersectMBO/cardano-cli/blob/17355f3e86dba264ca85389c491e561b2a07cafe/cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs#L903 where the output format depends on where you would like to send it (binary CBOR for file, json for stdout) and if there was and error when decoding it (plain CBOR when error occurred during CBOR deserialization into JSON).

A one way to make it consistent across the whole CLI is to use similar output flags to transaction-view like in https://github.com/IntersectMBO/cardano-cli/pull/523.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] commented 5 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.