UNPKG

shell-ahk

Version:

`Lodash`/`jQuery` for `AHK`.

15 lines (10 loc) 373 B
# @ts-check import $isString from './isString' import $join from './join' import $noop from './noop' ###* @type import('../type/module').Exec ### export default ($input, $callback = $noop) -> if $isString $input then $input = [$input] $input = $join $input, ' && ' Native 'RunWait, %comSpec% /c %$input%,, Hide UseErrorLevel' $callback ErrorLevel