{"action":"created","comment":{"url":"https://api.github.com/repos/appc/acbuild/pulls/comments/67703205","id":67703205,"diff_hunk":"@@ -239,6 +244,12 @@ func runWrapper(cf func(cmd *cobra.Command, args []string) (exit int)) func(cmd\n }\n \n func main() {\n+\tif path.Base(os.Args[0]) == \"acbuild-script\" {\n+\t\tos.Args[0] = path.Join(path.Dir(os.Args[0]), \"acbuild\")\n+\t\targs := os.Args[1:]\n+\t\tos.Args = []string{os.Args[0], \"script\"}\n+\t\tos.Args = append(os.Args, args...)\n+\t}","path":"acbuild/acbuild.go","position":49,"original_position":49,"commit_id":"388700fda8afde64b1fd5c19f8c76c7cc8ff1503","original_commit_id":"388700fda8afde64b1fd5c19f8c76c7cc8ff1503","user":{"login":"lucab","id":98086,"avatar_url":"https://avatars.githubusercontent.com/u/98086?v=3","gravatar_id":"","url":"https://api.github.com/users/lucab","html_url":"https://github.com/lucab","followers_url":"https://api.github.com/users/lucab/followers","following_url":"https://api.github.com/users/lucab/following{/other_user}","gists_url":"https://api.github.com/users/lucab/gists{/gist_id}","starred_url":"https://api.github.com/users/lucab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucab/subscriptions","organizations_url":"https://api.github.com/users/lucab/orgs","repos_url":"https://api.github.com/users/lucab/repos","events_url":"https://api.github.com/users/lucab/events{/privacy}","received_events_url":"https://api.github.com/users/lucab/received_events","type":"User","site_admin":false},"body":"I think you are kind of fighting with multicall here. I was in need of something similar so I just split https://github.com/coreos/rkt/pull/2815 of my working branch. Do you think it could make things easier here?","created_at":"2016-06-20T14:51:08Z","updated_at":"2016-06-20T14:51:08Z","html_url":"https://github.com/appc/acbuild/pull/223#discussion_r67703205","pull_request_url":"https://api.github.com/repos/appc/acbuild/pulls/223","_links":{"self":{"href":"https://api.github.com/repos/appc/acbuild/pulls/comments/67703205"},"html":{"href":"https://github.com/appc/acbuild/pull/223#discussion_r67703205"},"pull_request":{"href":"https://api.github.com/repos/appc/acbuild/pulls/223"}}},"pull_request":{"url":"https://api.github.com/repos/appc/acbuild/pulls/223","id":74144612,"html_url":"https://github.com/appc/acbuild/pull/223","diff_url":"https://github.com/appc/acbuild/pull/223.diff","patch_url":"https://github.com/appc/acbuild/pull/223.patch","issue_url":"https://api.github.com/repos/appc/acbuild/issues/223","number":223,"state":"open","locked":false,"title":"*: added a script mode","user":{"login":"dgonyeo","id":2439413,"avatar_url":"https://avatars.githubusercontent.com/u/2439413?v=3","gravatar_id":"","url":"https://api.github.com/users/dgonyeo","html_url":"https://github.com/dgonyeo","followers_url":"https://api.github.com/users/dgonyeo/followers","following_url":"https://api.github.com/users/dgonyeo/following{/other_user}","gists_url":"https://api.github.com/users/dgonyeo/gists{/gist_id}","starred_url":"https://api.github.com/users/dgonyeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgonyeo/subscriptions","organizations_url":"https://api.github.com/users/dgonyeo/orgs","repos_url":"https://api.github.com/users/dgonyeo/repos","events_url":"https://api.github.com/users/dgonyeo/events{/privacy}","received_events_url":"https://api.github.com/users/dgonyeo/received_events","type":"User","site_admin":false},"body":"This commit adds a script mode to acbuild, whereby build scripts can be\r\nwritten in an acbuild DSL and then run. When acbuild is run in this way,\r\nacbuild will exec itself with the debug flag, a work-path flag, and the\r\ncontents of each line. This lives under the \"script\" subcommand, but\r\nthis subcommand will be implied if the run acbuild has the name\r\n\"acbuild-script\" (this was necessary to support /usr/bin/env shebangs).\r\nThe apache example has been rewritten to be in the acbuild DSL.\r\n\r\nWith a DSL mode various enhancements are now possible (like per-command\r\nbuild caches), but the immediate benefit is the fact that acbuild can\r\nenforce cleanup of builds that use the script mode.","created_at":"2016-06-16T20:15:40Z","updated_at":"2016-06-20T14:51:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2000cf638ff139cefe4a99059f69c8e178ceefce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/appc/acbuild/pulls/223/commits","review_comments_url":"https://api.github.com/repos/appc/acbuild/pulls/223/comments","review_comment_url":"https://api.github.com/repos/appc/acbuild/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appc/acbuild/issues/223/comments","statuses_url":"https://api.github.com/repos/appc/acbuild/statuses/388700fda8afde64b1fd5c19f8c76c7cc8ff1503","head":{"label":"dgonyeo:script-mode","ref":"script-mode","sha":"388700fda8afde64b1fd5c19f8c76c7cc8ff1503","user":{"login":"dgonyeo","id":2439413,"avatar_url":"https://avatars.githubusercontent.com/u/2439413?v=3","gravatar_id":"","url":"https://api.github.com/users/dgonyeo","html_url":"https://github.com/dgonyeo","followers_url":"https://api.github.com/users/dgonyeo/followers","following_url":"https://api.github.com/users/dgonyeo/following{/other_user}","gists_url":"https://api.github.com/users/dgonyeo/gists{/gist_id}","starred_url":"https://api.github.com/users/dgonyeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgonyeo/subscriptions","organizations_url":"https://api.github.com/users/dgonyeo/orgs","repos_url":"https://api.github.com/users/dgonyeo/repos","events_url":"https://api.github.com/users/dgonyeo/events{/privacy}","received_events_url":"https://api.github.com/users/dgonyeo/received_events","type":"User","site_admin":false},"repo":{"id":43033577,"name":"acbuild","full_name":"dgonyeo/acbuild","owner":{"login":"dgonyeo","id":2439413,"avatar_url":"https://avatars.githubusercontent.com/u/2439413?v=3","gravatar_id":"","url":"https://api.github.com/users/dgonyeo","html_url":"https://github.com/dgonyeo","followers_url":"https://api.github.com/users/dgonyeo/followers","following_url":"https://api.github.com/users/dgonyeo/following{/other_user}","gists_url":"https://api.github.com/users/dgonyeo/gists{/gist_id}","starred_url":"https://api.github.com/users/dgonyeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgonyeo/subscriptions","organizations_url":"https://api.github.com/users/dgonyeo/orgs","repos_url":"https://api.github.com/users/dgonyeo/repos","events_url":"https://api.github.com/users/dgonyeo/events{/privacy}","received_events_url":"https://api.github.com/users/dgonyeo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgonyeo/acbuild","description":"","fork":true,"url":"https://api.github.com/repos/dgonyeo/acbuild","forks_url":"https://api.github.com/repos/dgonyeo/acbuild/forks","keys_url":"https://api.github.com/repos/dgonyeo/acbuild/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgonyeo/acbuild/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgonyeo/acbuild/teams","hooks_url":"https://api.github.com/repos/dgonyeo/acbuild/hooks","issue_events_url":"https://api.github.com/repos/dgonyeo/acbuild/issues/events{/number}","events_url":"https://api.github.com/repos/dgonyeo/acbuild/events","assignees_url":"https://api.github.com/repos/dgonyeo/acbuild/assignees{/user}","branches_url":"https://api.github.com/repos/dgonyeo/acbuild/branches{/branch}","tags_url":"https://api.github.com/repos/dgonyeo/acbuild/tags","blobs_url":"https://api.github.com/repos/dgonyeo/acbuild/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgonyeo/acbuild/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgonyeo/acbuild/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgonyeo/acbuild/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgonyeo/acbuild/statuses/{sha}","languages_url":"https://api.github.com/repos/dgonyeo/acbuild/languages","stargazers_url":"https://api.github.com/repos/dgonyeo/acbuild/stargazers","contributors_url":"https://api.github.com/repos/dgonyeo/acbuild/contributors","subscribers_url":"https://api.github.com/repos/dgonyeo/acbuild/subscribers","subscription_url":"https://api.github.com/repos/dgonyeo/acbuild/subscription","commits_url":"https://api.github.com/repos/dgonyeo/acbuild/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgonyeo/acbuild/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgonyeo/acbuild/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgonyeo/acbuild/issues/comments{/number}","contents_url":"https://api.github.com/repos/dgonyeo/acbuild/contents/{+path}","compare_url":"https://api.github.com/repos/dgonyeo/acbuild/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgonyeo/acbuild/merges","archive_url":"https://api.github.com/repos/dgonyeo/acbuild/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgonyeo/acbuild/downloads","issues_url":"https://api.github.com/repos/dgonyeo/acbuild/issues{/number}","pulls_url":"https://api.github.com/repos/dgonyeo/acbuild/pulls{/number}","milestones_url":"https://api.github.com/repos/dgonyeo/acbuild/milestones{/number}","notifications_url":"https://api.github.com/repos/dgonyeo/acbuild/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgonyeo/acbuild/labels{/name}","releases_url":"https://api.github.com/repos/dgonyeo/acbuild/releases{/id}","deployments_url":"https://api.github.com/repos/dgonyeo/acbuild/deployments","created_at":"2015-09-23T23:49:57Z","updated_at":"2016-03-23T00:25:23Z","pushed_at":"2016-06-17T23:50:15Z","git_url":"git://github.com/dgonyeo/acbuild.git","ssh_url":"git@github.com:dgonyeo/acbuild.git","clone_url":"https://github.com/dgonyeo/acbuild.git","svn_url":"https://github.com/dgonyeo/acbuild","homepage":null,"size":2777,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"appc:master","ref":"master","sha":"cba4faef986efdd138473a6970681cac55eb57d8","user":{"login":"appc","id":10080092,"avatar_url":"https://avatars.githubusercontent.com/u/10080092?v=3","gravatar_id":"","url":"https://api.github.com/users/appc","html_url":"https://github.com/appc","followers_url":"https://api.github.com/users/appc/followers","following_url":"https://api.github.com/users/appc/following{/other_user}","gists_url":"https://api.github.com/users/appc/gists{/gist_id}","starred_url":"https://api.github.com/users/appc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appc/subscriptions","organizations_url":"https://api.github.com/users/appc/orgs","repos_url":"https://api.github.com/users/appc/repos","events_url":"https://api.github.com/users/appc/events{/privacy}","received_events_url":"https://api.github.com/users/appc/received_events","type":"Organization","site_admin":false},"repo":{"id":36900260,"name":"acbuild","full_name":"appc/acbuild","owner":{"login":"appc","id":10080092,"avatar_url":"https://avatars.githubusercontent.com/u/10080092?v=3","gravatar_id":"","url":"https://api.github.com/users/appc","html_url":"https://github.com/appc","followers_url":"https://api.github.com/users/appc/followers","following_url":"https://api.github.com/users/appc/following{/other_user}","gists_url":"https://api.github.com/users/appc/gists{/gist_id}","starred_url":"https://api.github.com/users/appc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appc/subscriptions","organizations_url":"https://api.github.com/users/appc/orgs","repos_url":"https://api.github.com/users/appc/repos","events_url":"https://api.github.com/users/appc/events{/privacy}","received_events_url":"https://api.github.com/users/appc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appc/acbuild","description":"a build tool for ACIs","fork":false,"url":"https://api.github.com/repos/appc/acbuild","forks_url":"https://api.github.com/repos/appc/acbuild/forks","keys_url":"https://api.github.com/repos/appc/acbuild/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appc/acbuild/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appc/acbuild/teams","hooks_url":"https://api.github.com/repos/appc/acbuild/hooks","issue_events_url":"https://api.github.com/repos/appc/acbuild/issues/events{/number}","events_url":"https://api.github.com/repos/appc/acbuild/events","assignees_url":"https://api.github.com/repos/appc/acbuild/assignees{/user}","branches_url":"https://api.github.com/repos/appc/acbuild/branches{/branch}","tags_url":"https://api.github.com/repos/appc/acbuild/tags","blobs_url":"https://api.github.com/repos/appc/acbuild/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appc/acbuild/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appc/acbuild/git/refs{/sha}","trees_url":"https://api.github.com/repos/appc/acbuild/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appc/acbuild/statuses/{sha}","languages_url":"https://api.github.com/repos/appc/acbuild/languages","stargazers_url":"https://api.github.com/repos/appc/acbuild/stargazers","contributors_url":"https://api.github.com/repos/appc/acbuild/contributors","subscribers_url":"https://api.github.com/repos/appc/acbuild/subscribers","subscription_url":"https://api.github.com/repos/appc/acbuild/subscription","commits_url":"https://api.github.com/repos/appc/acbuild/commits{/sha}","git_commits_url":"https://api.github.com/repos/appc/acbuild/git/commits{/sha}","comments_url":"https://api.github.com/repos/appc/acbuild/comments{/number}","issue_comment_url":"https://api.github.com/repos/appc/acbuild/issues/comments{/number}","contents_url":"https://api.github.com/repos/appc/acbuild/contents/{+path}","compare_url":"https://api.github.com/repos/appc/acbuild/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appc/acbuild/merges","archive_url":"https://api.github.com/repos/appc/acbuild/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appc/acbuild/downloads","issues_url":"https://api.github.com/repos/appc/acbuild/issues{/number}","pulls_url":"https://api.github.com/repos/appc/acbuild/pulls{/number}","milestones_url":"https://api.github.com/repos/appc/acbuild/milestones{/number}","notifications_url":"https://api.github.com/repos/appc/acbuild/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appc/acbuild/labels{/name}","releases_url":"https://api.github.com/repos/appc/acbuild/releases{/id}","deployments_url":"https://api.github.com/repos/appc/acbuild/deployments","created_at":"2015-06-04T23:02:32Z","updated_at":"2016-06-10T19:26:22Z","pushed_at":"2016-06-18T16:45:02Z","git_url":"git://github.com/appc/acbuild.git","ssh_url":"git@github.com:appc/acbuild.git","clone_url":"https://github.com/appc/acbuild.git","svn_url":"https://github.com/appc/acbuild","homepage":"","size":6086,"stargazers_count":132,"watchers_count":132,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":32,"forks":37,"open_issues":32,"watchers":132,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appc/acbuild/pulls/223"},"html":{"href":"https://github.com/appc/acbuild/pull/223"},"issue":{"href":"https://api.github.com/repos/appc/acbuild/issues/223"},"comments":{"href":"https://api.github.com/repos/appc/acbuild/issues/223/comments"},"review_comments":{"href":"https://api.github.com/repos/appc/acbuild/pulls/223/comments"},"review_comment":{"href":"https://api.github.com/repos/appc/acbuild/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appc/acbuild/pulls/223/commits"},"statuses":{"href":"https://api.github.com/repos/appc/acbuild/statuses/388700fda8afde64b1fd5c19f8c76c7cc8ff1503"}}}}
{"actor":{"display_login":"lucab"}}