{"action":"created","comment":{"url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/comments/63408781","id":63408781,"diff_hunk":"@@ -0,0 +1,67 @@\n+#!/usr/bin/env python\n+import argparse\n+import json\n+import os\n+import sys\n+\n+from docker import Client\n+import docker\n+\n+container_name = 'kubostech/kubos-sdk'\n+\n+def main():\n+\tparser = argparse.ArgumentParser('kubos-host script for Kubos SDK')\n+\tparser.add_argument('--update', action='store_true', help='pull latest sdk container')\n+\targs, unknown_args = parser.parse_known_args()\n+\n+\tif args.update:\n+\t\tupdate()\n+\telif unknown_args:\n+\t\tpass_through(*unknown_args)\n+\telse:\n+\t\tparser.print_help()\n+\t\tpass_through('--help')\n+\n+def update(cli):\n+\tprint \"updating\"","path":"kubos.py","position":26,"original_position":26,"commit_id":"32b36c77cf5a9c5e042a049e48bdc1c115a86f3a","original_commit_id":"32b36c77cf5a9c5e042a049e48bdc1c115a86f3a","user":{"login":"marshall","id":29191,"avatar_url":"https://avatars.githubusercontent.com/u/29191?v=3","gravatar_id":"","url":"https://api.github.com/users/marshall","html_url":"https://github.com/marshall","followers_url":"https://api.github.com/users/marshall/followers","following_url":"https://api.github.com/users/marshall/following{/other_user}","gists_url":"https://api.github.com/users/marshall/gists{/gist_id}","starred_url":"https://api.github.com/users/marshall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marshall/subscriptions","organizations_url":"https://api.github.com/users/marshall/orgs","repos_url":"https://api.github.com/users/marshall/repos","events_url":"https://api.github.com/users/marshall/events{/privacy}","received_events_url":"https://api.github.com/users/marshall/received_events","type":"User","site_admin":false},"body":"It looks like you left `cli` as a function argument even though you ignore it and statically initialize with a call to `get_cli`. would be good to either remove the function argument or initialize the docker cli in `main` and pass it along","created_at":"2016-05-16T19:17:35Z","updated_at":"2016-05-16T19:17:35Z","html_url":"https://github.com/openkosmosorg/kubos-sdk/pull/2#discussion_r63408781","pull_request_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/comments/63408781"},"html":{"href":"https://github.com/openkosmosorg/kubos-sdk/pull/2#discussion_r63408781"},"pull_request":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/2","id":70243805,"html_url":"https://github.com/openkosmosorg/kubos-sdk/pull/2","diff_url":"https://github.com/openkosmosorg/kubos-sdk/pull/2.diff","patch_url":"https://github.com/openkosmosorg/kubos-sdk/pull/2.patch","issue_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/2","number":2,"state":"open","locked":false,"title":"Add kubos host script","user":{"login":"kyleparrott","id":10483034,"avatar_url":"https://avatars.githubusercontent.com/u/10483034?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleparrott","html_url":"https://github.com/kyleparrott","followers_url":"https://api.github.com/users/kyleparrott/followers","following_url":"https://api.github.com/users/kyleparrott/following{/other_user}","gists_url":"https://api.github.com/users/kyleparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleparrott/subscriptions","organizations_url":"https://api.github.com/users/kyleparrott/orgs","repos_url":"https://api.github.com/users/kyleparrott/repos","events_url":"https://api.github.com/users/kyleparrott/events{/privacy}","received_events_url":"https://api.github.com/users/kyleparrott/received_events","type":"User","site_admin":false},"body":"- Rename kubos.py to kubos-sdk.py. \r\n  - Kubos-sdk.py is now only called inside the kubos-sdk docker container\r\n\r\n- Add new File kubos.py as the \"main\" script called on the host machine\r\n - manages kubos-sdk container image\r\n - passes commands through to instances of kubos-sdk containers ","created_at":"2016-05-16T19:02:28Z","updated_at":"2016-05-16T19:17:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cc3880f9fec311b980939dafd906e76a916278f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/2/commits","review_comments_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/2/comments","review_comment_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/2/comments","statuses_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/statuses/32b36c77cf5a9c5e042a049e48bdc1c115a86f3a","head":{"label":"kyleparrott:add_kubos_host_script","ref":"add_kubos_host_script","sha":"32b36c77cf5a9c5e042a049e48bdc1c115a86f3a","user":{"login":"kyleparrott","id":10483034,"avatar_url":"https://avatars.githubusercontent.com/u/10483034?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleparrott","html_url":"https://github.com/kyleparrott","followers_url":"https://api.github.com/users/kyleparrott/followers","following_url":"https://api.github.com/users/kyleparrott/following{/other_user}","gists_url":"https://api.github.com/users/kyleparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleparrott/subscriptions","organizations_url":"https://api.github.com/users/kyleparrott/orgs","repos_url":"https://api.github.com/users/kyleparrott/repos","events_url":"https://api.github.com/users/kyleparrott/events{/privacy}","received_events_url":"https://api.github.com/users/kyleparrott/received_events","type":"User","site_admin":false},"repo":{"id":58077134,"name":"kubos-sdk","full_name":"kyleparrott/kubos-sdk","owner":{"login":"kyleparrott","id":10483034,"avatar_url":"https://avatars.githubusercontent.com/u/10483034?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleparrott","html_url":"https://github.com/kyleparrott","followers_url":"https://api.github.com/users/kyleparrott/followers","following_url":"https://api.github.com/users/kyleparrott/following{/other_user}","gists_url":"https://api.github.com/users/kyleparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleparrott/subscriptions","organizations_url":"https://api.github.com/users/kyleparrott/orgs","repos_url":"https://api.github.com/users/kyleparrott/repos","events_url":"https://api.github.com/users/kyleparrott/events{/privacy}","received_events_url":"https://api.github.com/users/kyleparrott/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyleparrott/kubos-sdk","description":"","fork":true,"url":"https://api.github.com/repos/kyleparrott/kubos-sdk","forks_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/forks","keys_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/teams","hooks_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/hooks","issue_events_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/events","assignees_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/tags","blobs_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/languages","stargazers_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/stargazers","contributors_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/contributors","subscribers_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/subscribers","subscription_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/subscription","commits_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/merges","archive_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/downloads","issues_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/labels{/name}","releases_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/deployments","created_at":"2016-05-04T19:05:00Z","updated_at":"2016-05-04T19:05:02Z","pushed_at":"2016-05-16T18:57:24Z","git_url":"git://github.com/kyleparrott/kubos-sdk.git","ssh_url":"git@github.com:kyleparrott/kubos-sdk.git","clone_url":"https://github.com/kyleparrott/kubos-sdk.git","svn_url":"https://github.com/kyleparrott/kubos-sdk","homepage":null,"size":4263,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"openkosmosorg:master","ref":"master","sha":"2d5fee7b15a5d4e0c6dd3cc2bed4d737d86c3ecd","user":{"login":"openkosmosorg","id":13735103,"avatar_url":"https://avatars.githubusercontent.com/u/13735103?v=3","gravatar_id":"","url":"https://api.github.com/users/openkosmosorg","html_url":"https://github.com/openkosmosorg","followers_url":"https://api.github.com/users/openkosmosorg/followers","following_url":"https://api.github.com/users/openkosmosorg/following{/other_user}","gists_url":"https://api.github.com/users/openkosmosorg/gists{/gist_id}","starred_url":"https://api.github.com/users/openkosmosorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openkosmosorg/subscriptions","organizations_url":"https://api.github.com/users/openkosmosorg/orgs","repos_url":"https://api.github.com/users/openkosmosorg/repos","events_url":"https://api.github.com/users/openkosmosorg/events{/privacy}","received_events_url":"https://api.github.com/users/openkosmosorg/received_events","type":"Organization","site_admin":false},"repo":{"id":57980164,"name":"kubos-sdk","full_name":"openkosmosorg/kubos-sdk","owner":{"login":"openkosmosorg","id":13735103,"avatar_url":"https://avatars.githubusercontent.com/u/13735103?v=3","gravatar_id":"","url":"https://api.github.com/users/openkosmosorg","html_url":"https://github.com/openkosmosorg","followers_url":"https://api.github.com/users/openkosmosorg/followers","following_url":"https://api.github.com/users/openkosmosorg/following{/other_user}","gists_url":"https://api.github.com/users/openkosmosorg/gists{/gist_id}","starred_url":"https://api.github.com/users/openkosmosorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openkosmosorg/subscriptions","organizations_url":"https://api.github.com/users/openkosmosorg/orgs","repos_url":"https://api.github.com/users/openkosmosorg/repos","events_url":"https://api.github.com/users/openkosmosorg/events{/privacy}","received_events_url":"https://api.github.com/users/openkosmosorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openkosmosorg/kubos-sdk","description":"","fork":false,"url":"https://api.github.com/repos/openkosmosorg/kubos-sdk","forks_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/forks","keys_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/teams","hooks_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/hooks","issue_events_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/events","assignees_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/tags","blobs_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/languages","stargazers_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/stargazers","contributors_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/contributors","subscribers_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/subscribers","subscription_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/subscription","commits_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/merges","archive_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/downloads","issues_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/labels{/name}","releases_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/deployments","created_at":"2016-05-03T15:30:57Z","updated_at":"2016-05-04T18:52:16Z","pushed_at":"2016-05-16T19:06:26Z","git_url":"git://github.com/openkosmosorg/kubos-sdk.git","ssh_url":"git@github.com:openkosmosorg/kubos-sdk.git","clone_url":"https://github.com/openkosmosorg/kubos-sdk.git","svn_url":"https://github.com/openkosmosorg/kubos-sdk","homepage":null,"size":4259,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/2"},"html":{"href":"https://github.com/openkosmosorg/kubos-sdk/pull/2"},"issue":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/2"},"comments":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/statuses/32b36c77cf5a9c5e042a049e48bdc1c115a86f3a"}}}}