This commit is contained in:
Raven Scott
2026-04-03 02:49:18 -04:00
parent 4c8d50b1c9
commit 342b6040fe
45 changed files with 2236 additions and 107 deletions
+17
View File
@@ -0,0 +1,17 @@
/** Shared helpers for drive-resident /bin scripts (prepended before each command). */
function bareStdin(ctx) {
return typeof ctx.shellStdin === 'string' ? ctx.shellStdin : ''
}
async function run(ctx, argv) {
const save = ctx.saveVault
if (typeof save !== 'function') {
ctx.console.error('savevault: not supported in this environment')
return
}
try {
await save.call(ctx)
} catch (err) {
ctx.console.error(err?.message ?? String(err))
}
}