Open baruchiro opened 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.
under a different action
Do you mean a different endpoint file? ie node runTask.js
?
@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>
For executing a task from a scheduled command line, if you run
index -t taskName
thetaskName
will run without menus.47