eshaham / israeli-ynab-updater

A tool for updating YNAB using israeli-bank-scrapers
MIT License
53 stars 15 forks source link

Run task without menus #48

Open baruchiro opened 5 years ago

baruchiro commented 5 years ago

For executing a task from a scheduled command line, if you run index -t taskName the taskName will run without menus.

47

eshaham commented 5 years ago

@baruchiro I like this idea, but it should probably be under a different action. ie, shouldn't ride on top of the scrapingMainMenu function.

baruchiro commented 5 years ago

under a different action

Do you mean a different endpoint file? ie node runTask.js?

eshaham commented 4 years ago

@baruchiro no, like a new mode probably. see handling of modes here: https://github.com/eshaham/israeli-ynab-updater/blob/master/src/index.js#L25

this should work with something like npm run start:quiet -- -t <taskName>