{"action":"created","comment":{"url":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/comments/36819595","id":36819595,"diff_hunk":"@@ -4,7 +4,44 @@ set -o errexit -o pipefail\n \n usage()\n { # Show usage information.\n-  echo \"$(basename \"$(test -L \"$0\" && readlink \"$0\" || echo \"$0\")\") <installation-path> <dcos-url>\"\n+  echo \"$(basename \"$(test -L \"$0\" && readlink \"$0\" || echo \"$0\")\") <installation-path> <dcos-url> [--add-path yes/no]\"\n+}\n+\n+post_install_message()\n+{\n+    echo 'Finished installing and configuring DCOS CLI.'\n+    echo ''\n+    echo 'Run this command to set up your environment and to get started:'\n+    echo \"source $1 && dcos help\"\n+}\n+\n+RC_NAME=\"\"\n+\n+add_dcos_path_to_profile()\n+{\n+    UNAME=`uname`\n+    case \"$UNAME\" in\n+        Linux ) RC_NAME=\".bashrc\";;\n+        Darwin ) RC_NAME=\".bash_profile\";;\n+        CYGWIN* ) RC_NAME=\".bashrc\";;\n+        MINGW* ) RC_NAME=\".profile\";;\n+        * ) RC_NAME=\".bashrc\";;\n+    esac\n+    echo \"\" >> ~/\"$RC_NAME\"\n+    echo \"# add the path to the DCOS binary to your bash profile\" >> ~/\"$RC_NAME\"\n+    echo \"export PATH=$1:\\$PATH\" >> ~/\"$RC_NAME\"","path":"bin/install/install-dcos-cli.sh","position":30,"original_position":30,"commit_id":"58a27e7a460550e9cd4883636f4553357ea67b3e","original_commit_id":"58a27e7a460550e9cd4883636f4553357ea67b3e","user":{"login":"ssk2","id":355705,"avatar_url":"https://avatars.githubusercontent.com/u/355705?v=3","gravatar_id":"","url":"https://api.github.com/users/ssk2","html_url":"https://github.com/ssk2","followers_url":"https://api.github.com/users/ssk2/followers","following_url":"https://api.github.com/users/ssk2/following{/other_user}","gists_url":"https://api.github.com/users/ssk2/gists{/gist_id}","starred_url":"https://api.github.com/users/ssk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssk2/subscriptions","organizations_url":"https://api.github.com/users/ssk2/orgs","repos_url":"https://api.github.com/users/ssk2/repos","events_url":"https://api.github.com/users/ssk2/events{/privacy}","received_events_url":"https://api.github.com/users/ssk2/received_events","type":"User","site_admin":false},"body":"An example:\r\n```\r\nvagrant@mesos:~/dcos-cli/bin$ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/vagrant/dcos-cli/bin\r\nvagrant@mesos:~/dcos-cli/bin$ which python\r\n/usr/bin/python\r\nvagrant@mesos:~/dcos-cli/bin$ PATH=/home/vagrant/dcos-cli/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games\r\nvagrant@mesos:~/dcos-cli/bin$ which python\r\n/home/vagrant/dcos-cli/bin/python\r\n```","created_at":"2015-08-12T01:35:39Z","updated_at":"2015-08-12T01:35:39Z","html_url":"https://github.com/mesosphere/dcos-cli/pull/265#discussion_r36819595","pull_request_url":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/265","_links":{"self":{"href":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/comments/36819595"},"html":{"href":"https://github.com/mesosphere/dcos-cli/pull/265#discussion_r36819595"},"pull_request":{"href":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/265"}}},"pull_request":{"url":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/265","id":39573253,"html_url":"https://github.com/mesosphere/dcos-cli/pull/265","diff_url":"https://github.com/mesosphere/dcos-cli/pull/265.diff","patch_url":"https://github.com/mesosphere/dcos-cli/pull/265.patch","issue_url":"https://api.github.com/repos/mesosphere/dcos-cli/issues/265","number":265,"state":"open","locked":false,"title":"[ADD] DCOS-993 Install script functionality to optionally add dcos to path","user":{"login":"ytalashkocv","id":8393633,"avatar_url":"https://avatars.githubusercontent.com/u/8393633?v=3","gravatar_id":"","url":"https://api.github.com/users/ytalashkocv","html_url":"https://github.com/ytalashkocv","followers_url":"https://api.github.com/users/ytalashkocv/followers","following_url":"https://api.github.com/users/ytalashkocv/following{/other_user}","gists_url":"https://api.github.com/users/ytalashkocv/gists{/gist_id}","starred_url":"https://api.github.com/users/ytalashkocv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytalashkocv/subscriptions","organizations_url":"https://api.github.com/users/ytalashkocv/orgs","repos_url":"https://api.github.com/users/ytalashkocv/repos","events_url":"https://api.github.com/users/ytalashkocv/events{/privacy}","received_events_url":"https://api.github.com/users/ytalashkocv/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-09T11:32:12Z","updated_at":"2015-08-12T01:35:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b989b13eff57c9f45310c1c5eb1433fe0ffc011d","assignee":{"login":"ssk2","id":355705,"avatar_url":"https://avatars.githubusercontent.com/u/355705?v=3","gravatar_id":"","url":"https://api.github.com/users/ssk2","html_url":"https://github.com/ssk2","followers_url":"https://api.github.com/users/ssk2/followers","following_url":"https://api.github.com/users/ssk2/following{/other_user}","gists_url":"https://api.github.com/users/ssk2/gists{/gist_id}","starred_url":"https://api.github.com/users/ssk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssk2/subscriptions","organizations_url":"https://api.github.com/users/ssk2/orgs","repos_url":"https://api.github.com/users/ssk2/repos","events_url":"https://api.github.com/users/ssk2/events{/privacy}","received_events_url":"https://api.github.com/users/ssk2/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/265/commits","review_comments_url":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/265/comments","review_comment_url":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mesosphere/dcos-cli/issues/265/comments","statuses_url":"https://api.github.com/repos/mesosphere/dcos-cli/statuses/58a27e7a460550e9cd4883636f4553357ea67b3e","head":{"label":"mesosphere:dcos-993","ref":"dcos-993","sha":"58a27e7a460550e9cd4883636f4553357ea67b3e","user":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":26653348,"name":"dcos-cli","full_name":"mesosphere/dcos-cli","owner":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesosphere/dcos-cli","description":"The command line for your datacenter! ","fork":false,"url":"https://api.github.com/repos/mesosphere/dcos-cli","forks_url":"https://api.github.com/repos/mesosphere/dcos-cli/forks","keys_url":"https://api.github.com/repos/mesosphere/dcos-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/dcos-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/dcos-cli/teams","hooks_url":"https://api.github.com/repos/mesosphere/dcos-cli/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/dcos-cli/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/dcos-cli/events","assignees_url":"https://api.github.com/repos/mesosphere/dcos-cli/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/dcos-cli/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/dcos-cli/tags","blobs_url":"https://api.github.com/repos/mesosphere/dcos-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/dcos-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/dcos-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/dcos-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/dcos-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/dcos-cli/languages","stargazers_url":"https://api.github.com/repos/mesosphere/dcos-cli/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/dcos-cli/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/dcos-cli/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/dcos-cli/subscription","commits_url":"https://api.github.com/repos/mesosphere/dcos-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/dcos-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/dcos-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/dcos-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesosphere/dcos-cli/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/dcos-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/dcos-cli/merges","archive_url":"https://api.github.com/repos/mesosphere/dcos-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/dcos-cli/downloads","issues_url":"https://api.github.com/repos/mesosphere/dcos-cli/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/dcos-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/dcos-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/dcos-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/dcos-cli/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/dcos-cli/releases{/id}","created_at":"2014-11-14T19:11:48Z","updated_at":"2015-08-12T00:53:03Z","pushed_at":"2015-08-12T01:01:26Z","git_url":"git://github.com/mesosphere/dcos-cli.git","ssh_url":"git@github.com:mesosphere/dcos-cli.git","clone_url":"https://github.com/mesosphere/dcos-cli.git","svn_url":"https://github.com/mesosphere/dcos-cli","homepage":"http://docs.mesosphere.com/using/cli/","size":6825,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":17,"forks":7,"open_issues":17,"watchers":29,"default_branch":"master"}},"base":{"label":"mesosphere:master","ref":"master","sha":"59274965d38c050eaaacd75cab7348ae02b14da3","user":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":26653348,"name":"dcos-cli","full_name":"mesosphere/dcos-cli","owner":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesosphere/dcos-cli","description":"The command line for your datacenter! ","fork":false,"url":"https://api.github.com/repos/mesosphere/dcos-cli","forks_url":"https://api.github.com/repos/mesosphere/dcos-cli/forks","keys_url":"https://api.github.com/repos/mesosphere/dcos-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/dcos-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/dcos-cli/teams","hooks_url":"https://api.github.com/repos/mesosphere/dcos-cli/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/dcos-cli/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/dcos-cli/events","assignees_url":"https://api.github.com/repos/mesosphere/dcos-cli/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/dcos-cli/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/dcos-cli/tags","blobs_url":"https://api.github.com/repos/mesosphere/dcos-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/dcos-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/dcos-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/dcos-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/dcos-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/dcos-cli/languages","stargazers_url":"https://api.github.com/repos/mesosphere/dcos-cli/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/dcos-cli/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/dcos-cli/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/dcos-cli/subscription","commits_url":"https://api.github.com/repos/mesosphere/dcos-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/dcos-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/dcos-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/dcos-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesosphere/dcos-cli/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/dcos-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/dcos-cli/merges","archive_url":"https://api.github.com/repos/mesosphere/dcos-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/dcos-cli/downloads","issues_url":"https://api.github.com/repos/mesosphere/dcos-cli/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/dcos-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/dcos-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/dcos-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/dcos-cli/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/dcos-cli/releases{/id}","created_at":"2014-11-14T19:11:48Z","updated_at":"2015-08-12T00:53:03Z","pushed_at":"2015-08-12T01:01:26Z","git_url":"git://github.com/mesosphere/dcos-cli.git","ssh_url":"git@github.com:mesosphere/dcos-cli.git","clone_url":"https://github.com/mesosphere/dcos-cli.git","svn_url":"https://github.com/mesosphere/dcos-cli","homepage":"http://docs.mesosphere.com/using/cli/","size":6825,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":17,"forks":7,"open_issues":17,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/265"},"html":{"href":"https://github.com/mesosphere/dcos-cli/pull/265"},"issue":{"href":"https://api.github.com/repos/mesosphere/dcos-cli/issues/265"},"comments":{"href":"https://api.github.com/repos/mesosphere/dcos-cli/issues/265/comments"},"review_comments":{"href":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/265/comments"},"review_comment":{"href":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mesosphere/dcos-cli/pulls/265/commits"},"statuses":{"href":"https://api.github.com/repos/mesosphere/dcos-cli/statuses/58a27e7a460550e9cd4883636f4553357ea67b3e"}}}}