nix-community / comma

Comma runs software without installing it. [maintainers=@Artturin,@burke,@DavHau]
1.09k stars 48 forks source link

Print package name of executable #38

Closed jooooscha closed 1 year ago

jooooscha commented 1 year ago

Hi, would it be possible to add a flag like --package that causes comma to print the package name (plus maybe other information) instead of executing the program.

This would be useful when you know the name of the executable, but the nix package is named differently. For example, the neovim binary is called nvim. Let's say I do not know that the project/package is actually called neovim. Now, I could only use comma to run neovim (, nvim) but I would have a hard time to install neovim. With a --package flag I could find out that the package is actually called neovim.

Thanks :)

Artturin commented 1 year ago

Fixed by https://github.com/nix-community/comma/commit/34ba5a05bcfd13cf8b1776ff2a2a8068adb45d07