{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/chisel/pulls/comments/53370128","id":53370128,"diff_hunk":"@@ -0,0 +1,111 @@\n+#!/usr/bin/python\n+\n+# Copyright (c) 2016, Facebook, Inc.\n+# All rights reserved.\n+#\n+# This source code is licensed under the BSD-style license found in the\n+# LICENSE file in the root directory of this source tree. An additional grant\n+# of patent rights can be found in the PATENTS file in the same directory.\n+\n+import os\n+\n+import lldb\n+import fblldbbase as fb\n+import fblldbviewhelpers as viewHelpers\n+\n+ACCESSIBILITY_ID = 0\n+REPLACEMENT_TEXT = 1\n+INPUT_TEXT = 0\n+\n+\n+def lldbcommands():\n+  return [\n+    FBInputTexByAccessibilityIdCommand(),\n+    FBInputTexToFirstResponderCommand(),\n+  ]\n+\n+\n+class FBInputTexByAccessibilityIdCommand(fb.FBCommand):\n+  def name(self):\n+    return 'setxt'","path":"commands/FBTextInputCommands.py","position":30,"original_position":30,"commit_id":"12a1e2fbe366df411eadea61d6c33a80e6ec8321","original_commit_id":"12a1e2fbe366df411eadea61d6c33a80e6ec8321","user":{"login":"tecknut","id":2079547,"avatar_url":"https://avatars.githubusercontent.com/u/2079547?v=3","gravatar_id":"","url":"https://api.github.com/users/tecknut","html_url":"https://github.com/tecknut","followers_url":"https://api.github.com/users/tecknut/followers","following_url":"https://api.github.com/users/tecknut/following{/other_user}","gists_url":"https://api.github.com/users/tecknut/gists{/gist_id}","starred_url":"https://api.github.com/users/tecknut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tecknut/subscriptions","organizations_url":"https://api.github.com/users/tecknut/orgs","repos_url":"https://api.github.com/users/tecknut/repos","events_url":"https://api.github.com/users/tecknut/events{/privacy}","received_events_url":"https://api.github.com/users/tecknut/received_events","type":"User","site_admin":false},"body":"It's just short for text. As per the comment bellow, I based the name on other examples of short hand commands. ","created_at":"2016-02-18T19:37:36Z","updated_at":"2016-02-18T19:37:36Z","html_url":"https://github.com/facebook/chisel/pull/137#discussion_r53370128","pull_request_url":"https://api.github.com/repos/facebook/chisel/pulls/137","_links":{"self":{"href":"https://api.github.com/repos/facebook/chisel/pulls/comments/53370128"},"html":{"href":"https://github.com/facebook/chisel/pull/137#discussion_r53370128"},"pull_request":{"href":"https://api.github.com/repos/facebook/chisel/pulls/137"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/chisel/pulls/137","id":59413997,"html_url":"https://github.com/facebook/chisel/pull/137","diff_url":"https://github.com/facebook/chisel/pull/137.diff","patch_url":"https://github.com/facebook/chisel/pull/137.patch","issue_url":"https://api.github.com/repos/facebook/chisel/issues/137","number":137,"state":"open","locked":false,"title":"Adding text input command","user":{"login":"tecknut","id":2079547,"avatar_url":"https://avatars.githubusercontent.com/u/2079547?v=3","gravatar_id":"","url":"https://api.github.com/users/tecknut","html_url":"https://github.com/tecknut","followers_url":"https://api.github.com/users/tecknut/followers","following_url":"https://api.github.com/users/tecknut/following{/other_user}","gists_url":"https://api.github.com/users/tecknut/gists{/gist_id}","starred_url":"https://api.github.com/users/tecknut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tecknut/subscriptions","organizations_url":"https://api.github.com/users/tecknut/orgs","repos_url":"https://api.github.com/users/tecknut/repos","events_url":"https://api.github.com/users/tecknut/events{/privacy}","received_events_url":"https://api.github.com/users/tecknut/received_events","type":"User","site_admin":false},"body":"# Additions \r\n\r\n* Adds an `input` command which sets text on text views or text fields which were first responder when execution paused.\r\n* Adds `setxt` command which sets text on a view by accessibility ID.\r\n\r\n### Example \r\n\r\n```\r\n(lldb) input 'Some text to set.'\r\n(lldb) setxt some.accessibility.id 'Some text to set.'\r\n```","created_at":"2016-02-15T21:11:37Z","updated_at":"2016-02-18T19:37:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c19f0e69ec6bc304b37b874c86057fcf1296c88d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/chisel/pulls/137/commits","review_comments_url":"https://api.github.com/repos/facebook/chisel/pulls/137/comments","review_comment_url":"https://api.github.com/repos/facebook/chisel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/chisel/issues/137/comments","statuses_url":"https://api.github.com/repos/facebook/chisel/statuses/12a1e2fbe366df411eadea61d6c33a80e6ec8321","head":{"label":"tecknut:adding-input-command","ref":"adding-input-command","sha":"12a1e2fbe366df411eadea61d6c33a80e6ec8321","user":{"login":"tecknut","id":2079547,"avatar_url":"https://avatars.githubusercontent.com/u/2079547?v=3","gravatar_id":"","url":"https://api.github.com/users/tecknut","html_url":"https://github.com/tecknut","followers_url":"https://api.github.com/users/tecknut/followers","following_url":"https://api.github.com/users/tecknut/following{/other_user}","gists_url":"https://api.github.com/users/tecknut/gists{/gist_id}","starred_url":"https://api.github.com/users/tecknut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tecknut/subscriptions","organizations_url":"https://api.github.com/users/tecknut/orgs","repos_url":"https://api.github.com/users/tecknut/repos","events_url":"https://api.github.com/users/tecknut/events{/privacy}","received_events_url":"https://api.github.com/users/tecknut/received_events","type":"User","site_admin":false},"repo":{"id":51784290,"name":"chisel","full_name":"tecknut/chisel","owner":{"login":"tecknut","id":2079547,"avatar_url":"https://avatars.githubusercontent.com/u/2079547?v=3","gravatar_id":"","url":"https://api.github.com/users/tecknut","html_url":"https://github.com/tecknut","followers_url":"https://api.github.com/users/tecknut/followers","following_url":"https://api.github.com/users/tecknut/following{/other_user}","gists_url":"https://api.github.com/users/tecknut/gists{/gist_id}","starred_url":"https://api.github.com/users/tecknut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tecknut/subscriptions","organizations_url":"https://api.github.com/users/tecknut/orgs","repos_url":"https://api.github.com/users/tecknut/repos","events_url":"https://api.github.com/users/tecknut/events{/privacy}","received_events_url":"https://api.github.com/users/tecknut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tecknut/chisel","description":"Chisel is a collection of LLDB commands to assist debugging iOS apps.","fork":true,"url":"https://api.github.com/repos/tecknut/chisel","forks_url":"https://api.github.com/repos/tecknut/chisel/forks","keys_url":"https://api.github.com/repos/tecknut/chisel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tecknut/chisel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tecknut/chisel/teams","hooks_url":"https://api.github.com/repos/tecknut/chisel/hooks","issue_events_url":"https://api.github.com/repos/tecknut/chisel/issues/events{/number}","events_url":"https://api.github.com/repos/tecknut/chisel/events","assignees_url":"https://api.github.com/repos/tecknut/chisel/assignees{/user}","branches_url":"https://api.github.com/repos/tecknut/chisel/branches{/branch}","tags_url":"https://api.github.com/repos/tecknut/chisel/tags","blobs_url":"https://api.github.com/repos/tecknut/chisel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tecknut/chisel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tecknut/chisel/git/refs{/sha}","trees_url":"https://api.github.com/repos/tecknut/chisel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tecknut/chisel/statuses/{sha}","languages_url":"https://api.github.com/repos/tecknut/chisel/languages","stargazers_url":"https://api.github.com/repos/tecknut/chisel/stargazers","contributors_url":"https://api.github.com/repos/tecknut/chisel/contributors","subscribers_url":"https://api.github.com/repos/tecknut/chisel/subscribers","subscription_url":"https://api.github.com/repos/tecknut/chisel/subscription","commits_url":"https://api.github.com/repos/tecknut/chisel/commits{/sha}","git_commits_url":"https://api.github.com/repos/tecknut/chisel/git/commits{/sha}","comments_url":"https://api.github.com/repos/tecknut/chisel/comments{/number}","issue_comment_url":"https://api.github.com/repos/tecknut/chisel/issues/comments{/number}","contents_url":"https://api.github.com/repos/tecknut/chisel/contents/{+path}","compare_url":"https://api.github.com/repos/tecknut/chisel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tecknut/chisel/merges","archive_url":"https://api.github.com/repos/tecknut/chisel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tecknut/chisel/downloads","issues_url":"https://api.github.com/repos/tecknut/chisel/issues{/number}","pulls_url":"https://api.github.com/repos/tecknut/chisel/pulls{/number}","milestones_url":"https://api.github.com/repos/tecknut/chisel/milestones{/number}","notifications_url":"https://api.github.com/repos/tecknut/chisel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tecknut/chisel/labels{/name}","releases_url":"https://api.github.com/repos/tecknut/chisel/releases{/id}","deployments_url":"https://api.github.com/repos/tecknut/chisel/deployments","created_at":"2016-02-15T20:42:58Z","updated_at":"2016-02-15T20:42:59Z","pushed_at":"2016-02-16T12:32:41Z","git_url":"git://github.com/tecknut/chisel.git","ssh_url":"git@github.com:tecknut/chisel.git","clone_url":"https://github.com/tecknut/chisel.git","svn_url":"https://github.com/tecknut/chisel","homepage":null,"size":218,"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":"facebook:master","ref":"master","sha":"5d3fb06593505aa81dca41d1a8015b3796f68a7c","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":17065530,"name":"chisel","full_name":"facebook/chisel","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/chisel","description":"Chisel is a collection of LLDB commands to assist debugging iOS apps.","fork":false,"url":"https://api.github.com/repos/facebook/chisel","forks_url":"https://api.github.com/repos/facebook/chisel/forks","keys_url":"https://api.github.com/repos/facebook/chisel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/chisel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/chisel/teams","hooks_url":"https://api.github.com/repos/facebook/chisel/hooks","issue_events_url":"https://api.github.com/repos/facebook/chisel/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/chisel/events","assignees_url":"https://api.github.com/repos/facebook/chisel/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/chisel/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/chisel/tags","blobs_url":"https://api.github.com/repos/facebook/chisel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/chisel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/chisel/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/chisel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/chisel/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/chisel/languages","stargazers_url":"https://api.github.com/repos/facebook/chisel/stargazers","contributors_url":"https://api.github.com/repos/facebook/chisel/contributors","subscribers_url":"https://api.github.com/repos/facebook/chisel/subscribers","subscription_url":"https://api.github.com/repos/facebook/chisel/subscription","commits_url":"https://api.github.com/repos/facebook/chisel/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/chisel/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/chisel/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/chisel/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/chisel/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/chisel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/chisel/merges","archive_url":"https://api.github.com/repos/facebook/chisel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/chisel/downloads","issues_url":"https://api.github.com/repos/facebook/chisel/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/chisel/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/chisel/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/chisel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/chisel/labels{/name}","releases_url":"https://api.github.com/repos/facebook/chisel/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/chisel/deployments","created_at":"2014-02-21T18:24:17Z","updated_at":"2016-02-18T19:24:54Z","pushed_at":"2016-02-16T12:32:41Z","git_url":"git://github.com/facebook/chisel.git","ssh_url":"git@github.com:facebook/chisel.git","clone_url":"https://github.com/facebook/chisel.git","svn_url":"https://github.com/facebook/chisel","homepage":null,"size":365,"stargazers_count":4494,"watchers_count":4494,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":368,"mirror_url":null,"open_issues_count":23,"forks":368,"open_issues":23,"watchers":4494,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/chisel/pulls/137"},"html":{"href":"https://github.com/facebook/chisel/pull/137"},"issue":{"href":"https://api.github.com/repos/facebook/chisel/issues/137"},"comments":{"href":"https://api.github.com/repos/facebook/chisel/issues/137/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/chisel/pulls/137/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/chisel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/chisel/pulls/137/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/chisel/statuses/12a1e2fbe366df411eadea61d6c33a80e6ec8321"}}}}