{"action":"created","comment":{"url":"https://api.github.com/repos/hoaproject/Devtools/pulls/comments/76387235","id":76387235,"diff_hunk":"@@ -309,7 +316,40 @@ public function main()\n             }\n         }\n \n-        echo \"\\n\", 'Open file://', $workspace, '/index.html', '.', \"\\n\";\n+        $pathname = escapeshellarg('file://' . $workspace . '/index.html');\n+\n+        echo \"\\n\";\n+\n+        if (true === $open) {\n+            if (isset($_SERVER['BROWSER'])) {","path":"Bin/Documentation.php","position":42,"original_position":42,"commit_id":"591a1474eed3e2f66c03fe119535c325e16eac06","original_commit_id":"591a1474eed3e2f66c03fe119535c325e16eac06","user":{"login":"shulard","id":482993,"avatar_url":"https://avatars.githubusercontent.com/u/482993?v=3","gravatar_id":"","url":"https://api.github.com/users/shulard","html_url":"https://github.com/shulard","followers_url":"https://api.github.com/users/shulard/followers","following_url":"https://api.github.com/users/shulard/following{/other_user}","gists_url":"https://api.github.com/users/shulard/gists{/gist_id}","starred_url":"https://api.github.com/users/shulard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shulard/subscriptions","organizations_url":"https://api.github.com/users/shulard/orgs","repos_url":"https://api.github.com/users/shulard/repos","events_url":"https://api.github.com/users/shulard/events{/privacy}","received_events_url":"https://api.github.com/users/shulard/received_events","type":"User","site_admin":false},"body":"Wow, thanks for the link 😄. They tell that $BROWSER can be a list of colon-delimited commands... Can this be a problem here ? Maybe we need some processing on this environment var before running it...","created_at":"2016-08-26T09:04:22Z","updated_at":"2016-08-26T09:04:22Z","html_url":"https://github.com/hoaproject/Devtools/pull/31#discussion_r76387235","pull_request_url":"https://api.github.com/repos/hoaproject/Devtools/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/comments/76387235"},"html":{"href":"https://github.com/hoaproject/Devtools/pull/31#discussion_r76387235"},"pull_request":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/hoaproject/Devtools/pulls/31","id":82834830,"html_url":"https://github.com/hoaproject/Devtools/pull/31","diff_url":"https://github.com/hoaproject/Devtools/pull/31.diff","patch_url":"https://github.com/hoaproject/Devtools/pull/31.patch","issue_url":"https://api.github.com/repos/hoaproject/Devtools/issues/31","number":31,"state":"open","locked":false,"title":"Bin: Add the `--open` option to `documentation`","user":{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"body":"Fix #30.\r\n\r\nThe `hoa devtools:documentation --open` option will try to automatically open the documentation in a browser after its computation.\r\n\r\nPlease, @hoaproject/hoackers, can you review this one?","created_at":"2016-08-26T05:45:11Z","updated_at":"2016-08-26T09:04:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb99a440018358d4bd2ec4bb68ff4cf9266be426","assignee":{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"assignees":[{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hoaproject/Devtools/pulls/31/commits","review_comments_url":"https://api.github.com/repos/hoaproject/Devtools/pulls/31/comments","review_comment_url":"https://api.github.com/repos/hoaproject/Devtools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hoaproject/Devtools/issues/31/comments","statuses_url":"https://api.github.com/repos/hoaproject/Devtools/statuses/591a1474eed3e2f66c03fe119535c325e16eac06","head":{"label":"Hywan:bin_documentation_open","ref":"bin_documentation_open","sha":"591a1474eed3e2f66c03fe119535c325e16eac06","user":{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"repo":{"id":29742579,"name":"Devtools","full_name":"Hywan/Devtools","owner":{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hywan/Devtools","description":"The Hoa\\Devtools library.","fork":true,"url":"https://api.github.com/repos/Hywan/Devtools","forks_url":"https://api.github.com/repos/Hywan/Devtools/forks","keys_url":"https://api.github.com/repos/Hywan/Devtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hywan/Devtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hywan/Devtools/teams","hooks_url":"https://api.github.com/repos/Hywan/Devtools/hooks","issue_events_url":"https://api.github.com/repos/Hywan/Devtools/issues/events{/number}","events_url":"https://api.github.com/repos/Hywan/Devtools/events","assignees_url":"https://api.github.com/repos/Hywan/Devtools/assignees{/user}","branches_url":"https://api.github.com/repos/Hywan/Devtools/branches{/branch}","tags_url":"https://api.github.com/repos/Hywan/Devtools/tags","blobs_url":"https://api.github.com/repos/Hywan/Devtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hywan/Devtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hywan/Devtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hywan/Devtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hywan/Devtools/statuses/{sha}","languages_url":"https://api.github.com/repos/Hywan/Devtools/languages","stargazers_url":"https://api.github.com/repos/Hywan/Devtools/stargazers","contributors_url":"https://api.github.com/repos/Hywan/Devtools/contributors","subscribers_url":"https://api.github.com/repos/Hywan/Devtools/subscribers","subscription_url":"https://api.github.com/repos/Hywan/Devtools/subscription","commits_url":"https://api.github.com/repos/Hywan/Devtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hywan/Devtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hywan/Devtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hywan/Devtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hywan/Devtools/contents/{+path}","compare_url":"https://api.github.com/repos/Hywan/Devtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hywan/Devtools/merges","archive_url":"https://api.github.com/repos/Hywan/Devtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hywan/Devtools/downloads","issues_url":"https://api.github.com/repos/Hywan/Devtools/issues{/number}","pulls_url":"https://api.github.com/repos/Hywan/Devtools/pulls{/number}","milestones_url":"https://api.github.com/repos/Hywan/Devtools/milestones{/number}","notifications_url":"https://api.github.com/repos/Hywan/Devtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hywan/Devtools/labels{/name}","releases_url":"https://api.github.com/repos/Hywan/Devtools/releases{/id}","deployments_url":"https://api.github.com/repos/Hywan/Devtools/deployments","created_at":"2015-01-23T16:55:37Z","updated_at":"2015-01-23T16:55:38Z","pushed_at":"2016-08-26T05:44:30Z","git_url":"git://github.com/Hywan/Devtools.git","ssh_url":"git@github.com:Hywan/Devtools.git","clone_url":"https://github.com/Hywan/Devtools.git","svn_url":"https://github.com/Hywan/Devtools","homepage":null,"size":83,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hoaproject:master","ref":"master","sha":"6c6fa70dfb07ffe149ce9960743610a273b2c1f9","user":{"login":"hoaproject","id":1519718,"avatar_url":"https://avatars.githubusercontent.com/u/1519718?v=3","gravatar_id":"","url":"https://api.github.com/users/hoaproject","html_url":"https://github.com/hoaproject","followers_url":"https://api.github.com/users/hoaproject/followers","following_url":"https://api.github.com/users/hoaproject/following{/other_user}","gists_url":"https://api.github.com/users/hoaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/hoaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoaproject/subscriptions","organizations_url":"https://api.github.com/users/hoaproject/orgs","repos_url":"https://api.github.com/users/hoaproject/repos","events_url":"https://api.github.com/users/hoaproject/events{/privacy}","received_events_url":"https://api.github.com/users/hoaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":28817008,"name":"Devtools","full_name":"hoaproject/Devtools","owner":{"login":"hoaproject","id":1519718,"avatar_url":"https://avatars.githubusercontent.com/u/1519718?v=3","gravatar_id":"","url":"https://api.github.com/users/hoaproject","html_url":"https://github.com/hoaproject","followers_url":"https://api.github.com/users/hoaproject/followers","following_url":"https://api.github.com/users/hoaproject/following{/other_user}","gists_url":"https://api.github.com/users/hoaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/hoaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoaproject/subscriptions","organizations_url":"https://api.github.com/users/hoaproject/orgs","repos_url":"https://api.github.com/users/hoaproject/repos","events_url":"https://api.github.com/users/hoaproject/events{/privacy}","received_events_url":"https://api.github.com/users/hoaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hoaproject/Devtools","description":"The Hoa\\Devtools library.","fork":false,"url":"https://api.github.com/repos/hoaproject/Devtools","forks_url":"https://api.github.com/repos/hoaproject/Devtools/forks","keys_url":"https://api.github.com/repos/hoaproject/Devtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoaproject/Devtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoaproject/Devtools/teams","hooks_url":"https://api.github.com/repos/hoaproject/Devtools/hooks","issue_events_url":"https://api.github.com/repos/hoaproject/Devtools/issues/events{/number}","events_url":"https://api.github.com/repos/hoaproject/Devtools/events","assignees_url":"https://api.github.com/repos/hoaproject/Devtools/assignees{/user}","branches_url":"https://api.github.com/repos/hoaproject/Devtools/branches{/branch}","tags_url":"https://api.github.com/repos/hoaproject/Devtools/tags","blobs_url":"https://api.github.com/repos/hoaproject/Devtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoaproject/Devtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoaproject/Devtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoaproject/Devtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoaproject/Devtools/statuses/{sha}","languages_url":"https://api.github.com/repos/hoaproject/Devtools/languages","stargazers_url":"https://api.github.com/repos/hoaproject/Devtools/stargazers","contributors_url":"https://api.github.com/repos/hoaproject/Devtools/contributors","subscribers_url":"https://api.github.com/repos/hoaproject/Devtools/subscribers","subscription_url":"https://api.github.com/repos/hoaproject/Devtools/subscription","commits_url":"https://api.github.com/repos/hoaproject/Devtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoaproject/Devtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoaproject/Devtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoaproject/Devtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoaproject/Devtools/contents/{+path}","compare_url":"https://api.github.com/repos/hoaproject/Devtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoaproject/Devtools/merges","archive_url":"https://api.github.com/repos/hoaproject/Devtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoaproject/Devtools/downloads","issues_url":"https://api.github.com/repos/hoaproject/Devtools/issues{/number}","pulls_url":"https://api.github.com/repos/hoaproject/Devtools/pulls{/number}","milestones_url":"https://api.github.com/repos/hoaproject/Devtools/milestones{/number}","notifications_url":"https://api.github.com/repos/hoaproject/Devtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoaproject/Devtools/labels{/name}","releases_url":"https://api.github.com/repos/hoaproject/Devtools/releases{/id}","deployments_url":"https://api.github.com/repos/hoaproject/Devtools/deployments","created_at":"2015-01-05T14:57:46Z","updated_at":"2016-08-08T19:26:10Z","pushed_at":"2016-08-26T08:48:32Z","git_url":"git://github.com/hoaproject/Devtools.git","ssh_url":"git@github.com:hoaproject/Devtools.git","clone_url":"https://github.com/hoaproject/Devtools.git","svn_url":"https://github.com/hoaproject/Devtools","homepage":null,"size":92,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/31"},"html":{"href":"https://github.com/hoaproject/Devtools/pull/31"},"issue":{"href":"https://api.github.com/repos/hoaproject/Devtools/issues/31"},"comments":{"href":"https://api.github.com/repos/hoaproject/Devtools/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hoaproject/Devtools/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/hoaproject/Devtools/statuses/591a1474eed3e2f66c03fe119535c325e16eac06"}}}}
{"actor":{"display_login":"shulard"}}