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

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎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
importfsfrom'node:fs';
1313
importpathfrom'node:path';
1414
importreadlinefrom'node:readline';
15+
import{parseArgs}from'node:util';
1516

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

1825
asyncfunctionrunGitCommand(cmd,options={}){
1926
constchildProcess=cp.spawn('/bin/sh',['-c',cmd],{
@@ -271,3 +278,8 @@ if (inactive.length) {
271278
fs.writeFileSync(newURL('../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)