Эх сурвалжийг харах

Utilisation formatter pour affichage resultat

Arthur Brandao 5 жил өмнө
parent
commit
3e19af5c47
1 өөрчлөгдсөн 3 нэмэгдсэн , 2 устгасан
  1. 3 2
      main.js

+ 3 - 2
main.js

@@ -110,11 +110,12 @@ function find(source, name) {
         console.info(`Search for ${name}'s co-authors...`);
         timer.start();
     }
-    require('./src/finder').in(source).find(name, (result) => {
+    const finder = require('./src/finder');
+    finder.in(source).find(name, (result) => {
         if (verbose) {
             timer.stop();
             console.info(`${name}'s co-authors find in ${timer.time()}`);
         }
-        console.log('res', result);
+        console.info(finder.toString(name, result));
     });
 }