question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ref: consistent cmd alias strategy

See original GitHub issue

Current 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)
  • 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 to exp.
    • Also, the now exp page says it’s ā€œaliased to expā€ 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:open
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
efiopcommented, Nov 1, 2021

version-> doctor: the former doesn’t mention the latter; The latter has it’s own short page linking to the former (not great).

Can just introduce a redirect, that should be enough. doctor is a successor to version, because people were confusing it with --version. We use doctor when talking with users these days.

list -> ls: the former mentions the ls alias; The latter doesn’t exist.

Good catch, looks like we forgot to add a redirection for dvc.org. https://github.com/iterative/dvc/pull/6683

Do we even mention the alternative name in docs?

I would say that redirections are enough, no need to elaborate on aliases, main cmd name is enough.

Should we also review what the -h help output is doing for these? (Core DVC question)

-h just shows the main name (e.g. list for dvc ls -h)

We sometimes call the special remote:// remote URL format a ā€œremote aliasā€. Should probably use this term consistently or remove it altogether.

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 use remote notation usually.

2reactions
dberenbaumcommented, Nov 1, 2021

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

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 ?

Sounds good.

* Do we even mention the alternative name in docs?

I don’t think we need to.

* Should we also review what the `-h` help output is doing for these? (Core DVC question)

Sure, we can do that as a follow-up.

Related product question @dberenbaum @efiop : should exp list and other listing commands have ls aliases too?

Hm, maybe that’s a reason to keep list instead of ls for more consistency. I don’t think ls makes as much sense for commands that don’t return filesystem-like output.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cisco IOS Configuration Fundamentals Command Reference
To create a command alias, use the alias command in global configuration mode. To delete all aliases in a command mode or to...
Read more >
General Rules | Bazel
The alias rule has its own visibility declaration. In all other respects, it behaves like the rule it references (e.g. testonly on the...
Read more >
Aliases API | Elasticsearch Guide [8.5] | Elastic
Removes a data stream or index from an alias. Deletes an index. You cannot use this action on aliases or data streams. The...
Read more >
Commands Reference - Apple Developer
AppleScript Language Guide. PDF Companion File. Table of Contents. Jump To… Download Sample Code ... Control Statements Reference.
Read more >
The extern alias 'xxx' was not specified in a /reference option
In the Visual Studio IDE I have set the "Aliases" property of the reference to my alias. This is supposed to change the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found