mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-18 16:11:38 +03:00
7e2854007a
* fix(tauri.js) update e2e test * test(e2e) add FS API tests * fix(tauri.js) lint errors * fix(tauri) clippy checks * fix(test) use " instead of '
34 lines
490 B
JavaScript
34 lines
490 B
JavaScript
const parseArgs = require('minimist')
|
|
|
|
const argv = parseArgs(process.argv.slice(2), {
|
|
alias: {
|
|
h: 'help',
|
|
e: 'exit-on-panic'
|
|
},
|
|
boolean: ['h', 'e']
|
|
})
|
|
|
|
if (argv.help) {
|
|
console.log(`
|
|
Description
|
|
Tauri dev.
|
|
Usage
|
|
$ tauri dev
|
|
Options
|
|
--help, -h Displays this message
|
|
`)
|
|
process.exit(0)
|
|
}
|
|
|
|
async function run () {
|
|
const dev = require('../dist/api/dev')
|
|
|
|
await dev({
|
|
ctx: {
|
|
exitOnPanic: argv['exit-on-panic']
|
|
}
|
|
}).promise
|
|
}
|
|
|
|
run()
|