Run commands added to a-shell in extension rather than app
0507spc opened this issue · comments
I have added commands to A-Shell but when I try to run in shortcuts I get the following:
"wasm: command not found"
I tried copying to bin, running with ./bin/command.wasm
~/Documents/bin
but nothing works, is this possible?
Hi,
That's an interesting question. For differents reasons, the shortcuts are running in a separate directory, ~shortcuts
or $GROUP
. So the shortcut is not finding the command. You can copy it to ~shortcuts/bin
or even to ~shortcuts
if you call it with wasm ~shortcuts/command
or wasm command
.
Oh, sorry ! I forgot that webAssembly execution is done through Apple's own webAssembly engine (it's pretty efficient), so webAssembly is only available for shortcuts runnin in app, not for shortcuts running in extension.
Thanks for the time taken to reply, appreciate it. I wasn't sure if I was doing something wrong, I can change my flow, so no issues. Thanks again. :-)
Realised I posted in the wrong repo too. Sorry about that.