Skip to content

Cli patch #135

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

Closed
wants to merge 7 commits into from
Closed

Cli patch #135

wants to merge 7 commits into from

Conversation

TJKoury
Copy link

@TJKoury TJKoury commented Jul 28, 2016

During the talk this morning tried to run 'vue list' but ran up against API rate limit (as we're all hitting the server). This helps handle the error gracefully.

TJKoury added 6 commits July 28, 2016 10:13
Make sure error is caught and appropriate message displayed.  Currently just throws an error if there's an issue in the request:

/usr/local/lib/node_modules/vue-cli/bin/vue-list:29
  JSON.parse(body).forEach(function (repo) {
                   ^

TypeError: JSON.parse(...).forEach is not a function
Easier to read on narrow windows.
Formatting
_body.length) {
console.log(' Available official templates: \n')
_body.forEach(function (repo) {
console.log('%s %s - %s',
Copy link
Member

Choose a reason for hiding this comment

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

Aren't you missing some whitespace from lines 31 to 32?

@TJKoury
Copy link
Author

TJKoury commented Aug 11, 2016

@posva Made a few changes based on your comments. Let me know if there's anything else.

@posva
Copy link
Member

posva commented Aug 17, 2016

@TJKoury Are you looking into tests?

@TJKoury
Copy link
Author

TJKoury commented Aug 17, 2016

Huh, strange it was passing before. I'll check it out.

@zigomir
Copy link
Contributor

zigomir commented Aug 27, 2016

Already fixed with #131

@zigomir zigomir closed this Aug 27, 2016
@TJKoury
Copy link
Author

TJKoury commented Aug 29, 2016

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants