{"action":"created","issue":{"url":"https://api.github.com/repos/runtimejs/runtime/issues/60","labels_url":"https://api.github.com/repos/runtimejs/runtime/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/runtimejs/runtime/issues/60/comments","events_url":"https://api.github.com/repos/runtimejs/runtime/issues/60/events","html_url":"https://github.com/runtimejs/runtime/pull/60","id":89563496,"number":60,"title":"Add run command and get features","user":{"login":"ArielAbreu","id":11756574,"avatar_url":"https://avatars.githubusercontent.com/u/11756574?v=3","gravatar_id":"","url":"https://api.github.com/users/ArielAbreu","html_url":"https://github.com/ArielAbreu","followers_url":"https://api.github.com/users/ArielAbreu/followers","following_url":"https://api.github.com/users/ArielAbreu/following{/other_user}","gists_url":"https://api.github.com/users/ArielAbreu/gists{/gist_id}","starred_url":"https://api.github.com/users/ArielAbreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArielAbreu/subscriptions","organizations_url":"https://api.github.com/users/ArielAbreu/orgs","repos_url":"https://api.github.com/users/ArielAbreu/repos","events_url":"https://api.github.com/users/ArielAbreu/events{/privacy}","received_events_url":"https://api.github.com/users/ArielAbreu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-19T13:20:52Z","updated_at":"2015-06-20T17:29:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/runtimejs/runtime/pulls/60","html_url":"https://github.com/runtimejs/runtime/pull/60","diff_url":"https://github.com/runtimejs/runtime/pull/60.diff","patch_url":"https://github.com/runtimejs/runtime/pull/60.patch"},"body":"This adds a run commands feature to `runtime.shell`. If you get an error with the `args` parameter, add a space at the beginning of the string.\r\nUsage:\r\n```javascript\r\nruntime.shell.runCommand(commandName, [arguments]);\r\n// Example:\r\nruntime.shell.runCommand(\"echo\", \" hey\");\r\n```\r\n\r\nUPDATE:\r\nI just added a `get` function to `runtime.tty`, which allows you to get text from the user easily.\r\nIt returns an `EventController` object that you can listen to.\r\nUsage:\r\n```javascript\r\nvar foo = runtime.tty.get();\r\nfoo.add(function(text) {\r\n  runtime.tty.print(text);\r\n  // or whatever you want to do with `text`\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/runtimejs/runtime/issues/comments/113791696","html_url":"https://github.com/runtimejs/runtime/pull/60#issuecomment-113791696","issue_url":"https://api.github.com/repos/runtimejs/runtime/issues/60","id":113791696,"user":{"login":"ArielAbreu","id":11756574,"avatar_url":"https://avatars.githubusercontent.com/u/11756574?v=3","gravatar_id":"","url":"https://api.github.com/users/ArielAbreu","html_url":"https://github.com/ArielAbreu","followers_url":"https://api.github.com/users/ArielAbreu/followers","following_url":"https://api.github.com/users/ArielAbreu/following{/other_user}","gists_url":"https://api.github.com/users/ArielAbreu/gists{/gist_id}","starred_url":"https://api.github.com/users/ArielAbreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArielAbreu/subscriptions","organizations_url":"https://api.github.com/users/ArielAbreu/orgs","repos_url":"https://api.github.com/users/ArielAbreu/repos","events_url":"https://api.github.com/users/ArielAbreu/events{/privacy}","received_events_url":"https://api.github.com/users/ArielAbreu/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T17:29:13Z","updated_at":"2015-06-20T17:29:13Z","body":"@iefserge I was able to add stdio and move the get command to a separate file."}}