@@ -0,0 +1,11 @@
|
||||
/** 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 e = ctx.vfs.env
|
||||
for (const k of Object.keys(e).sort()) {
|
||||
ctx.console.log(k + '=' + (e[k] ?? ''))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user