UNPKG

@gameroom/cli

Version:

A command line tool for Gameroom

18 lines (16 loc) 384 B
const runCommand = require('./runCommand') module.exports = (script, newWindow) => { if (newWindow) { return runCommand( `osascript -e 'tell application "Terminal" do script "${script}" end tell'` ) } else { return runCommand( `osascript -e 'tell application "Terminal" do script "${script}" in window 1 end tell'` ) } }