gobolinux / Compile

The GoboLinux build tool
52 stars 15 forks source link

Compile: add a way to list which recipes are available, from the commandline #26

Open ghost opened 6 years ago

ghost commented 6 years ago

Hello lucas, hisham and everyone else,

How about giving Compile the ability to show which recipes are available at the gobo store?

Here is a syntax proposal BUT keep in mind, this is just a proposal, there can be other ways; I am more interested in the functionality and less in the syntax (though syntax of course also matters):

Compile htop --versions?

The above currently fails with a message such as:

Compile: Unknown option: --versions?

I propose that Compile may instead output this:

"The following recipes are available for htop (showing not more than the 5 latest)"

Htop 2.0.2-r1 Htop 2.0.1-r1 Htop 2.0.0-r1 Htop 1.0.3-r1 Htop 1.0.2-r1

I mention "5 latest" or "five latest" because it should not spam the user with like when there are 20 recipes.

Reasoning for this feature:

lucasvr commented 6 years ago

It is possible to achieve the same functionality with FindPackage, as in FindPackage -l -t recipe htop. I don't think that feature should belong to Compile itself.