thaljef / Pinto

Curate your own repository of Perl modules
https://metacpan.org/module/Pinto::Manual
66 stars 49 forks source link

proposal on pinto list in less verbose ( or custom set ? ) mode #95

Open melezhik opened 11 years ago

melezhik commented 11 years ago

Let's say I want list only distros, not packages names, I'd like to say something:

pinto list --distros-only

or may be

pinto list -q

Then output would contain only unique distro names and statuses:

 [rl!] PINTO/Foo-Bar-1.0.0.tar.gz
 [rf-] PINTO/App-Baz-1.1.0.tar.gz
 # etc

it'd be helpful when one want focus on distro context, not packages

thaljef commented 11 years ago

I like this a lot. In fact, I've been thinking that Pinto should be more distro-oriented anyway (@schwern suggested this also). In practice, the real unit of data in Pinto is the distribution, not the package. When you specify a package, it is really just sugar for specifying a distribution.

melezhik commented 11 years ago

Good, so would you include it in to do list?

thaljef commented 10 years ago

This seems closely related the new --diff-style option. Since we have concise and detailed diff styles, I wonder if it would make sense to set it up in the same way:

pinto list --list-style=concise   # Would probably be the new default
pinto list --list-style=detailed  # If you want the old format
export PINTO_LIST_STYLE=detailed  # Sets global default
melezhik commented 10 years ago

Yes, that's fine. I'd that pinto less would use concise format by default

thaljef commented 10 years ago

I've been talking with @hartzell about a related matter. He needs to see all the distributions in the repository, irrespective of any stack. My first thought was to wedge this into the list command, but it doesn't quite fit.

So I'm thinking of renaming the list command as show, and then creating a new list command that simply lists all the distributions in the repository. Eventually, I think the show command will evolve into something like git show which can be used to display all sorts of things. In our case, it could be stacks, revisions, or distributions.

What do you think of that @melezhik?

melezhik commented 10 years ago

I think list of all distributions archives irrespective of stacks will be useful, as well as list of distributions for given stacks. I'd leave list command both for both:

pinto show to " all sorts of things" ...

it may make a sense but I cannot see many use case for this right now ...

PS Anyway if you want to "move" 'pinto list -s' into 'pinto show' - it's okay;