tauri/tooling/cli/node/main.js

20 lines
450 B
JavaScript
Raw Normal View History

// Copyright 2019-2024 Tauri Programme within The Commons Conservancy
2023-02-19 16:17:49 +03:00
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
const { run, logError } = require('./index')
module.exports.run = (args, binName) => {
return new Promise((resolve, reject) => {
run(args, binName, (error, res) => {
if (error) {
reject(error)
} else {
resolve(res)
}
})
})
}
module.exports.logError = logError