holzschu / a-Shell-commands

shell commands, pre-compiled to webAssembly, ready to use in a-Shell
601 stars 22 forks source link

Run commands added to a-shell in extension rather than app #28

Closed 0507spc closed 2 years ago

0507spc commented 2 years ago

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?

holzschu commented 2 years ago

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.

0507spc commented 2 years ago

I tried most of that, here is an example, I assume I am missing something:

6C98EBBC-AE5F-4AE4-937A-995309EBECE7

holzschu commented 2 years ago

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.

0507spc commented 2 years ago

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. :-)

0507spc commented 2 years ago

Realised I posted in the wrong repo too. Sorry about that.