Add 20 Pear/Bare platform modules replacing deprecated pear run.
Introduces hyper-bare-entry-runner, pear-runtime embed/link/config stack, and scaffold helpers for argv, storage, OTA, Electron, and headless UI. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
require('bare-process/global')
|
||||
const test = require('brittle')
|
||||
const { HyperBareArgvBridge } = require('../index.js')
|
||||
|
||||
test('parse argv', async (t) => {
|
||||
const a = new HyperBareArgvBridge()
|
||||
a.setArgv(['run', '--dev=true', 'pear://x', 'extra'])
|
||||
t.is(a.flag('dev'), 'true')
|
||||
t.ok(a.rest().includes('pear://x'))
|
||||
await a.close()
|
||||
})
|
||||
Reference in New Issue
Block a user