UNPKG

sinotron

Version:

Simple framework for Typescript Electron projects

14 lines (13 loc) 385 B
import { ShellUtil } from './shell-util.js'; import { logInfo, logWarn } from './log.js'; export const LaunchUtil = { vscode(root) { if (ShellUtil.isProgramInstalled('code')) { logInfo('--> Launching VSCode...'); ShellUtil.exec(`code ${root}`); } else { logWarn('NOTICE: VSCode may not be installed'); } } };