choco ls command - list information about an installed package

Created on 7 Apr 2016  Â·  4Comments  Â·  Source: chocolatey/choco

I would like a feature similar to brew ls <packageName> as mentioned in #644

Depends on #690.

0 - Backlog Enhancement Priority_HIGH

Most helpful comment

If list exists and most think of ls as an alias, than maybe something like choco files <packageName> The specific issue I ran into was installing a powershell thing and then I had no idea where to go look for it. So anything that can help with that experience would be awesome.

All 4 comments

Choco list pkgname already exists - with a different purpose. Perhaps choco ls pkgname?

If list exists and most think of ls as an alias, than maybe something like choco files <packageName> The specific issue I ran into was installing a powershell thing and then I had no idea where to go look for it. So anything that can help with that experience would be awesome.

choco ls is a cool idea for listing the files, and it parallels the standard unix ls command.

It's worth noting that brew list (and its alias brew ls) actually has two functions. With no arguments it lists the installed packages, but with an argument (e.g. brew list wine or brew ls wine) it lists the files of that packages. Not that that's necessarily the best way to do it, that that it isn't.

Hi, @alexchandel

choco ls is a cool idea for listing the files, and it parallels the standard unix ls command.

No, it is NOT cool at all.


There are a great number of ways to degrade end users' experience.
For CLI, they include but are not limited to

  • Introducing many aliases for the same thing
  • Using different naming styles and syntax conventions between commands
  • Using complex syntax
  • Requiring user to know the internal (It occurs usually when a program requires user to provide how to do instead of what to do.)
  • Providing unclear guides and instructions

It's obvious that the commands of choco are formed by human readable English words, and most of the words are in their base form. Only few aliases break the rule by using plural noun so far.

The ls does NOT parallel the command naming convention of choco. It will lead to confusion if it appears.

Besides, for most users, Chocolatey is just a utility to help them setup computer.
Many users of Chocolatey are average user of Windows PC.
Even if you are an IT pro, it is still NOT a good idea to spend time in distinguishing between commands and then choose your preferred one — It is a waste of energy.

Additionally, on the one hand, a word such as ls is awfully meaningless to those who have little knowledge of Unix.
On the other hand, for those who are familiar with Unix, ls is quite similar to list, but they are intended to do different things in choco.
Again, it will lead to confusion if it appears, just like what drusellers said

If list exists and most think of ls as an alias, then ...

Conclusion:
choco ls is a bad idea. We'd better use another name.


Now, let's go back to the original topic of this issue.

This issue is about a way to get install location (and perhaps file list) of a package in choco.

Besides, there are related issues in ChocolateyGUI:

  • chocolatey/ChocolateyGUI#278 for adding installation path column of installed packages in list view of Chocolatey GUI
  • chocolatey/ChocolateyGUI#597 for displaying install location in the package details page of Chocolatey GUI

In my opinion, the command choco file <packageName> proposed by drusellers is a nice place to display this info.

It can also be added to the output of choco info <packageName> --local-only, which was added in 0.9.10.0, if it's possible.

Was this page helpful?
0 / 5 - 0 ratings