{"action":"created","comment":{"url":"https://api.github.com/repos/wavebeem/squiggle/pulls/comments/45140982","id":45140982,"diff_hunk":"@@ -18,7 +18,7 @@ var nomnom = require(\"nomnom\")\n     .option(\"output\", {\n         position: 1,\n         metavar: \"FILE\",\n-        help: \"Write JavaScript to this file\",\n+        help: \"Write JavaScript to this file, if omitted then run the input\",","path":"src/main.js","position":5,"original_position":5,"commit_id":"4613a4ff0273bafe088f7a0014d9aa7c4ea7c2e2","original_commit_id":"4613a4ff0273bafe088f7a0014d9aa7c4ea7c2e2","user":{"login":"wavebeem","id":176815,"avatar_url":"https://avatars.githubusercontent.com/u/176815?v=3","gravatar_id":"","url":"https://api.github.com/users/wavebeem","html_url":"https://github.com/wavebeem","followers_url":"https://api.github.com/users/wavebeem/followers","following_url":"https://api.github.com/users/wavebeem/following{/other_user}","gists_url":"https://api.github.com/users/wavebeem/gists{/gist_id}","starred_url":"https://api.github.com/users/wavebeem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wavebeem/subscriptions","organizations_url":"https://api.github.com/users/wavebeem/orgs","repos_url":"https://api.github.com/users/wavebeem/repos","events_url":"https://api.github.com/users/wavebeem/events{/privacy}","received_events_url":"https://api.github.com/users/wavebeem/received_events","type":"User","site_admin":false},"body":"This is kinda confusing. I think if Squiggle can run code instead of just compiling it, this should be moved into like a `-o FILE` option which can be omitted.","created_at":"2015-11-17T23:53:11Z","updated_at":"2015-11-17T23:53:11Z","html_url":"https://github.com/wavebeem/squiggle/pull/113#discussion_r45140982","pull_request_url":"https://api.github.com/repos/wavebeem/squiggle/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/wavebeem/squiggle/pulls/comments/45140982"},"html":{"href":"https://github.com/wavebeem/squiggle/pull/113#discussion_r45140982"},"pull_request":{"href":"https://api.github.com/repos/wavebeem/squiggle/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/wavebeem/squiggle/pulls/113","id":51018426,"html_url":"https://github.com/wavebeem/squiggle/pull/113","diff_url":"https://github.com/wavebeem/squiggle/pull/113.diff","patch_url":"https://github.com/wavebeem/squiggle/pull/113.patch","issue_url":"https://api.github.com/repos/wavebeem/squiggle/issues/113","number":113,"state":"open","locked":false,"title":"Add the ability to run squiggle files straight","user":{"login":"noahmorrison","id":7417485,"avatar_url":"https://avatars.githubusercontent.com/u/7417485?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmorrison","html_url":"https://github.com/noahmorrison","followers_url":"https://api.github.com/users/noahmorrison/followers","following_url":"https://api.github.com/users/noahmorrison/following{/other_user}","gists_url":"https://api.github.com/users/noahmorrison/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmorrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmorrison/subscriptions","organizations_url":"https://api.github.com/users/noahmorrison/orgs","repos_url":"https://api.github.com/users/noahmorrison/repos","events_url":"https://api.github.com/users/noahmorrison/events{/privacy}","received_events_url":"https://api.github.com/users/noahmorrison/received_events","type":"User","site_admin":false},"body":"Calling squiggle with only one argument will eval the compiled\r\ncode instead of writting it to a file.\r\n\r\nThis also allows squiggle to be used from a shebang\r\n\r\n> example.sql\r\n```shell\r\n#!/usr/bin/env squiggle\r\nglobal.console.log(\"Hello, World!\")\r\n```\r\n\r\n\r\n```\r\n$ chmod +x example.sql\r\n$ ./example.sql\r\nHello, World!\r\n```","created_at":"2015-11-17T23:01:42Z","updated_at":"2015-11-17T23:53:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13fde1e17d6f5e6845275f95d79d078d17d96673","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wavebeem/squiggle/pulls/113/commits","review_comments_url":"https://api.github.com/repos/wavebeem/squiggle/pulls/113/comments","review_comment_url":"https://api.github.com/repos/wavebeem/squiggle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wavebeem/squiggle/issues/113/comments","statuses_url":"https://api.github.com/repos/wavebeem/squiggle/statuses/4613a4ff0273bafe088f7a0014d9aa7c4ea7c2e2","head":{"label":"noahmorrison:execute-scripts","ref":"execute-scripts","sha":"4613a4ff0273bafe088f7a0014d9aa7c4ea7c2e2","user":{"login":"noahmorrison","id":7417485,"avatar_url":"https://avatars.githubusercontent.com/u/7417485?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmorrison","html_url":"https://github.com/noahmorrison","followers_url":"https://api.github.com/users/noahmorrison/followers","following_url":"https://api.github.com/users/noahmorrison/following{/other_user}","gists_url":"https://api.github.com/users/noahmorrison/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmorrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmorrison/subscriptions","organizations_url":"https://api.github.com/users/noahmorrison/orgs","repos_url":"https://api.github.com/users/noahmorrison/repos","events_url":"https://api.github.com/users/noahmorrison/events{/privacy}","received_events_url":"https://api.github.com/users/noahmorrison/received_events","type":"User","site_admin":false},"repo":{"id":45945837,"name":"squiggle","full_name":"noahmorrison/squiggle","owner":{"login":"noahmorrison","id":7417485,"avatar_url":"https://avatars.githubusercontent.com/u/7417485?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmorrison","html_url":"https://github.com/noahmorrison","followers_url":"https://api.github.com/users/noahmorrison/followers","following_url":"https://api.github.com/users/noahmorrison/following{/other_user}","gists_url":"https://api.github.com/users/noahmorrison/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmorrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmorrison/subscriptions","organizations_url":"https://api.github.com/users/noahmorrison/orgs","repos_url":"https://api.github.com/users/noahmorrison/repos","events_url":"https://api.github.com/users/noahmorrison/events{/privacy}","received_events_url":"https://api.github.com/users/noahmorrison/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/noahmorrison/squiggle","description":"An experimental programming language","fork":true,"url":"https://api.github.com/repos/noahmorrison/squiggle","forks_url":"https://api.github.com/repos/noahmorrison/squiggle/forks","keys_url":"https://api.github.com/repos/noahmorrison/squiggle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noahmorrison/squiggle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noahmorrison/squiggle/teams","hooks_url":"https://api.github.com/repos/noahmorrison/squiggle/hooks","issue_events_url":"https://api.github.com/repos/noahmorrison/squiggle/issues/events{/number}","events_url":"https://api.github.com/repos/noahmorrison/squiggle/events","assignees_url":"https://api.github.com/repos/noahmorrison/squiggle/assignees{/user}","branches_url":"https://api.github.com/repos/noahmorrison/squiggle/branches{/branch}","tags_url":"https://api.github.com/repos/noahmorrison/squiggle/tags","blobs_url":"https://api.github.com/repos/noahmorrison/squiggle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noahmorrison/squiggle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noahmorrison/squiggle/git/refs{/sha}","trees_url":"https://api.github.com/repos/noahmorrison/squiggle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noahmorrison/squiggle/statuses/{sha}","languages_url":"https://api.github.com/repos/noahmorrison/squiggle/languages","stargazers_url":"https://api.github.com/repos/noahmorrison/squiggle/stargazers","contributors_url":"https://api.github.com/repos/noahmorrison/squiggle/contributors","subscribers_url":"https://api.github.com/repos/noahmorrison/squiggle/subscribers","subscription_url":"https://api.github.com/repos/noahmorrison/squiggle/subscription","commits_url":"https://api.github.com/repos/noahmorrison/squiggle/commits{/sha}","git_commits_url":"https://api.github.com/repos/noahmorrison/squiggle/git/commits{/sha}","comments_url":"https://api.github.com/repos/noahmorrison/squiggle/comments{/number}","issue_comment_url":"https://api.github.com/repos/noahmorrison/squiggle/issues/comments{/number}","contents_url":"https://api.github.com/repos/noahmorrison/squiggle/contents/{+path}","compare_url":"https://api.github.com/repos/noahmorrison/squiggle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noahmorrison/squiggle/merges","archive_url":"https://api.github.com/repos/noahmorrison/squiggle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noahmorrison/squiggle/downloads","issues_url":"https://api.github.com/repos/noahmorrison/squiggle/issues{/number}","pulls_url":"https://api.github.com/repos/noahmorrison/squiggle/pulls{/number}","milestones_url":"https://api.github.com/repos/noahmorrison/squiggle/milestones{/number}","notifications_url":"https://api.github.com/repos/noahmorrison/squiggle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noahmorrison/squiggle/labels{/name}","releases_url":"https://api.github.com/repos/noahmorrison/squiggle/releases{/id}","created_at":"2015-11-10T22:57:35Z","updated_at":"2015-11-10T22:57:36Z","pushed_at":"2015-11-17T22:57:51Z","git_url":"git://github.com/noahmorrison/squiggle.git","ssh_url":"git@github.com:noahmorrison/squiggle.git","clone_url":"https://github.com/noahmorrison/squiggle.git","svn_url":"https://github.com/noahmorrison/squiggle","homepage":null,"size":270,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"wavebeem:master","ref":"master","sha":"7eda585d50f26d00533f7f86265bfd73835c7c10","user":{"login":"wavebeem","id":176815,"avatar_url":"https://avatars.githubusercontent.com/u/176815?v=3","gravatar_id":"","url":"https://api.github.com/users/wavebeem","html_url":"https://github.com/wavebeem","followers_url":"https://api.github.com/users/wavebeem/followers","following_url":"https://api.github.com/users/wavebeem/following{/other_user}","gists_url":"https://api.github.com/users/wavebeem/gists{/gist_id}","starred_url":"https://api.github.com/users/wavebeem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wavebeem/subscriptions","organizations_url":"https://api.github.com/users/wavebeem/orgs","repos_url":"https://api.github.com/users/wavebeem/repos","events_url":"https://api.github.com/users/wavebeem/events{/privacy}","received_events_url":"https://api.github.com/users/wavebeem/received_events","type":"User","site_admin":false},"repo":{"id":37994280,"name":"squiggle","full_name":"wavebeem/squiggle","owner":{"login":"wavebeem","id":176815,"avatar_url":"https://avatars.githubusercontent.com/u/176815?v=3","gravatar_id":"","url":"https://api.github.com/users/wavebeem","html_url":"https://github.com/wavebeem","followers_url":"https://api.github.com/users/wavebeem/followers","following_url":"https://api.github.com/users/wavebeem/following{/other_user}","gists_url":"https://api.github.com/users/wavebeem/gists{/gist_id}","starred_url":"https://api.github.com/users/wavebeem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wavebeem/subscriptions","organizations_url":"https://api.github.com/users/wavebeem/orgs","repos_url":"https://api.github.com/users/wavebeem/repos","events_url":"https://api.github.com/users/wavebeem/events{/privacy}","received_events_url":"https://api.github.com/users/wavebeem/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wavebeem/squiggle","description":"An experimental programming language","fork":false,"url":"https://api.github.com/repos/wavebeem/squiggle","forks_url":"https://api.github.com/repos/wavebeem/squiggle/forks","keys_url":"https://api.github.com/repos/wavebeem/squiggle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wavebeem/squiggle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wavebeem/squiggle/teams","hooks_url":"https://api.github.com/repos/wavebeem/squiggle/hooks","issue_events_url":"https://api.github.com/repos/wavebeem/squiggle/issues/events{/number}","events_url":"https://api.github.com/repos/wavebeem/squiggle/events","assignees_url":"https://api.github.com/repos/wavebeem/squiggle/assignees{/user}","branches_url":"https://api.github.com/repos/wavebeem/squiggle/branches{/branch}","tags_url":"https://api.github.com/repos/wavebeem/squiggle/tags","blobs_url":"https://api.github.com/repos/wavebeem/squiggle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wavebeem/squiggle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wavebeem/squiggle/git/refs{/sha}","trees_url":"https://api.github.com/repos/wavebeem/squiggle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wavebeem/squiggle/statuses/{sha}","languages_url":"https://api.github.com/repos/wavebeem/squiggle/languages","stargazers_url":"https://api.github.com/repos/wavebeem/squiggle/stargazers","contributors_url":"https://api.github.com/repos/wavebeem/squiggle/contributors","subscribers_url":"https://api.github.com/repos/wavebeem/squiggle/subscribers","subscription_url":"https://api.github.com/repos/wavebeem/squiggle/subscription","commits_url":"https://api.github.com/repos/wavebeem/squiggle/commits{/sha}","git_commits_url":"https://api.github.com/repos/wavebeem/squiggle/git/commits{/sha}","comments_url":"https://api.github.com/repos/wavebeem/squiggle/comments{/number}","issue_comment_url":"https://api.github.com/repos/wavebeem/squiggle/issues/comments{/number}","contents_url":"https://api.github.com/repos/wavebeem/squiggle/contents/{+path}","compare_url":"https://api.github.com/repos/wavebeem/squiggle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wavebeem/squiggle/merges","archive_url":"https://api.github.com/repos/wavebeem/squiggle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wavebeem/squiggle/downloads","issues_url":"https://api.github.com/repos/wavebeem/squiggle/issues{/number}","pulls_url":"https://api.github.com/repos/wavebeem/squiggle/pulls{/number}","milestones_url":"https://api.github.com/repos/wavebeem/squiggle/milestones{/number}","notifications_url":"https://api.github.com/repos/wavebeem/squiggle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wavebeem/squiggle/labels{/name}","releases_url":"https://api.github.com/repos/wavebeem/squiggle/releases{/id}","created_at":"2015-06-24T15:46:36Z","updated_at":"2015-11-12T01:51:28Z","pushed_at":"2015-11-17T23:01:43Z","git_url":"git://github.com/wavebeem/squiggle.git","ssh_url":"git@github.com:wavebeem/squiggle.git","clone_url":"https://github.com/wavebeem/squiggle.git","svn_url":"https://github.com/wavebeem/squiggle","homepage":null,"size":761,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":14,"forks":4,"open_issues":14,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wavebeem/squiggle/pulls/113"},"html":{"href":"https://github.com/wavebeem/squiggle/pull/113"},"issue":{"href":"https://api.github.com/repos/wavebeem/squiggle/issues/113"},"comments":{"href":"https://api.github.com/repos/wavebeem/squiggle/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/wavebeem/squiggle/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/wavebeem/squiggle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wavebeem/squiggle/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/wavebeem/squiggle/statuses/4613a4ff0273bafe088f7a0014d9aa7c4ea7c2e2"}}}}