process.js 354 B

12345678910111213141516
  1. import tauri from './tauri'
  2. /**
  3. * spawns a process
  4. *
  5. * @param {string} command the name of the cmd to execute e.g. 'mkdir' or 'node'
  6. * @param {(string[]|string)} [args] command args
  7. * @return {Promise<string>} promise resolving to the stdout text
  8. */
  9. function execute (command, args) {
  10. return tauri.execute(command, args)
  11. }
  12. export {
  13. execute
  14. }