Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2022-07-22 20:20:54 +0300
committerMichaël Zasso <targos@protonmail.com>2022-08-01 17:48:28 +0300
commit01a44348e07ef23eb0f5a27089a3ab2fd8f5826d (patch)
tree06a6667f6d03e7aae0b3487e3c346a6eb9c0a3eb /tools
parent082a2630fd14e759270de38b7af8a6e9903dcf4e (diff)
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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/find-inactive-tsc.mjs14
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/find-inactive-tsc.mjs b/tools/find-inactive-tsc.mjs
index 5c4c3703898..fe204d5b673 100755
--- a/tools/find-inactive-tsc.mjs
+++ b/tools/find-inactive-tsc.mjs
@@ -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);
+}