holzschu / a-Shell-commands

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

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

Closed 0507spc closed 1 year ago

0507spc commented 1 year 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 1 year 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 1 year ago

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

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

holzschu commented 1 year 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 1 year 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 1 year ago

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