Plugin: Support Execute Subprocess

I want a function to execute native app in plugin.

Maybe this?

https://plugins-doc.logseq.com/logseq/App/invokeExternalCommand

I’m not sure, the documentation is too vague and I haven’t tried.

I have seen this. But after reading the source code, I think it’s for invoking some pre-defined command for internal use. And it cannot be used to create a subprocess.

See this:

Thank you!

It seems to work. I’ll check on that.

I’m sorry to bother you.

But after diving into the code, I can make sure the run-cli-command method is not exported for the plugin.

I would be happy to submit a PR for this if you agree.

1 Like

Do you know when Logseq developers allow to execute cli command from plugin code?

It’s better to open an issue on GitHub and mark “I’m willing to submit a pull request” :slight_smile:

1 Like

Thank you!

I have submitted an issue Plugin: Support for executing external commands · Issue #8836 · logseq/logseq · GitHub. And if it’s accepted, I will submit a PR.

2 Likes