facebook / facebook/jscodeshift

Restructure runner and logging

Aperta
#80 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
improvement
Lingua principale
JavaScript
Stelle
10k
Fork
498
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Instead of using `console.log`, the runner should write to `stdout` and `stderr`, or maybe to streams passed to it. Either way, the runner shouldn't output anything, but return information about the progress / result to the caller, one way or the other.

The caller (e.g. the jscodeshift binary) can then decide how to deal with this information and also set proper exit codes.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.