« get me outta code hell

upd8: stub --no-input option - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-11-07 08:27:19 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-07 08:27:19 -0400
commit505a2bf05216de928d667655ee2670ad6c3ff46d (patch)
tree34d69497a02e10fa1c489b4766140e6a222be30a
parent8901b8bb4c9966945519de9a0b7115fb9c5a9564 (diff)
upd8: stub --no-input option
-rwxr-xr-xsrc/upd8.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/upd8.js b/src/upd8.js
index ea4629e..4068374 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -290,6 +290,11 @@ async function main() {
       type: 'flag',
     },
 
+    'no-input': {
+      help: `Don't wait on input from stdin - assume the device is headless`,
+      type: 'flag',
+    },
+
     // Want sweet, sweet trace8ack info in aggreg8te error messages? This
     // will print all the juicy details (or at least the first relevant
     // line) right to your output, 8ut also pro8a8ly give you a headache
@@ -456,6 +461,7 @@ async function main() {
   const thumbsOnly = cliOptions['thumbs-only'] ?? false;
   const skipReferenceValidation = cliOptions['skip-reference-validation'] ?? false;
   const noBuild = cliOptions['no-build'] ?? false;
+  const noInput = cliOptions['no-input'] ?? false;
 
   showStepStatusSummary = cliOptions['show-step-summary'] ?? false;