IntersectMBO / IntersectMBO/cardano-cli

Deprecate available commands at root of cardano-cli

Open
#1,015 15 comments 1 reaction 1 assignee Claimed by @newhoggy View on GitHub
enhancement Stale
Dominant language
Haskell
Stars
71
Forks
24
Avg merge
23h 40m
Merged PRs (30d)
14

Description

## Description

The current state of cardano-cli top-level sub-commands is quite chaotic and a bit too unpredictable. While I appreciate deprecation of specific commands, what we have currently is far from desirable.
1. There are cases where for instance we have `cardano-cli address` available at top level. We also have `cardano-cli address` which is deprecated, and then we have `cardano-cli latest address`. It seems redundant to have `cardano-cli address` as well as `cardano-cli latest address`. To make it worse, if we go and check stake address - we do NOT have `cardano-cli stake-address`, but `cardano-cli latest stake-address` works. This requires us to check for each and every object individually rather than being able to count on some consistency.
2. My first assumption given the above was atleast when we have something at root as well as latest, their sub commands will be similar, nope! Let's have a look at `cardano-cli query` vs `cardano-cli latest query`. Latter gives us a lot more options (eg: `treasury`, `ref-script-size`, conway-specific queries).
It sounds like the options presented at root should be atleast marked as deprecated, if not - have some consistency between root and latest.

## Possible Solution

Retire all duplicates and only leave available commands under `latest` (or at root) and move anything from previous era to `compatible`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.