{"action":"opened","number":295,"pull_request":{"url":"https://api.github.com/repos/bitwalker/exrm/pulls/295","id":59595561,"html_url":"https://github.com/bitwalker/exrm/pull/295","diff_url":"https://github.com/bitwalker/exrm/pull/295.diff","patch_url":"https://github.com/bitwalker/exrm/pull/295.patch","issue_url":"https://api.github.com/repos/bitwalker/exrm/issues/295","number":295,"state":"open","locked":false,"title":"modify `priv/rel/files/boot` so it can run elixir in command-line mode.","user":{"login":"vadim-moz","id":9726922,"avatar_url":"https://avatars.githubusercontent.com/u/9726922?v=3","gravatar_id":"","url":"https://api.github.com/users/vadim-moz","html_url":"https://github.com/vadim-moz","followers_url":"https://api.github.com/users/vadim-moz/followers","following_url":"https://api.github.com/users/vadim-moz/following{/other_user}","gists_url":"https://api.github.com/users/vadim-moz/gists{/gist_id}","starred_url":"https://api.github.com/users/vadim-moz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadim-moz/subscriptions","organizations_url":"https://api.github.com/users/vadim-moz/orgs","repos_url":"https://api.github.com/users/vadim-moz/repos","events_url":"https://api.github.com/users/vadim-moz/events{/privacy}","received_events_url":"https://api.github.com/users/vadim-moz/received_events","type":"User","site_admin":false},"body":"With this change, assuming that we have `hello_cli.ex` in the project `test_cli` with following content:\r\n\r\n```ex\r\ndefmodule HelloCli do\r\n  @spec main() :: no_return\r\n  def main() do\r\n    # print greeting\r\n    IO.puts \"HelloCli.main() is running\"\r\n\r\n    # print command-line args\r\n    :init.get_plain_arguments()\r\n    |> Enum.map(&String.Chars.to_string/1)\r\n    |> Enum.each(&IO.puts/1)\r\n\r\n    # set exit code to 4\r\n    System.halt(4)\r\n  end\r\nend\r\n```\r\n\r\nWe can release it, and then run \r\n\r\n```bash\r\nbin/test_cli command Elixir.HelloCli main foo bar baz\r\n```\r\n\r\nThe command above prints:\r\n```\r\nUsing /home/vadim/moz/ex/test/rel/test/releases/0.0.1/test.sh\r\nHelloCli.main() is running\r\nfoo\r\nbar\r\nbaz\r\n```\r\n","created_at":"2016-02-17T04:38:45Z","updated_at":"2016-02-17T04:38:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bitwalker/exrm/pulls/295/commits","review_comments_url":"https://api.github.com/repos/bitwalker/exrm/pulls/295/comments","review_comment_url":"https://api.github.com/repos/bitwalker/exrm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitwalker/exrm/issues/295/comments","statuses_url":"https://api.github.com/repos/bitwalker/exrm/statuses/bb6ef1e7f9f44c403bb2d5631d9380b96f44deda","head":{"label":"vadim-moz:vadim/command-line-interface","ref":"vadim/command-line-interface","sha":"bb6ef1e7f9f44c403bb2d5631d9380b96f44deda","user":{"login":"vadim-moz","id":9726922,"avatar_url":"https://avatars.githubusercontent.com/u/9726922?v=3","gravatar_id":"","url":"https://api.github.com/users/vadim-moz","html_url":"https://github.com/vadim-moz","followers_url":"https://api.github.com/users/vadim-moz/followers","following_url":"https://api.github.com/users/vadim-moz/following{/other_user}","gists_url":"https://api.github.com/users/vadim-moz/gists{/gist_id}","starred_url":"https://api.github.com/users/vadim-moz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadim-moz/subscriptions","organizations_url":"https://api.github.com/users/vadim-moz/orgs","repos_url":"https://api.github.com/users/vadim-moz/repos","events_url":"https://api.github.com/users/vadim-moz/events{/privacy}","received_events_url":"https://api.github.com/users/vadim-moz/received_events","type":"User","site_admin":false},"repo":{"id":49034824,"name":"exrm","full_name":"vadim-moz/exrm","owner":{"login":"vadim-moz","id":9726922,"avatar_url":"https://avatars.githubusercontent.com/u/9726922?v=3","gravatar_id":"","url":"https://api.github.com/users/vadim-moz","html_url":"https://github.com/vadim-moz","followers_url":"https://api.github.com/users/vadim-moz/followers","following_url":"https://api.github.com/users/vadim-moz/following{/other_user}","gists_url":"https://api.github.com/users/vadim-moz/gists{/gist_id}","starred_url":"https://api.github.com/users/vadim-moz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadim-moz/subscriptions","organizations_url":"https://api.github.com/users/vadim-moz/orgs","repos_url":"https://api.github.com/users/vadim-moz/repos","events_url":"https://api.github.com/users/vadim-moz/events{/privacy}","received_events_url":"https://api.github.com/users/vadim-moz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vadim-moz/exrm","description":"Automatically generate a release for your Elixir project!","fork":true,"url":"https://api.github.com/repos/vadim-moz/exrm","forks_url":"https://api.github.com/repos/vadim-moz/exrm/forks","keys_url":"https://api.github.com/repos/vadim-moz/exrm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vadim-moz/exrm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vadim-moz/exrm/teams","hooks_url":"https://api.github.com/repos/vadim-moz/exrm/hooks","issue_events_url":"https://api.github.com/repos/vadim-moz/exrm/issues/events{/number}","events_url":"https://api.github.com/repos/vadim-moz/exrm/events","assignees_url":"https://api.github.com/repos/vadim-moz/exrm/assignees{/user}","branches_url":"https://api.github.com/repos/vadim-moz/exrm/branches{/branch}","tags_url":"https://api.github.com/repos/vadim-moz/exrm/tags","blobs_url":"https://api.github.com/repos/vadim-moz/exrm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vadim-moz/exrm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vadim-moz/exrm/git/refs{/sha}","trees_url":"https://api.github.com/repos/vadim-moz/exrm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vadim-moz/exrm/statuses/{sha}","languages_url":"https://api.github.com/repos/vadim-moz/exrm/languages","stargazers_url":"https://api.github.com/repos/vadim-moz/exrm/stargazers","contributors_url":"https://api.github.com/repos/vadim-moz/exrm/contributors","subscribers_url":"https://api.github.com/repos/vadim-moz/exrm/subscribers","subscription_url":"https://api.github.com/repos/vadim-moz/exrm/subscription","commits_url":"https://api.github.com/repos/vadim-moz/exrm/commits{/sha}","git_commits_url":"https://api.github.com/repos/vadim-moz/exrm/git/commits{/sha}","comments_url":"https://api.github.com/repos/vadim-moz/exrm/comments{/number}","issue_comment_url":"https://api.github.com/repos/vadim-moz/exrm/issues/comments{/number}","contents_url":"https://api.github.com/repos/vadim-moz/exrm/contents/{+path}","compare_url":"https://api.github.com/repos/vadim-moz/exrm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vadim-moz/exrm/merges","archive_url":"https://api.github.com/repos/vadim-moz/exrm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vadim-moz/exrm/downloads","issues_url":"https://api.github.com/repos/vadim-moz/exrm/issues{/number}","pulls_url":"https://api.github.com/repos/vadim-moz/exrm/pulls{/number}","milestones_url":"https://api.github.com/repos/vadim-moz/exrm/milestones{/number}","notifications_url":"https://api.github.com/repos/vadim-moz/exrm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vadim-moz/exrm/labels{/name}","releases_url":"https://api.github.com/repos/vadim-moz/exrm/releases{/id}","deployments_url":"https://api.github.com/repos/vadim-moz/exrm/deployments","created_at":"2016-01-05T01:47:56Z","updated_at":"2016-01-18T03:26:13Z","pushed_at":"2016-02-17T04:38:27Z","git_url":"git://github.com/vadim-moz/exrm.git","ssh_url":"git@github.com:vadim-moz/exrm.git","clone_url":"https://github.com/vadim-moz/exrm.git","svn_url":"https://github.com/vadim-moz/exrm","homepage":null,"size":3856,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"bitwalker:master","ref":"master","sha":"864d9bf00680d01e256e1dbfac09f87093d45d47","user":{"login":"bitwalker","id":955793,"avatar_url":"https://avatars.githubusercontent.com/u/955793?v=3","gravatar_id":"","url":"https://api.github.com/users/bitwalker","html_url":"https://github.com/bitwalker","followers_url":"https://api.github.com/users/bitwalker/followers","following_url":"https://api.github.com/users/bitwalker/following{/other_user}","gists_url":"https://api.github.com/users/bitwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/bitwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitwalker/subscriptions","organizations_url":"https://api.github.com/users/bitwalker/orgs","repos_url":"https://api.github.com/users/bitwalker/repos","events_url":"https://api.github.com/users/bitwalker/events{/privacy}","received_events_url":"https://api.github.com/users/bitwalker/received_events","type":"User","site_admin":false},"repo":{"id":17639457,"name":"exrm","full_name":"bitwalker/exrm","owner":{"login":"bitwalker","id":955793,"avatar_url":"https://avatars.githubusercontent.com/u/955793?v=3","gravatar_id":"","url":"https://api.github.com/users/bitwalker","html_url":"https://github.com/bitwalker","followers_url":"https://api.github.com/users/bitwalker/followers","following_url":"https://api.github.com/users/bitwalker/following{/other_user}","gists_url":"https://api.github.com/users/bitwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/bitwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitwalker/subscriptions","organizations_url":"https://api.github.com/users/bitwalker/orgs","repos_url":"https://api.github.com/users/bitwalker/repos","events_url":"https://api.github.com/users/bitwalker/events{/privacy}","received_events_url":"https://api.github.com/users/bitwalker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bitwalker/exrm","description":"Automatically generate a release for your Elixir project!","fork":false,"url":"https://api.github.com/repos/bitwalker/exrm","forks_url":"https://api.github.com/repos/bitwalker/exrm/forks","keys_url":"https://api.github.com/repos/bitwalker/exrm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitwalker/exrm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitwalker/exrm/teams","hooks_url":"https://api.github.com/repos/bitwalker/exrm/hooks","issue_events_url":"https://api.github.com/repos/bitwalker/exrm/issues/events{/number}","events_url":"https://api.github.com/repos/bitwalker/exrm/events","assignees_url":"https://api.github.com/repos/bitwalker/exrm/assignees{/user}","branches_url":"https://api.github.com/repos/bitwalker/exrm/branches{/branch}","tags_url":"https://api.github.com/repos/bitwalker/exrm/tags","blobs_url":"https://api.github.com/repos/bitwalker/exrm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitwalker/exrm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitwalker/exrm/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitwalker/exrm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitwalker/exrm/statuses/{sha}","languages_url":"https://api.github.com/repos/bitwalker/exrm/languages","stargazers_url":"https://api.github.com/repos/bitwalker/exrm/stargazers","contributors_url":"https://api.github.com/repos/bitwalker/exrm/contributors","subscribers_url":"https://api.github.com/repos/bitwalker/exrm/subscribers","subscription_url":"https://api.github.com/repos/bitwalker/exrm/subscription","commits_url":"https://api.github.com/repos/bitwalker/exrm/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitwalker/exrm/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitwalker/exrm/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitwalker/exrm/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitwalker/exrm/contents/{+path}","compare_url":"https://api.github.com/repos/bitwalker/exrm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitwalker/exrm/merges","archive_url":"https://api.github.com/repos/bitwalker/exrm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitwalker/exrm/downloads","issues_url":"https://api.github.com/repos/bitwalker/exrm/issues{/number}","pulls_url":"https://api.github.com/repos/bitwalker/exrm/pulls{/number}","milestones_url":"https://api.github.com/repos/bitwalker/exrm/milestones{/number}","notifications_url":"https://api.github.com/repos/bitwalker/exrm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitwalker/exrm/labels{/name}","releases_url":"https://api.github.com/repos/bitwalker/exrm/releases{/id}","deployments_url":"https://api.github.com/repos/bitwalker/exrm/deployments","created_at":"2014-03-11T17:24:17Z","updated_at":"2016-02-17T00:09:23Z","pushed_at":"2016-02-15T17:42:37Z","git_url":"git://github.com/bitwalker/exrm.git","ssh_url":"git@github.com:bitwalker/exrm.git","clone_url":"https://github.com/bitwalker/exrm.git","svn_url":"https://github.com/bitwalker/exrm","homepage":null,"size":3910,"stargazers_count":525,"watchers_count":525,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":39,"forks":82,"open_issues":39,"watchers":525,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitwalker/exrm/pulls/295"},"html":{"href":"https://github.com/bitwalker/exrm/pull/295"},"issue":{"href":"https://api.github.com/repos/bitwalker/exrm/issues/295"},"comments":{"href":"https://api.github.com/repos/bitwalker/exrm/issues/295/comments"},"review_comments":{"href":"https://api.github.com/repos/bitwalker/exrm/pulls/295/comments"},"review_comment":{"href":"https://api.github.com/repos/bitwalker/exrm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitwalker/exrm/pulls/295/commits"},"statuses":{"href":"https://api.github.com/repos/bitwalker/exrm/statuses/bb6ef1e7f9f44c403bb2d5631d9380b96f44deda"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":27,"deletions":1,"changed_files":1}}