tauri/tooling/cli/node/main.js
2022-07-04 09:09:00 -03:00

16 lines
312 B
JavaScript

const { run, logError } = require('./index')
module.exports.run = (args, binName) => {
return new Promise((resolve, reject) => {
run(args, binName, res => {
if (res instanceof Error) {
reject(res)
} else {
resolve(res)
}
})
})
}
module.exports.logError = logError