wayneashleyberry / wunderline Goto Github PK
View Code? Open in Web Editor NEW✅️ Command-line client for Wunderlist, the easiest way to get stuff done.
Home Page: https://git.io/vM45l
License: MIT License
✅️ Command-line client for Wunderlist, the easiest way to get stuff done.
Home Page: https://git.io/vM45l
License: MIT License
Auth doesn't work for me:
$ wunderline auth
Please create a Wunderlist Application before you proceed, you can do so over
here: https://developer.wunderlist.com/apps/new, once that is done please enter
your access token and client id below.
? CLIENT ID XXXXXXXX
? ACCESS TOKEN aaaasdasadsdasdjasodjasoijdoaisjdaijsodjasodijasodjasodijaodij
/usr/local/lib/node_modules/wunderline/wunderline-auth.js:47
console.log('Thanks ' + body.name.split(' ')[0] + ', Wunderline has been a
^
TypeError: Cannot read property 'split' of undefined
at Request._callback (/usr/local/lib/node_modules/wunderline/wunderline-auth.js:47:38)
at Request.self.callback (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:198:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:1063:14)
at Request.emit (events.js:129:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:1009:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)
The CLIENT ID
and ACCESS TOKEN
are repasted from the website.
Then for login:
wunderline inbox
/usr/local/lib/node_modules/wunderline/lib/get-inbox.js:29
var lists = body.filter(function (item) {
^
TypeError: undefined is not a function
at Request._callback (/usr/local/lib/node_modules/wunderline/lib/get-inbox.js:29:22)
at Request.self.callback (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:198:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:1063:14)
at Request.emit (events.js:129:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:1009:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)
After installing the tool via npm, I've got the following problem. It comes every time I use wunderline with any option for example "inbox"
$ wunderline inbox
/usr/local/lib/node_modules/wunderline/util/get-inbox.js:27
var lists = body.filter(function (item) {
^
TypeError: undefined is not a function
at Request._callback (/usr/local/lib/node_modules/wunderline/util/get-inbox.js:27:22)
at Request.self.callback (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:197:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:1050:14)
at Request.emit (events.js:129:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:996:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)
I just installed wunderline, and I have been experimenting with all the functions. wunderline add --stdin does not work as advertised. Here is a sample session:
$ wunderline list inbox
$ wunderline add One Thing
$ wunderline list inbox
INBOX (1)
One Thing ☆
$ cat > todo.txt
Two Thing
Blue Thing
$ cat todo.txt | wunderline add --stdin
$ wunderline list inbox
INBOX (1)
One Thing ☆
I am running on Ubuntu Linux with a fresh install of nodejs.
Displaying authentication errors would be super useful and prevent issues like #40
TypeError: Object # has no method 'filter'
at Request._callback (/usr/lib/node_modules/wunderline/util/get-inbox.js:29:22)
at Request.self.callback (/usr/lib/node_modules/wunderline/node_modules/request/request.js:198:22)
at Request.emit (events.js:98:17)
at Request. (/usr/lib/node_modules/wunderline/node_modules/request/request.js:1057:14)
at Request.emit (events.js:117:20)
at IncomingMessage. (/usr/lib/node_modules/wunderline/node_modules/request/request.js:1003:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickCallback (node.js:448:13)
node -v
v0.10.37
Ubuntu 12.04
uname -a
3.13.0-48-generic #80~precise1-Ubuntu SMP Thu Mar 12 19:30:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
❯ wunderlist add Hello, World --list Test
Looks like folders have been added to the API, yay :)
https://developer.wunderlist.com/documentation/endpoints/folder
Hi,
I'm using Wunderlist to keep track of todos which are recurring on a yearly or bi-yearly basis. So I've a lot of dates in the far future.
Unfortunately "wunderline list" doesn't show the year of the due date - that's more a minor problem but still not too nice. The second problem is that the "wunderline week" command also lists all todos which are due in 1 year.
Would be great if you could have a look.
Steps to reproduce:
Besides that thank you for sharing this great tool :)
Cheers
It would be great if I could list all my lists.
Something like
$ wunderline lists
- Inbox (16)
- Today (2)
- Project Website (13)
- Design (2)
- Backend (7)
- Frontend (4)
Any thoughts on this?
I tried to install this under node 0.10.40, which was the version I had installed at the time. Since that version doesn't support ES6 syntax, which apparently is used here, I got this error:
$ wunderline add "Hello, World"
/home/naps62/.nvm/v0.10.40/lib/node_modules/wunderline/wunderline-add.js:146
stdin().then(data => {
^
SyntaxError: Unexpected token >
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:935:3
I believe this can be fixed by adding an engine
section to package.json
?
Fix for #61 seems to have broken add feature- both individual task as well as piped from stdin
$ wunderline add test
/usr/local/lib/node_modules/wunderline/wunderline-add.js:146
stdin().then(data => {
^^
SyntaxError: Unexpected token =>
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
cat myfile.txt | wunderline add --stdin
/usr/local/lib/node_modules/wunderline/wunderline-add.js:146
stdin().then(data => {
^^
SyntaxError: Unexpected token =>
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
Wunderline is getting a new home!
Worry not, this will not effect anything - other than getting more maintainers and publicity :)
If I have a list with e.g. Current
and current
listing on Current
should not return current
First, I am thanking you for spending time to build this brilliant CLI for the wunderlist! very useful.
I started using wunderline today and found that task title gets truncated when you have tasks title running for more than 60 characters, since most of my tasks are running past this limit, I couldn't pretty much list my daily TODO tasks effectively.
An example:
PR for the issue can be found here
#67
GitHub pages will be perfect for our needs :)
grunt-contrib-csslint
grunt-eslint
grunt-html
Similar to wunderline search [query]
, a command to show tasks from a given list. Not sure about the command name. Some ideas:
These would find and display tasks from a list whose name is "My Private Tasks"
wunderline view private
wunderline list private
wunderline search --list private
I'd be more than happy to implement this, just curious on your thoughts. Cheers for the nice CLI!
--today
and --week
Love wunderline, just love it. Thank you very much. Is there by any chance a way to set a "Remind me" date? It doesn't seem to be documented. (Or is it impossible?)
is it possible to add a multilined note?
$ wunderline add "Lines" --note "Line 1\nLine 2\nLine 3"
I've tried \n but didnt have any luck and I was wondering if there is a different command I should try.
Thanks
Could maybe take some inspiration from this alfred workflow?
Given a task has sub-tasks, I want to see them as a list below the main task
Is there currently any way to mark an item as complete? If not, do you plan to add this?
I am using Wunderline on a linux system. wunderline whoami
does work and shows my account information. But tasks that are created are not pushed to the website. I also cannot see website tasks on the commandline. I am using version 3.3.2
Hello,
I'm working with wunderline. It works fine. Except the "add" command crashes with the following error statement. I tried also on a raspberry pi. With the same error.
C:\Users\aj>wunderline add Hello
C:\Users\aj\AppData\Roaming\npm\node_modules\wunderline\wunderline-add.js:146
stdin().then(data => {
^^
SyntaxError: Unexpected token =>
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
Do you have an idea?
Commander's alias's don't work with git style sub-commands, might be worth looking at an alternative?
https://github.com/substack/minimist
https://github.com/bcoe/yargs
It looks like the endpoint exists
https://developer.wunderlist.com/documentation/endpoints/note
I'm having an issue on multiple machines (Windows 10, Ubuntu 15.04). When I run wunderline auth
and enter my apps credentials I get the following (on Windows 10, but I get the same on Ubuntu):
TypeError: Cannot call method 'split' of undefined
at Request._callback (C:\Users\acrowder\AppData\Roaming\npm\node_modules\wunderline\wunderline-auth.js:47:39)
at Request.self.callback (C:\Users\acrowder\AppData\Roaming\npm\node_modules\wunderline\node_modules\request\request.js:198:22)
at Request.emit (events.js:98:17)
at Request.<anonymous> (C:\Users\acrowder\AppData\Roaming\npm\node_modules\wunderline\node_modules\request\request.js:1082:10)
at Request.emit (events.js:117:20)
at IncomingMessage.<anonymous> (C:\Users\acrowder\AppData\Roaming\npm\node_modules\wunderline\node_modules\request\request.js:1009:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:943:16
at process._tickCallback (node.js:419:13)
It seems like it authenticates successfully though. Then when I run wunderline inbox
I get:
TypeError: Object #<Object> has no method 'filter'
at Request._callback (C:\Users\acrowder\AppData\Roaming\npm\node_modules\wunderline\lib\get-inbox.js:29:22)
at Request.self.callback (C:\Users\acrowder\AppData\Roaming\npm\node_modules\wunderline\node_modules\request\request.js:198:22)
at Request.emit (events.js:98:17)
at Request.<anonymous> (C:\Users\acrowder\AppData\Roaming\npm\node_modules\wunderline\node_modules\request\request.js:1082:10)
at Request.emit (events.js:117:20)
at IncomingMessage.<anonymous> (C:\Users\acrowder\AppData\Roaming\npm\node_modules\wunderline\node_modules\request\request.js:1009:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:943:16
at process._tickCallback (node.js:419:13)
If I can get some spare time I'll attempt to fork and fix, but in the meantime I wanted to submit an issue in case you were able to fix it more quickly than I can. Thanks!
If I try to use without make the configuration, I get this error
$ npm install -g wunderline
$ wunderline all
TypeError: Cannot call method 'toUpperCase' of undefined
at printList (/home/action/.parts/lib/node_modules/wunderline/util/print-list.js:66:30)
at Array.forEach (native)
at /home/action/.parts/lib/node_modules/wunderline/wunderline-all.js:14:8
at /home/action/.parts/lib/node_modules/wunderline/util/get-lists.js:48:5
at /home/action/.parts/lib/node_modules/wunderline/node_modules/async/lib/async.js:46:16
at /home/action/.parts/lib/node_modules/wunderline/node_modules/async/lib/async.js:1248:30
at /home/action/.parts/lib/node_modules/wunderline/util/get-lists.js:38:9
at /home/action/.parts/lib/node_modules/wunderline/node_modules/async/lib/async.js:46:16
at replenish (/home/action/.parts/lib/node_modules/wunderline/node_modules/async/lib/async.js:297:28)
at /home/action/.parts/lib/node_modules/wunderline/node_modules/async/lib/async.js:317:29
❯ wunderlist add kasdjhflaksdjhflkajsdhflkasjhdflkajshdlkfjashdlkfjhasldkfjhalksdjfhlkasjdhflkasjhdflkasjdhflkjasdhlkfjashdlkfjhasdlkfjhadslkfjhalskdjfhlkasdjfhlkasdjhflkasjdhflkasjdhflkasjdhflaksjdfhlkasjdhflkasjdfhlkasjdhflkasjdhflkasjdhflkajsdhflkajsdhflkasjdfhlkasdjhflkasjdhflkajsdhflkjasdhlfkjahsdlkfjhaslkdfjhaslkdjfhalskdjfhlaksjdhflaskdjfhlaksjdhflkasjdhflkasjhdflkajshdflkajshdflkjahsdlfkjahsdf
{ type: 'validation_error',
translation_key: 'api_error_validation_error',
message: 'The information you sent could not be processed (validation failure).',
title: [ 'is too long (maximum is 255 characters)' ] }
just for funsies :)
Is this possible?
It appears the order items are returned does not match the order of the clients (e.g. Firefox, Android, Chrome)
Add an export command which writes all lists, tasks, sub-tasks and notes to stdout. Optional formatting could be nice, json, markdown etc.
Hello,
I am getting the following exception while executing following command
wunderline add Hello, World!
Exception:
var lists = body.filter(function (item) {
^
TypeError: undefined is not a function
at Request._callback (/usr/local/lib/node_modules/wunderline/util/get-inbox.js:27:22)
at Request.self.callback (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:197:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:1050:14)
at Request.emit (events.js:129:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:996:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)```
Adding https://github.com/SBoudrias/Inquirer.js for interactive prompts with https://github.com/yeoman/configstore for getting and storing auth creds would be amaze! ✨
Hi,
this looks like a great project. I installed it, but there seems to be something wrong.
$ wunderline inbox
/usr/local/lib/node_modules/wunderline/util/get-inbox.js:22
var lists = body.filter(function (item) {
^
TypeError: undefined is not a function
at Request._callback (/usr/local/lib/node_modules/wunderline/util/get-inbox.js:22:22)
at Request.self.callback (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:197:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:1050:14)
at Request.emit (events.js:129:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:996:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
Thanks,
Hans
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.