I'm automating some work tasks, and many of them consist of calling kubectl edit on different objects.
kubectl edit basically opens your $EDITOR which I have configured to be emacsclient.
My question is, how can I, from elisp run a command like kubectl edit that consists on a blocking call (waits for completion) to emacsclient, have all the edits I need done with emacsclient and then continue the execution of the elisp function?
Or maybe, instead of using $EDITOR to emacsclient can I set $EDITOR to something like: "the current running Emacs instance"?
I've found this answer that seem to be similar to my problem. But I wanted to know if there's a way for Emacs to understand that a command is calling $EDITOR and use the current instance, instead of doing it through emacsclient.