I am crawling some web pages to populate a database, and currently doing that with Grunt (
http://gruntjs.com/), which is a task-based 'build tool' (that gets me confused, is it supposed to solely build?).
========== Task file ==========
module.exports = function (grunt) {
grunt.registerTask('courses/update-info', 'Updates all courses info on the database', ... )
}
============================
So then I may have a somewhat controlled access to these jobs from the terminal, with ability to list all existing jobs and their descriptions. Also, I may pass some parameters to each task, although it's not very readable because they can't be associated with a name:
grunt courses/update-info:4:5:2 (these will be passed as the tasks's function arguments)
I guess I could go about creating node scripts and using a parameters library along with console colors and stuff, but I would rather find a framework, if such exists.
Did I make myself clearer at all? haha
Thanks for you time,
Guilherme