akoenig / jutebag

A command line interface for Pocket a.k.a. getpocket.com a.k.a. Read It Later
15 stars 3 forks source link

Fix crash on initial run when no configuration exists #3

Open nilbus opened 9 years ago

nilbus commented 9 years ago

jutebag.commands used to be an object with command names as the keys, until e69f7dfc90ffcbcf82f313de863be47590861f64 changed jutebag.commands from an object to a sorted array.

Use an appropriate lookup, now that jutebag.commands is an array.

Also, make bin/jutebag executable, so it can be run directly, without explicitly running node while developing.

shedali commented 9 years ago

this works for me, thanks :+1:

MaxPleaner commented 9 years ago

Thanks this pull request fixed it for me.

nilbus commented 9 years ago

@akoenig What do you think about merging and releasing this fix, André?