pear-api
Version:
Pear API Base & Integration Module
36 lines (34 loc) • 1.76 kB
JavaScript
const { flag, arg, rest } = require('paparam')
module.exports = [
arg('<link|dir>', 'Pear link, alias or directory to run app from'),
rest('[...app-args]', 'Application arguments'),
flag('--dev|-d', 'Enable --devtools & --updates-diff'),
flag('--devtools', 'Open devtools with application [Desktop]'),
flag('--updates-diff', 'Enable diff computation for Pear.updates'),
flag('--no-updates', 'Disable updates firing via Pear.updates'),
flag('--link <url>', 'Simulate deep-link click open'),
flag('--store|-s <path>', 'Set the Application Storage path'),
flag('--tmp-store|-t', 'Automatic new tmp folder as store path'),
flag('--links <kvs>', 'Override configured links with comma-separated key-values'),
flag('--unsafe-clear-app-storage', 'Clear app storage'),
flag('--unsafe-clear-preferences', 'Clear preferences (such as trustlist)'),
flag('--appling <path>', 'Set application shell path'),
flag('--checkout <n|release|staged>', 'Run a checkout from version length'),
flag('--no-pre', 'Skip pre scripts'),
flag('--preio', 'Show stdout & stderr of pre scripts'),
flag('--prequiet', 'Suppress piped output of pre scripts'),
flag('--base <path>', 'Set project base for path/file: run links'),
flag('--follow-symlinks|-f', 'Follow in-project symlinks'),
flag('--json', 'Newline-delimited-JSON operational status'),
flag('--detached', 'Wakeup existing app or run detached'),
flag('--no-ask', 'Suppress permission prompt'),
flag('--rti <info>').hide(),
flag('--prerunning').hide(),
flag('--dht-bootstrap <nodes>').hide(),
flag('--encryption-key <name>').hide(),
flag('--parent <id>').hide(),
flag('--trusted').hide(),
flag('--detach').hide(),
flag('--sandbox').hide() // electron passthrough
]