dwaring87 / rtm-cli

Remember the Milk Command Line Interface
MIT License
66 stars 14 forks source link

Update planner.js - just added note #8

Closed ndom91 closed 5 years ago

ndom91 commented 6 years ago

Added comment when running rtm-cli planner from cron there obviously is no ws or width to calculate. Therefore it can just be set to a static number, whatever width you want. I have my cron script send me this via e-mail (after running through aha to deal with ansi escape codes) so I found a width of 80 works well with my email client, etc.

ndom91 commented 6 years ago

I didnt feel this was appropriate to add to you README.md because you have the command documentation nicely done in the wiki, unfortunately I was not able to (or too dumb to.. haha) make a PR on the wiki page. So maybe this little snippet / hint could be added to the rtm-cli planner command info there because I'm sure others would be interested in running this from cron as to email themselves the planner every morning or something like that.

dwaring87 commented 6 years ago

Thanks for the suggestion. I'll add a default width if the screen width is undefined and I could possibly even add a command argument to the planner command that would allow the user to set the planner width when running the command.