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

Table output #22

Open
soullivaneuh opened this issue Oct 13, 2015 · 4 comments
Open

Table output #22

soullivaneuh opened this issue Oct 13, 2015 · 4 comments
Assignees

Comments

@soullivaneuh
Copy link
Owner

Maybe a table output will be better:

Package Installed Latest Depends
symfony/symfony 2.3.30 2.7.5 ~
foo/bar 1.0.4 2.0.5 awesome/package (~1.0)

Issue composer/composer#4487 is needed for this.

@soullivaneuh soullivaneuh self-assigned this Oct 13, 2015
@jakoch
Copy link

jakoch commented Nov 4, 2015

Hey Sullivan!

Would it be possible to generate the following bower list like output instead of a table?
Bower list
I think a renderer base class (buffering the data) and using adapters could make sense.
You could then implement a TableRenderer (using Symfony\Console Table helper) and a TreeRenderer.

What do you think?

@soullivaneuh
Copy link
Owner Author

Could be a second option indeed but we have to be sure the output is not confusing by specified that children tree is dependencies.

Do you have some suggestions of library to render this kind of output easily?

@jakoch
Copy link

jakoch commented Nov 4, 2015

Indeed, listing the dependencies could be confusing, especially if you render a really large set of dependencies.

A library, hmm lets see.. this could fit: https://github.com/pbergman/tree-printer
It stays in the context of Symfony/Console.
I haven't worked with it, but it allows to define the "ascii art" forming the tree.
And it should be possible to tweak the settings to render a more compact tree.
https://github.com/pbergman/tree-printer#setformats

@stephanvierkant
Copy link

Here is a screenshot from VersionEye.com:

selection_170

I really like this view. An output like bower list can be very confusing. I think this package should show version numbers, not a dependencies tree.

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

3 participants