I want a function to execute native app in plugin.
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.
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.
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”
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.