mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
tools: add verbose flag to inactive TSC finder
Refs: https://github.com/nodejs/node/pull/43897#issuecomment-1189682369 PR-URL: https://github.com/nodejs/node/pull/43913 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
This commit is contained in:
@@ -12,8 +12,15 @@ import cp from 'node:child_process';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import readline from 'node:readline';
|
||||
import { parseArgs } from 'node:util';
|
||||
|
||||
const SINCE = process.argv[2] || '3 months ago';
|
||||
const args = parseArgs({
|
||||
allowPositionals: true,
|
||||
options: { verbose: { type: 'boolean', short: 'v' } }
|
||||
});
|
||||
|
||||
const verbose = args.values.verbose;
|
||||
const SINCE = args.positionals[0] || '3 months ago';
|
||||
|
||||
async function runGitCommand(cmd, options = {}) {
|
||||
const childProcess = cp.spawn('/bin/sh', ['-c', cmd], {
|
||||
@@ -271,3 +278,8 @@ if (inactive.length) {
|
||||
fs.writeFileSync(new URL('../README.md', import.meta.url), newReadmeText);
|
||||
}
|
||||
}
|
||||
|
||||
if (verbose) {
|
||||
console.log(attendance);
|
||||
console.log(votingRecords);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user