GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: add verbose flag to inactive TSC finder · nodejs/node@17a4e5e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • find-inactive-tsc.mjs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/find-inactive-tsc.mjs‎

Copy file name to clipboardExpand all lines: tools/find-inactive-tsc.mjs
+13-1Lines 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 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.