Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

WIP: add --json flag to apm ls - #216

Merged
kevinsawicki merged 7 commits into
masterfrom
dh-ls-json
Dec 10, 2014
Merged

kevinsawicki merged 7 commits into
masterfrom
dh-ls-json

Conversation

@thedaniel

Copy link
Copy Markdown
Contributor

This adds a --json flag to apm ls, grouping output in a json object under the keys core, dev, and user. This should be handy for things like showing packages grouped by these categories in the Atom settings view.

TODO:

  • Fix output of bundled packages to include more than just the package name

Comment thread src/list.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could just be:

callback?(null, devPackages)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k, fixing

@thedaniel

Copy link
Copy Markdown
Contributor Author

Not sure why the travis build is failing, def passes on my machine

@thedaniel

Copy link
Copy Markdown
Contributor Author

Looking good after a rebuild. Any other feedback on this?

This fixes a regression when the package metadata cache
was originally introduced and the versions no longer were printed
for bundled packages in apm ls.
kevinsawicki added a commit that referenced this pull request Dec 10, 2014
WIP: add --json flag to apm ls
@kevinsawicki
kevinsawicki merged commit f664fd0 into master Dec 10, 2014
@kevinsawicki
kevinsawicki deleted the dh-ls-json branch December 10, 2014 20:29
@kevinsawicki

Copy link
Copy Markdown
Contributor

Thanks for adding this 🚢

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants