Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

choco ls command - list information about an installed package #681

Closed
drusellers opened this issue Apr 7, 2016 · 7 comments
Closed

choco ls command - list information about an installed package #681

drusellers opened this issue Apr 7, 2016 · 7 comments

Comments

@drusellers
Copy link

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

Depends on #690.

@ferventcoder
Copy link
Member

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

@ferventcoder ferventcoder changed the title choco list <pkgname> choco ls <pkgname> Apr 7, 2016
@drusellers
Copy link
Author

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.

@ferventcoder ferventcoder changed the title choco ls <pkgname> choco files command Apr 12, 2016
@ferventcoder ferventcoder added this to the 0.9.10 milestone Apr 12, 2016
@ferventcoder ferventcoder self-assigned this Apr 12, 2016
@alexchandel
Copy link

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.

@ferventcoder ferventcoder modified the milestones: 0.9.10, 0.9.10.1 May 1, 2016
@ferventcoder ferventcoder changed the title choco files command choco ls command - list information about an installed package May 3, 2016
@ferventcoder ferventcoder modified the milestones: 0.9.10.1, 0.9.10.2, 0.9.10.3, 0.9.10.4 Jun 17, 2016
@Lemmingh
Copy link

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:

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.

@pauby
Copy link
Member

pauby commented Aug 30, 2024

We don't have any plans to add ls as an alias for list.

I'm going to go ahead and close this, but we can reopen it if necessary.

@epa
Copy link

epa commented Oct 8, 2024

Hi @pauby , thank you for looking at this issue. But I fear you might have misunderstood what it is about. You say, "We don't have any plans to add ls as an alias for list." But that's not what is being requested here. Rather, what a few people have asked for is a way to list the files (or at least the install directory) of a given Chocolatey package once it has been installed.

On other packaging systems this is a common operation, for example rpm -ql bash will list the files in the bash package installed on the system. For Chocolatey this could be choco ls firefox or whatever. It would not be the same as the existing list command. The exact name used doesn't much matter, I think.

@pauby
Copy link
Member

pauby commented Oct 8, 2024

To find the files in the package you could either open it or visit the package page if it's on the Chocolatey Community Repository. For software the package will generally include the Chocolatey PowerShell scripts and the installer, if it can be redistributed.

To find the installation directory, I believe there are other issues requesting this. From memory this would come through the info command.

Neither of them need a separate command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants