{"action":"created","issue":{"url":"https://api.github.com/repos/aaditmshah/stdrepl/issues/1","labels_url":"https://api.github.com/repos/aaditmshah/stdrepl/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/aaditmshah/stdrepl/issues/1/comments","events_url":"https://api.github.com/repos/aaditmshah/stdrepl/issues/1/events","html_url":"https://github.com/aaditmshah/stdrepl/issues/1","id":72191702,"number":1,"title":"Add support for \"one-shot\" mode","user":{"login":"whitelynx","id":285264,"avatar_url":"https://avatars.githubusercontent.com/u/285264?v=3","gravatar_id":"","url":"https://api.github.com/users/whitelynx","html_url":"https://github.com/whitelynx","followers_url":"https://api.github.com/users/whitelynx/followers","following_url":"https://api.github.com/users/whitelynx/following{/other_user}","gists_url":"https://api.github.com/users/whitelynx/gists{/gist_id}","starred_url":"https://api.github.com/users/whitelynx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitelynx/subscriptions","organizations_url":"https://api.github.com/users/whitelynx/orgs","repos_url":"https://api.github.com/users/whitelynx/repos","events_url":"https://api.github.com/users/whitelynx/events{/privacy}","received_events_url":"https://api.github.com/users/whitelynx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-30T15:17:57Z","updated_at":"2015-04-30T15:19:58Z","closed_at":null,"body":"Instead of always looping right away, it'd be useful to have a way to just print the prompt and read a single input line from the user. This allows asynchronous operations to be triggered by input lines, without confusing the user by showing the prompt again immediately. I'd need this in order to use this library in [sql-cli](https://github.com/whitelynx/sql-cli)."},"comment":{"url":"https://api.github.com/repos/aaditmshah/stdrepl/issues/comments/97836424","html_url":"https://github.com/aaditmshah/stdrepl/issues/1#issuecomment-97836424","issue_url":"https://api.github.com/repos/aaditmshah/stdrepl/issues/1","id":97836424,"user":{"login":"whitelynx","id":285264,"avatar_url":"https://avatars.githubusercontent.com/u/285264?v=3","gravatar_id":"","url":"https://api.github.com/users/whitelynx","html_url":"https://github.com/whitelynx","followers_url":"https://api.github.com/users/whitelynx/followers","following_url":"https://api.github.com/users/whitelynx/following{/other_user}","gists_url":"https://api.github.com/users/whitelynx/gists{/gist_id}","starred_url":"https://api.github.com/users/whitelynx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitelynx/subscriptions","organizations_url":"https://api.github.com/users/whitelynx/orgs","repos_url":"https://api.github.com/users/whitelynx/repos","events_url":"https://api.github.com/users/whitelynx/events{/privacy}","received_events_url":"https://api.github.com/users/whitelynx/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T15:19:58Z","updated_at":"2015-04-30T15:19:58Z","body":"The idea in sql-cli would be, I'd read and execute a single query from the user at a time. Once the query ends (either by successfully completing, erroring, or being cancelled), I'd then call into stdrepl again to show the next prompt."}}