Here my primary use case would be doing something like writing up a post in vim from a terminal (putting a title, tags as appropriate) and then sending it through a bash function that posts to Stack Overflow.
Is doing something like this possible?
Here my primary use case would be doing something like writing up a post in vim from a terminal (putting a title, tags as appropriate) and then sending it through a bash function that posts to Stack Overflow.
Is doing something like this possible?
Yes, with the Stack Exchange API. The documentation home page lists all available methods.
[post] through a bash function that posts to Stack Overflow.
Is doing something like this possible?
Everything is possible, but in this case I'd refrain from it.
When you post a question, you're supposed to keep looking at it for at least a couple of minutes, so you can watch for comments, edits and perhaps even answers:
Post the question and respond to feedback
After you post, leave the question open in your browser for a bit, and see if anyone comments. If you missed an obvious piece of information, be ready to respond by editing your question to include it. If someone posts an answer, be ready to try it out and provide feedback!
So sure, you could post a question through the API or any other means, but know that you're going to have to open your browser afterwards anyway to monitor said question.
Yes using this hook
wp_insert_post()