Add sanitize.js: secret-free copy under a new passphrase (Refs #19)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 07:26:27 -05:00
parent 78bf87c4e6
commit 05ffcc8561
6 changed files with 161 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ function parseArgs(argv) {
return a;
}
function promptHidden(question) {
export function promptHidden(question) {
return new Promise((res, rej) => {
if (!process.stdin.isTTY) return rej(new Error('No terminal to prompt on: set FW_PASSPHRASE instead.'));
process.stdout.write(question);