{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/4883","repository_url":"https://api.github.com/repos/atom/electron","labels_url":"https://api.github.com/repos/atom/electron/issues/4883/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/4883/comments","events_url":"https://api.github.com/repos/atom/electron/issues/4883/events","html_url":"https://github.com/atom/electron/pull/4883","id":142773345,"number":4883,"title":"Add repl option in default app","user":{"login":"kevinsawicki","id":671378,"avatar_url":"https://avatars.githubusercontent.com/u/671378?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsawicki","html_url":"https://github.com/kevinsawicki","followers_url":"https://api.github.com/users/kevinsawicki/followers","following_url":"https://api.github.com/users/kevinsawicki/following{/other_user}","gists_url":"https://api.github.com/users/kevinsawicki/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsawicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsawicki/subscriptions","organizations_url":"https://api.github.com/users/kevinsawicki/orgs","repos_url":"https://api.github.com/users/kevinsawicki/repos","events_url":"https://api.github.com/users/kevinsawicki/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsawicki/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-22T20:41:01Z","updated_at":"2016-03-22T21:26:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/atom/electron/pulls/4883","html_url":"https://github.com/atom/electron/pull/4883","diff_url":"https://github.com/atom/electron/pull/4883.diff","patch_url":"https://github.com/atom/electron/pull/4883.patch"},"body":"This adds a `-i/--interactive` flag to the default app that starts a repl for the main process.\r\n\r\nCan be used when developing locally via `npm run repl`.\r\n\r\n```sh\r\n> npm run repl\r\n\r\n> electron@0.37.2 repl /Users/kevin/github/electron\r\n> python ./script/start.py --interactive\r\n\r\n> 1 + 1\r\n2\r\n> process.versions.electron\r\n'0.37.2'\r\n> process.versions.node\r\n'5.1.1'\r\n> const {BrowserWindow} = require('electron')\r\nundefined\r\n> BrowserWindow.getAllWindows()\r\n[]\r\n> .exit\r\n\r\n```\r\n\r\n/cc @zeke who was asking if this was possible in #4872 "},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/200036733","html_url":"https://github.com/atom/electron/pull/4883#issuecomment-200036733","issue_url":"https://api.github.com/repos/atom/electron/issues/4883","id":200036733,"user":{"login":"kevinsawicki","id":671378,"avatar_url":"https://avatars.githubusercontent.com/u/671378?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsawicki","html_url":"https://github.com/kevinsawicki","followers_url":"https://api.github.com/users/kevinsawicki/followers","following_url":"https://api.github.com/users/kevinsawicki/following{/other_user}","gists_url":"https://api.github.com/users/kevinsawicki/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsawicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsawicki/subscriptions","organizations_url":"https://api.github.com/users/kevinsawicki/orgs","repos_url":"https://api.github.com/users/kevinsawicki/repos","events_url":"https://api.github.com/users/kevinsawicki/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsawicki/received_events","type":"User","site_admin":true},"created_at":"2016-03-22T21:26:49Z","updated_at":"2016-03-22T21:26:49Z","body":"> This should probably be documented somewhere before it lands, right?\r\n\r\nYeah, right now it is only in the `electron -h` output but somewhere in the `docs/` sounds good too"}}