Skip to content

Commit 17a4e5e

Browse files
Trottdanielleadams
authored andcommitted
tools: add verbose flag to inactive TSC finder
Refs: #43897 (comment) PR-URL: #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>
1 parent ca658c8 commit 17a4e5e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tools/find-inactive-tsc.mjs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,15 @@ import cp from 'node:child_process';
1212
import fs from 'node:fs';
1313
import path from 'node:path';
1414
import readline from 'node:readline';
15+
import { parseArgs } from 'node:util';
1516

16-
const SINCE = process.argv[2] || '3 months ago';
17+
const args = parseArgs({
18+
allowPositionals: true,
19+
options: { verbose: { type: 'boolean', short: 'v' } }
20+
});
21+
22+
const verbose = args.values.verbose;
23+
const SINCE = args.positionals[0] || '3 months ago';
1724

1825
async function runGitCommand(cmd, options = {}) {
1926
const childProcess = cp.spawn('/bin/sh', ['-c', cmd], {
@@ -271,3 +278,8 @@ if (inactive.length) {
271278
fs.writeFileSync(new URL('../README.md', import.meta.url), newReadmeText);
272279
}
273280
}
281+
282+
if (verbose) {
283+
console.log(attendance);
284+
console.log(votingRecords);
285+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy