{"action":"created","comment":{"url":"https://api.github.com/repos/ColdHeat/mech/pulls/comments/62407079","id":62407079,"diff_hunk":"@@ -185,16 +240,48 @@ def mech_pause():\n     vm.pause()\n \n \n-def mech_ssh(user=\"mech\"):\n+def mech_ssh(user):\n     vm = get_vm()\n     ip = vm.ip()\n+    if user == None:\n+        user = get_vm_user()\n     if ip:\n-        puts(colored.green(ip))\n+        puts(\"Connecting to {}\".format(colored.green(ip)))\n         os.system('ssh {}@{}'.format(user, ip))\n     else:\n         puts(colored.red(\"IP not found\"))\n         return\n \n+def mech_scp(user, src, dst):\n+    vm = get_vm()\n+    ip = vm.ip()\n+    if user == None:\n+        user = get_vm_user()\n+    if ip:\n+        src_is_host = False\n+        if src[0] == \":\":\n+            src = src[1:]\n+            src_is_host = True\n+\n+        dst_is_host = False","path":"mech/__main__.py","position":160,"original_position":160,"commit_id":"69bbd6609b95416bece6ba641468e57af3580055","original_commit_id":"69bbd6609b95416bece6ba641468e57af3580055","user":{"login":"ColdHeat","id":166333,"avatar_url":"https://avatars.githubusercontent.com/u/166333?v=3","gravatar_id":"","url":"https://api.github.com/users/ColdHeat","html_url":"https://github.com/ColdHeat","followers_url":"https://api.github.com/users/ColdHeat/followers","following_url":"https://api.github.com/users/ColdHeat/following{/other_user}","gists_url":"https://api.github.com/users/ColdHeat/gists{/gist_id}","starred_url":"https://api.github.com/users/ColdHeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColdHeat/subscriptions","organizations_url":"https://api.github.com/users/ColdHeat/orgs","repos_url":"https://api.github.com/users/ColdHeat/repos","events_url":"https://api.github.com/users/ColdHeat/events{/privacy}","received_events_url":"https://api.github.com/users/ColdHeat/received_events","type":"User","site_admin":false},"body":"Same with this line","created_at":"2016-05-07T00:28:09Z","updated_at":"2016-05-07T00:28:09Z","html_url":"https://github.com/ColdHeat/mech/pull/2#discussion_r62407079","pull_request_url":"https://api.github.com/repos/ColdHeat/mech/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/ColdHeat/mech/pulls/comments/62407079"},"html":{"href":"https://github.com/ColdHeat/mech/pull/2#discussion_r62407079"},"pull_request":{"href":"https://api.github.com/repos/ColdHeat/mech/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/ColdHeat/mech/pulls/2","id":69195527,"html_url":"https://github.com/ColdHeat/mech/pull/2","diff_url":"https://github.com/ColdHeat/mech/pull/2.diff","patch_url":"https://github.com/ColdHeat/mech/pull/2.patch","issue_url":"https://api.github.com/repos/ColdHeat/mech/issues/2","number":2,"state":"open","locked":false,"title":"SCP files and Autocreate Mechfiles","user":{"login":"breadchris","id":1069294,"avatar_url":"https://avatars.githubusercontent.com/u/1069294?v=3","gravatar_id":"","url":"https://api.github.com/users/breadchris","html_url":"https://github.com/breadchris","followers_url":"https://api.github.com/users/breadchris/followers","following_url":"https://api.github.com/users/breadchris/following{/other_user}","gists_url":"https://api.github.com/users/breadchris/gists{/gist_id}","starred_url":"https://api.github.com/users/breadchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breadchris/subscriptions","organizations_url":"https://api.github.com/users/breadchris/orgs","repos_url":"https://api.github.com/users/breadchris/repos","events_url":"https://api.github.com/users/breadchris/events{/privacy}","received_events_url":"https://api.github.com/users/breadchris/received_events","type":"User","site_admin":false},"body":"Added support for scping files and the ability to create mechfiles when there is not one detected","created_at":"2016-05-06T19:04:12Z","updated_at":"2016-05-07T00:28:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90b2f9a8269b3f1710b7e8d9ed5939604dfce77a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ColdHeat/mech/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ColdHeat/mech/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ColdHeat/mech/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ColdHeat/mech/issues/2/comments","statuses_url":"https://api.github.com/repos/ColdHeat/mech/statuses/69bbd6609b95416bece6ba641468e57af3580055","head":{"label":"breadchris:master","ref":"master","sha":"69bbd6609b95416bece6ba641468e57af3580055","user":{"login":"breadchris","id":1069294,"avatar_url":"https://avatars.githubusercontent.com/u/1069294?v=3","gravatar_id":"","url":"https://api.github.com/users/breadchris","html_url":"https://github.com/breadchris","followers_url":"https://api.github.com/users/breadchris/followers","following_url":"https://api.github.com/users/breadchris/following{/other_user}","gists_url":"https://api.github.com/users/breadchris/gists{/gist_id}","starred_url":"https://api.github.com/users/breadchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breadchris/subscriptions","organizations_url":"https://api.github.com/users/breadchris/orgs","repos_url":"https://api.github.com/users/breadchris/repos","events_url":"https://api.github.com/users/breadchris/events{/privacy}","received_events_url":"https://api.github.com/users/breadchris/received_events","type":"User","site_admin":false},"repo":{"id":58223271,"name":"mech","full_name":"breadchris/mech","owner":{"login":"breadchris","id":1069294,"avatar_url":"https://avatars.githubusercontent.com/u/1069294?v=3","gravatar_id":"","url":"https://api.github.com/users/breadchris","html_url":"https://github.com/breadchris","followers_url":"https://api.github.com/users/breadchris/followers","following_url":"https://api.github.com/users/breadchris/following{/other_user}","gists_url":"https://api.github.com/users/breadchris/gists{/gist_id}","starred_url":"https://api.github.com/users/breadchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breadchris/subscriptions","organizations_url":"https://api.github.com/users/breadchris/orgs","repos_url":"https://api.github.com/users/breadchris/repos","events_url":"https://api.github.com/users/breadchris/events{/privacy}","received_events_url":"https://api.github.com/users/breadchris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/breadchris/mech","description":"easy command line virtual machines","fork":true,"url":"https://api.github.com/repos/breadchris/mech","forks_url":"https://api.github.com/repos/breadchris/mech/forks","keys_url":"https://api.github.com/repos/breadchris/mech/keys{/key_id}","collaborators_url":"https://api.github.com/repos/breadchris/mech/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/breadchris/mech/teams","hooks_url":"https://api.github.com/repos/breadchris/mech/hooks","issue_events_url":"https://api.github.com/repos/breadchris/mech/issues/events{/number}","events_url":"https://api.github.com/repos/breadchris/mech/events","assignees_url":"https://api.github.com/repos/breadchris/mech/assignees{/user}","branches_url":"https://api.github.com/repos/breadchris/mech/branches{/branch}","tags_url":"https://api.github.com/repos/breadchris/mech/tags","blobs_url":"https://api.github.com/repos/breadchris/mech/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/breadchris/mech/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/breadchris/mech/git/refs{/sha}","trees_url":"https://api.github.com/repos/breadchris/mech/git/trees{/sha}","statuses_url":"https://api.github.com/repos/breadchris/mech/statuses/{sha}","languages_url":"https://api.github.com/repos/breadchris/mech/languages","stargazers_url":"https://api.github.com/repos/breadchris/mech/stargazers","contributors_url":"https://api.github.com/repos/breadchris/mech/contributors","subscribers_url":"https://api.github.com/repos/breadchris/mech/subscribers","subscription_url":"https://api.github.com/repos/breadchris/mech/subscription","commits_url":"https://api.github.com/repos/breadchris/mech/commits{/sha}","git_commits_url":"https://api.github.com/repos/breadchris/mech/git/commits{/sha}","comments_url":"https://api.github.com/repos/breadchris/mech/comments{/number}","issue_comment_url":"https://api.github.com/repos/breadchris/mech/issues/comments{/number}","contents_url":"https://api.github.com/repos/breadchris/mech/contents/{+path}","compare_url":"https://api.github.com/repos/breadchris/mech/compare/{base}...{head}","merges_url":"https://api.github.com/repos/breadchris/mech/merges","archive_url":"https://api.github.com/repos/breadchris/mech/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/breadchris/mech/downloads","issues_url":"https://api.github.com/repos/breadchris/mech/issues{/number}","pulls_url":"https://api.github.com/repos/breadchris/mech/pulls{/number}","milestones_url":"https://api.github.com/repos/breadchris/mech/milestones{/number}","notifications_url":"https://api.github.com/repos/breadchris/mech/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/breadchris/mech/labels{/name}","releases_url":"https://api.github.com/repos/breadchris/mech/releases{/id}","deployments_url":"https://api.github.com/repos/breadchris/mech/deployments","created_at":"2016-05-06T17:20:54Z","updated_at":"2016-05-06T17:20:55Z","pushed_at":"2016-05-06T22:07:48Z","git_url":"git://github.com/breadchris/mech.git","ssh_url":"git@github.com:breadchris/mech.git","clone_url":"https://github.com/breadchris/mech.git","svn_url":"https://github.com/breadchris/mech","homepage":null,"size":33,"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":"ColdHeat:master","ref":"master","sha":"286957b660f27b4f399889db7dd3db955b9ae69c","user":{"login":"ColdHeat","id":166333,"avatar_url":"https://avatars.githubusercontent.com/u/166333?v=3","gravatar_id":"","url":"https://api.github.com/users/ColdHeat","html_url":"https://github.com/ColdHeat","followers_url":"https://api.github.com/users/ColdHeat/followers","following_url":"https://api.github.com/users/ColdHeat/following{/other_user}","gists_url":"https://api.github.com/users/ColdHeat/gists{/gist_id}","starred_url":"https://api.github.com/users/ColdHeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColdHeat/subscriptions","organizations_url":"https://api.github.com/users/ColdHeat/orgs","repos_url":"https://api.github.com/users/ColdHeat/repos","events_url":"https://api.github.com/users/ColdHeat/events{/privacy}","received_events_url":"https://api.github.com/users/ColdHeat/received_events","type":"User","site_admin":false},"repo":{"id":39674175,"name":"mech","full_name":"ColdHeat/mech","owner":{"login":"ColdHeat","id":166333,"avatar_url":"https://avatars.githubusercontent.com/u/166333?v=3","gravatar_id":"","url":"https://api.github.com/users/ColdHeat","html_url":"https://github.com/ColdHeat","followers_url":"https://api.github.com/users/ColdHeat/followers","following_url":"https://api.github.com/users/ColdHeat/following{/other_user}","gists_url":"https://api.github.com/users/ColdHeat/gists{/gist_id}","starred_url":"https://api.github.com/users/ColdHeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColdHeat/subscriptions","organizations_url":"https://api.github.com/users/ColdHeat/orgs","repos_url":"https://api.github.com/users/ColdHeat/repos","events_url":"https://api.github.com/users/ColdHeat/events{/privacy}","received_events_url":"https://api.github.com/users/ColdHeat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ColdHeat/mech","description":"easy command line virtual machines","fork":false,"url":"https://api.github.com/repos/ColdHeat/mech","forks_url":"https://api.github.com/repos/ColdHeat/mech/forks","keys_url":"https://api.github.com/repos/ColdHeat/mech/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ColdHeat/mech/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ColdHeat/mech/teams","hooks_url":"https://api.github.com/repos/ColdHeat/mech/hooks","issue_events_url":"https://api.github.com/repos/ColdHeat/mech/issues/events{/number}","events_url":"https://api.github.com/repos/ColdHeat/mech/events","assignees_url":"https://api.github.com/repos/ColdHeat/mech/assignees{/user}","branches_url":"https://api.github.com/repos/ColdHeat/mech/branches{/branch}","tags_url":"https://api.github.com/repos/ColdHeat/mech/tags","blobs_url":"https://api.github.com/repos/ColdHeat/mech/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ColdHeat/mech/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ColdHeat/mech/git/refs{/sha}","trees_url":"https://api.github.com/repos/ColdHeat/mech/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ColdHeat/mech/statuses/{sha}","languages_url":"https://api.github.com/repos/ColdHeat/mech/languages","stargazers_url":"https://api.github.com/repos/ColdHeat/mech/stargazers","contributors_url":"https://api.github.com/repos/ColdHeat/mech/contributors","subscribers_url":"https://api.github.com/repos/ColdHeat/mech/subscribers","subscription_url":"https://api.github.com/repos/ColdHeat/mech/subscription","commits_url":"https://api.github.com/repos/ColdHeat/mech/commits{/sha}","git_commits_url":"https://api.github.com/repos/ColdHeat/mech/git/commits{/sha}","comments_url":"https://api.github.com/repos/ColdHeat/mech/comments{/number}","issue_comment_url":"https://api.github.com/repos/ColdHeat/mech/issues/comments{/number}","contents_url":"https://api.github.com/repos/ColdHeat/mech/contents/{+path}","compare_url":"https://api.github.com/repos/ColdHeat/mech/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ColdHeat/mech/merges","archive_url":"https://api.github.com/repos/ColdHeat/mech/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ColdHeat/mech/downloads","issues_url":"https://api.github.com/repos/ColdHeat/mech/issues{/number}","pulls_url":"https://api.github.com/repos/ColdHeat/mech/pulls{/number}","milestones_url":"https://api.github.com/repos/ColdHeat/mech/milestones{/number}","notifications_url":"https://api.github.com/repos/ColdHeat/mech/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ColdHeat/mech/labels{/name}","releases_url":"https://api.github.com/repos/ColdHeat/mech/releases{/id}","deployments_url":"https://api.github.com/repos/ColdHeat/mech/deployments","created_at":"2015-07-25T05:51:44Z","updated_at":"2016-05-06T18:39:22Z","pushed_at":"2016-05-06T22:07:49Z","git_url":"git://github.com/ColdHeat/mech.git","ssh_url":"git@github.com:ColdHeat/mech.git","clone_url":"https://github.com/ColdHeat/mech.git","svn_url":"https://github.com/ColdHeat/mech","homepage":null,"size":27,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ColdHeat/mech/pulls/2"},"html":{"href":"https://github.com/ColdHeat/mech/pull/2"},"issue":{"href":"https://api.github.com/repos/ColdHeat/mech/issues/2"},"comments":{"href":"https://api.github.com/repos/ColdHeat/mech/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ColdHeat/mech/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ColdHeat/mech/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ColdHeat/mech/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ColdHeat/mech/statuses/69bbd6609b95416bece6ba641468e57af3580055"}}}}