{"action":"created","comment":{"url":"https://api.github.com/repos/Rokid/ShadowNode/pulls/comments/201614221","pull_request_review_id":136148251,"id":201614221,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTYxNDIyMQ==","diff_hunk":"@@ -32,7 +32,7 @@ extern const char* iotjs_debug_prefix[4];\n #define IOTJS_DLOG(lvl, ...)                                        \\\n   do {                                                              \\\n     if (0 <= lvl && lvl <= iotjs_debug_level && iotjs_log_stream) { \\\n-      fprintf(iotjs_log_stream, \"[%s] \", iotjs_debug_prefix[lvl]);  \\\n+      fprintf(iotjs_log_stream, \"%s \", iotjs_debug_prefix[lvl]);    \\","path":"src/iotjs_debuglog.h","position":5,"original_position":5,"commit_id":"bad58dba560508ef8398d353ab74bb5f2d4eed81","original_commit_id":"bad58dba560508ef8398d353ab74bb5f2d4eed81","user":{"login":"legendecas","id":8500303,"node_id":"MDQ6VXNlcjg1MDAzMDM=","avatar_url":"https://avatars3.githubusercontent.com/u/8500303?v=4","gravatar_id":"","url":"https://api.github.com/users/legendecas","html_url":"https://github.com/legendecas","followers_url":"https://api.github.com/users/legendecas/followers","following_url":"https://api.github.com/users/legendecas/following{/other_user}","gists_url":"https://api.github.com/users/legendecas/gists{/gist_id}","starred_url":"https://api.github.com/users/legendecas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legendecas/subscriptions","organizations_url":"https://api.github.com/users/legendecas/orgs","repos_url":"https://api.github.com/users/legendecas/repos","events_url":"https://api.github.com/users/legendecas/events{/privacy}","received_events_url":"https://api.github.com/users/legendecas/received_events","type":"User","site_admin":false},"body":"maybe brackets are still needed as some tty may not supporting color rendering","created_at":"2018-07-11T09:00:12Z","updated_at":"2018-07-11T09:01:30Z","html_url":"https://github.com/Rokid/ShadowNode/pull/193#discussion_r201614221","pull_request_url":"https://api.github.com/repos/Rokid/ShadowNode/pulls/193","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Rokid/ShadowNode/pulls/comments/201614221"},"html":{"href":"https://github.com/Rokid/ShadowNode/pull/193#discussion_r201614221"},"pull_request":{"href":"https://api.github.com/repos/Rokid/ShadowNode/pulls/193"}}},"pull_request":{"url":"https://api.github.com/repos/Rokid/ShadowNode/pulls/193","id":200470969,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwNDcwOTY5","html_url":"https://github.com/Rokid/ShadowNode/pull/193","diff_url":"https://github.com/Rokid/ShadowNode/pull/193.diff","patch_url":"https://github.com/Rokid/ShadowNode/pull/193.patch","issue_url":"https://api.github.com/repos/Rokid/ShadowNode/issues/193","number":193,"state":"open","locked":false,"title":"iotjs: improve the cli options, more like nodejs","user":{"login":"yorkie","id":1935767,"node_id":"MDQ6VXNlcjE5MzU3Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/1935767?v=4","gravatar_id":"","url":"https://api.github.com/users/yorkie","html_url":"https://github.com/yorkie","followers_url":"https://api.github.com/users/yorkie/followers","following_url":"https://api.github.com/users/yorkie/following{/other_user}","gists_url":"https://api.github.com/users/yorkie/gists{/gist_id}","starred_url":"https://api.github.com/users/yorkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yorkie/subscriptions","organizations_url":"https://api.github.com/users/yorkie/orgs","repos_url":"https://api.github.com/users/yorkie/repos","events_url":"https://api.github.com/users/yorkie/events{/privacy}","received_events_url":"https://api.github.com/users/yorkie/received_events","type":"User","site_admin":false},"body":"Now we are closer to Node.js style command line tool:\r\n\r\n```sh\r\n> iotjs -v\r\nv0.8.5\r\n> iotjs --version\r\nv0.8.5\r\n> iotjs --help\r\nUsage: iotjs [options] [script | script.js] [arguments]\r\n\r\nOptions:\r\n  -v, --version              print version\r\n  -h, --help                 print help\r\n  --loadstat                 print the load statistics\r\n  --memstat                  print the memory statistics\r\n  --show-opcodes             print the opcodes of running script\r\n  --start-debug-server       activate the debugger server\r\n\r\nEnvironment variables:\r\nNODE_DISABLE_COLORS          set to 1 to disable colors in the REPL\r\nNODE_PATH                    ':'-separated list of directories\r\n                             prefixed to the module search path\r\n\r\nDocumentation can be found at https://github.com/Rokid/ShadowNode/tree/master/docs\r\n```","created_at":"2018-07-10T17:31:33Z","updated_at":"2018-07-11T09:01:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc8f18f28da96d2260ddcb83fb91344c5906611c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Rokid/ShadowNode/pulls/193/commits","review_comments_url":"https://api.github.com/repos/Rokid/ShadowNode/pulls/193/comments","review_comment_url":"https://api.github.com/repos/Rokid/ShadowNode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Rokid/ShadowNode/issues/193/comments","statuses_url":"https://api.github.com/repos/Rokid/ShadowNode/statuses/bad58dba560508ef8398d353ab74bb5f2d4eed81","head":{"label":"Rokid:optimize/cli","ref":"optimize/cli","sha":"bad58dba560508ef8398d353ab74bb5f2d4eed81","user":{"login":"Rokid","id":19773259,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NzczMjU5","avatar_url":"https://avatars2.githubusercontent.com/u/19773259?v=4","gravatar_id":"","url":"https://api.github.com/users/Rokid","html_url":"https://github.com/Rokid","followers_url":"https://api.github.com/users/Rokid/followers","following_url":"https://api.github.com/users/Rokid/following{/other_user}","gists_url":"https://api.github.com/users/Rokid/gists{/gist_id}","starred_url":"https://api.github.com/users/Rokid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rokid/subscriptions","organizations_url":"https://api.github.com/users/Rokid/orgs","repos_url":"https://api.github.com/users/Rokid/repos","events_url":"https://api.github.com/users/Rokid/events{/privacy}","received_events_url":"https://api.github.com/users/Rokid/received_events","type":"Organization","site_admin":false},"repo":{"id":114971968,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ5NzE5Njg=","name":"ShadowNode","full_name":"Rokid/ShadowNode","owner":{"login":"Rokid","id":19773259,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NzczMjU5","avatar_url":"https://avatars2.githubusercontent.com/u/19773259?v=4","gravatar_id":"","url":"https://api.github.com/users/Rokid","html_url":"https://github.com/Rokid","followers_url":"https://api.github.com/users/Rokid/followers","following_url":"https://api.github.com/users/Rokid/following{/other_user}","gists_url":"https://api.github.com/users/Rokid/gists{/gist_id}","starred_url":"https://api.github.com/users/Rokid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rokid/subscriptions","organizations_url":"https://api.github.com/users/Rokid/orgs","repos_url":"https://api.github.com/users/Rokid/repos","events_url":"https://api.github.com/users/Rokid/events{/privacy}","received_events_url":"https://api.github.com/users/Rokid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Rokid/ShadowNode","description":"Use Node.js in your end devices :)","fork":false,"url":"https://api.github.com/repos/Rokid/ShadowNode","forks_url":"https://api.github.com/repos/Rokid/ShadowNode/forks","keys_url":"https://api.github.com/repos/Rokid/ShadowNode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rokid/ShadowNode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rokid/ShadowNode/teams","hooks_url":"https://api.github.com/repos/Rokid/ShadowNode/hooks","issue_events_url":"https://api.github.com/repos/Rokid/ShadowNode/issues/events{/number}","events_url":"https://api.github.com/repos/Rokid/ShadowNode/events","assignees_url":"https://api.github.com/repos/Rokid/ShadowNode/assignees{/user}","branches_url":"https://api.github.com/repos/Rokid/ShadowNode/branches{/branch}","tags_url":"https://api.github.com/repos/Rokid/ShadowNode/tags","blobs_url":"https://api.github.com/repos/Rokid/ShadowNode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rokid/ShadowNode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rokid/ShadowNode/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rokid/ShadowNode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rokid/ShadowNode/statuses/{sha}","languages_url":"https://api.github.com/repos/Rokid/ShadowNode/languages","stargazers_url":"https://api.github.com/repos/Rokid/ShadowNode/stargazers","contributors_url":"https://api.github.com/repos/Rokid/ShadowNode/contributors","subscribers_url":"https://api.github.com/repos/Rokid/ShadowNode/subscribers","subscription_url":"https://api.github.com/repos/Rokid/ShadowNode/subscription","commits_url":"https://api.github.com/repos/Rokid/ShadowNode/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rokid/ShadowNode/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rokid/ShadowNode/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rokid/ShadowNode/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rokid/ShadowNode/contents/{+path}","compare_url":"https://api.github.com/repos/Rokid/ShadowNode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rokid/ShadowNode/merges","archive_url":"https://api.github.com/repos/Rokid/ShadowNode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rokid/ShadowNode/downloads","issues_url":"https://api.github.com/repos/Rokid/ShadowNode/issues{/number}","pulls_url":"https://api.github.com/repos/Rokid/ShadowNode/pulls{/number}","milestones_url":"https://api.github.com/repos/Rokid/ShadowNode/milestones{/number}","notifications_url":"https://api.github.com/repos/Rokid/ShadowNode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rokid/ShadowNode/labels{/name}","releases_url":"https://api.github.com/repos/Rokid/ShadowNode/releases{/id}","deployments_url":"https://api.github.com/repos/Rokid/ShadowNode/deployments","created_at":"2017-12-21T06:40:28Z","updated_at":"2018-07-10T15:21:13Z","pushed_at":"2018-07-11T08:15:13Z","git_url":"git://github.com/Rokid/ShadowNode.git","ssh_url":"git@github.com:Rokid/ShadowNode.git","clone_url":"https://github.com/Rokid/ShadowNode.git","svn_url":"https://github.com/Rokid/ShadowNode","homepage":"https://t.me/shadownode","size":8410,"stargazers_count":299,"watchers_count":299,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":15,"open_issues":33,"watchers":299,"default_branch":"master"}},"base":{"label":"Rokid:master","ref":"master","sha":"923aeac7a25d394698603b73d72945f294e03472","user":{"login":"Rokid","id":19773259,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NzczMjU5","avatar_url":"https://avatars2.githubusercontent.com/u/19773259?v=4","gravatar_id":"","url":"https://api.github.com/users/Rokid","html_url":"https://github.com/Rokid","followers_url":"https://api.github.com/users/Rokid/followers","following_url":"https://api.github.com/users/Rokid/following{/other_user}","gists_url":"https://api.github.com/users/Rokid/gists{/gist_id}","starred_url":"https://api.github.com/users/Rokid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rokid/subscriptions","organizations_url":"https://api.github.com/users/Rokid/orgs","repos_url":"https://api.github.com/users/Rokid/repos","events_url":"https://api.github.com/users/Rokid/events{/privacy}","received_events_url":"https://api.github.com/users/Rokid/received_events","type":"Organization","site_admin":false},"repo":{"id":114971968,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ5NzE5Njg=","name":"ShadowNode","full_name":"Rokid/ShadowNode","owner":{"login":"Rokid","id":19773259,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NzczMjU5","avatar_url":"https://avatars2.githubusercontent.com/u/19773259?v=4","gravatar_id":"","url":"https://api.github.com/users/Rokid","html_url":"https://github.com/Rokid","followers_url":"https://api.github.com/users/Rokid/followers","following_url":"https://api.github.com/users/Rokid/following{/other_user}","gists_url":"https://api.github.com/users/Rokid/gists{/gist_id}","starred_url":"https://api.github.com/users/Rokid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rokid/subscriptions","organizations_url":"https://api.github.com/users/Rokid/orgs","repos_url":"https://api.github.com/users/Rokid/repos","events_url":"https://api.github.com/users/Rokid/events{/privacy}","received_events_url":"https://api.github.com/users/Rokid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Rokid/ShadowNode","description":"Use Node.js in your end devices :)","fork":false,"url":"https://api.github.com/repos/Rokid/ShadowNode","forks_url":"https://api.github.com/repos/Rokid/ShadowNode/forks","keys_url":"https://api.github.com/repos/Rokid/ShadowNode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rokid/ShadowNode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rokid/ShadowNode/teams","hooks_url":"https://api.github.com/repos/Rokid/ShadowNode/hooks","issue_events_url":"https://api.github.com/repos/Rokid/ShadowNode/issues/events{/number}","events_url":"https://api.github.com/repos/Rokid/ShadowNode/events","assignees_url":"https://api.github.com/repos/Rokid/ShadowNode/assignees{/user}","branches_url":"https://api.github.com/repos/Rokid/ShadowNode/branches{/branch}","tags_url":"https://api.github.com/repos/Rokid/ShadowNode/tags","blobs_url":"https://api.github.com/repos/Rokid/ShadowNode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rokid/ShadowNode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rokid/ShadowNode/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rokid/ShadowNode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rokid/ShadowNode/statuses/{sha}","languages_url":"https://api.github.com/repos/Rokid/ShadowNode/languages","stargazers_url":"https://api.github.com/repos/Rokid/ShadowNode/stargazers","contributors_url":"https://api.github.com/repos/Rokid/ShadowNode/contributors","subscribers_url":"https://api.github.com/repos/Rokid/ShadowNode/subscribers","subscription_url":"https://api.github.com/repos/Rokid/ShadowNode/subscription","commits_url":"https://api.github.com/repos/Rokid/ShadowNode/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rokid/ShadowNode/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rokid/ShadowNode/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rokid/ShadowNode/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rokid/ShadowNode/contents/{+path}","compare_url":"https://api.github.com/repos/Rokid/ShadowNode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rokid/ShadowNode/merges","archive_url":"https://api.github.com/repos/Rokid/ShadowNode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rokid/ShadowNode/downloads","issues_url":"https://api.github.com/repos/Rokid/ShadowNode/issues{/number}","pulls_url":"https://api.github.com/repos/Rokid/ShadowNode/pulls{/number}","milestones_url":"https://api.github.com/repos/Rokid/ShadowNode/milestones{/number}","notifications_url":"https://api.github.com/repos/Rokid/ShadowNode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rokid/ShadowNode/labels{/name}","releases_url":"https://api.github.com/repos/Rokid/ShadowNode/releases{/id}","deployments_url":"https://api.github.com/repos/Rokid/ShadowNode/deployments","created_at":"2017-12-21T06:40:28Z","updated_at":"2018-07-10T15:21:13Z","pushed_at":"2018-07-11T08:15:13Z","git_url":"git://github.com/Rokid/ShadowNode.git","ssh_url":"git@github.com:Rokid/ShadowNode.git","clone_url":"https://github.com/Rokid/ShadowNode.git","svn_url":"https://github.com/Rokid/ShadowNode","homepage":"https://t.me/shadownode","size":8410,"stargazers_count":299,"watchers_count":299,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":15,"open_issues":33,"watchers":299,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Rokid/ShadowNode/pulls/193"},"html":{"href":"https://github.com/Rokid/ShadowNode/pull/193"},"issue":{"href":"https://api.github.com/repos/Rokid/ShadowNode/issues/193"},"comments":{"href":"https://api.github.com/repos/Rokid/ShadowNode/issues/193/comments"},"review_comments":{"href":"https://api.github.com/repos/Rokid/ShadowNode/pulls/193/comments"},"review_comment":{"href":"https://api.github.com/repos/Rokid/ShadowNode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Rokid/ShadowNode/pulls/193/commits"},"statuses":{"href":"https://api.github.com/repos/Rokid/ShadowNode/statuses/bad58dba560508ef8398d353ab74bb5f2d4eed81"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"legendecas"}}