@@ -12,7 +12,9 @@ const requestOpts = {
1212 }
1313} ;
1414
15- // For mongo format import /!\
15+ /**
16+ * For mongo format import /!\
17+ */
1618function mongoImport ( category , game ) {
1719 try {
1820 let items = fs . readFileSync ( process . cwd ( ) + '/data/' + game + '/' + category + '.json' , 'utf8' ) ;
@@ -25,9 +27,11 @@ function mongoImport(category, game) {
2527 }
2628}
2729
28- // To choose a conf file corresponding to user's game choice
30+ /**
31+ * To choose a conf file corresponding to user's game choice
32+ * Game to load depends on cmdResponse from cli choices
33+ */
2934function gameConfParserSwitcher ( game ) {
30- // Game to load depends on cmdResponse from cli choices
3135 try {
3236 const parserList = globalConf . games [ game ] && globalConf . games [ game ] . conf ;
3337 if ( ! parserList ) throw { name : 'gameConfParserSwitcher' , message : 'No game corresponding to ' + game + ' in global.conf.js' } ;
@@ -37,9 +41,11 @@ function gameConfParserSwitcher(game) {
3741 }
3842}
3943
40- // To choose a conf file corresponding to user's game choice
44+ /**
45+ * To choose a list url file corresponding to user's game choice
46+ * Game to load depends on cmdResponse from cli choices
47+ */
4148function gameUrlListSwitcher ( cmdResponse ) {
42- // Game to load depends on cmdResponse from cli choices
4349 try {
4450 const url = globalConf . games &&
4551 globalConf . games [ cmdResponse . game ] &&
0 commit comments