ref: consistent cmd alias strategy
See original GitHub issueCurrent CLI aliases
Bugs marked with check boxes š
-
version-> doctor: the former doesnāt mention the latter; The latter has itās own short page linking to the former (not great).
- There are no links to either one from any other refs or guides. There should be some at least.
-
list -> ls: the former mentions the
ls
alias;The latter doesnāt exist.- Other docs link to
list
only ATM. Update? -
ls
not existing seems like a bug ATM (quite inconsisntent)
- Other docs link to
-
experiments -> exp:
The former doesnāt exist;Only the latter (the alias) is on the cmd ref nav.-
experments
not existing is a bug ā as it used to be the path, it should be redirecting toexp
. - Also, the now
exp
page says itās āaliased toexp
ā which no longer makes sense.
-
Solution
Letās pick which name is considered most important, whether original or alias (I vote for version
, ls
, exp
) and only have that on the nav (and terminal block highlighter?). WDYT @dberenbaum ?
Questions:
- Do we even mention the alternative name in docs?
- We should also review what the
-h
help output is doing for these, probably (Core DVC question)
Alsoā¦
We sometimes call the special remote://
remote URL format a āremote aliasā. Should probably use this term consistently or remove it altogether.
UPDATE: Some decisions in https://github.com/iterative/dvc.org/issues/2989#issuecomment-966546066 below
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Can just introduce a redirect, that should be enough.
doctor
is a successor toversion
, because people were confusing it with--version
. We usedoctor
when talking with users these days.Good catch, looks like we forgot to add a redirection for dvc.org. https://github.com/iterative/dvc/pull/6683
I would say that redirections are enough, no need to elaborate on aliases, main cmd name is enough.
-h
just shows the main name (e.g. list fordvc ls -h
)This is an advanced feature that will likely change in the future. I would probably just ignore it for now, no reason to spend time on it. Btw, donāt really remember
remote alias
, i useremote notation
usually.TBH Iām not sure what the motivation was for each of these aliases (except for
exp
which is obviously just shorter). @efiop any reason why we developed these aliases?I would probably lea
Sounds good.
I donāt think we need to.
Sure, we can do that as a follow-up.
Hm, maybe thatās a reason to keep
list
instead ofls
for more consistency. I donāt thinkls
makes as much sense for commands that donāt return filesystem-like output.