{"action":"created","comment":{"url":"https://api.github.com/repos/cdent/gabbi/pulls/comments/81471059","pull_request_review_id":2449796,"id":81471059,"diff_hunk":"@@ -88,27 +88,59 @@ def run():\n         help='Custom response handler. Should be an import path of the '\n              'form package.module or package.module:class.'\n     )\n+    parser.add_argument(\n+        '-f',\n+        nargs='?', default=None,\n+        dest='input_files',\n+        action='append',\n+        help='input files'\n+    )\n \n     args = parser.parse_args()\n     host, port, prefix, force_ssl = utils.host_info_from_target(\n         args.target, args.prefix)\n \n-    # Initialize response handlers.\n-    handler_objects = initialize_handlers(args.response_handlers)\n+    response_handlers = initialize_handlers(args.response_handlers)\n+\n+    input_files = args.input_files\n+    if input_files is None:\n+        input_files = [sys.stdin]\n+\n+    failfast = args.failfast\n+    failure = False\n+    for input_file in input_files:\n+        params = (response_handlers, host, port, prefix, force_ssl, failfast)\n+        # XXX(FND): special-casing; use generic stream detection instead?\n+        if input_file is sys.stdin:\n+            success = execute(input_file, *params)\n+        else:  # file path\n+            with open(input_file, \"r\") as fh:","path":"gabbi/runner.py","position":41,"original_position":41,"commit_id":"7060aff0f79f55bd45ddc6d92ace4abe4b99bbaa","original_commit_id":"7060aff0f79f55bd45ddc6d92ace4abe4b99bbaa","user":{"login":"FND","id":3515,"avatar_url":"https://avatars.githubusercontent.com/u/3515?v=3","gravatar_id":"","url":"https://api.github.com/users/FND","html_url":"https://github.com/FND","followers_url":"https://api.github.com/users/FND/followers","following_url":"https://api.github.com/users/FND/following{/other_user}","gists_url":"https://api.github.com/users/FND/gists{/gist_id}","starred_url":"https://api.github.com/users/FND/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FND/subscriptions","organizations_url":"https://api.github.com/users/FND/orgs","repos_url":"https://api.github.com/users/FND/repos","events_url":"https://api.github.com/users/FND/events{/privacy}","received_events_url":"https://api.github.com/users/FND/received_events","type":"User","site_admin":false},"body":"Should we use `os.abspath` here?","created_at":"2016-10-02T14:42:36Z","updated_at":"2016-10-02T14:42:36Z","html_url":"https://github.com/cdent/gabbi/pull/179#discussion_r81471059","pull_request_url":"https://api.github.com/repos/cdent/gabbi/pulls/179","_links":{"self":{"href":"https://api.github.com/repos/cdent/gabbi/pulls/comments/81471059"},"html":{"href":"https://github.com/cdent/gabbi/pull/179#discussion_r81471059"},"pull_request":{"href":"https://api.github.com/repos/cdent/gabbi/pulls/179"}}},"pull_request":{"url":"https://api.github.com/repos/cdent/gabbi/pulls/179","id":87635385,"html_url":"https://github.com/cdent/gabbi/pull/179","diff_url":"https://github.com/cdent/gabbi/pull/179.diff","patch_url":"https://github.com/cdent/gabbi/pull/179.patch","issue_url":"https://api.github.com/repos/cdent/gabbi/issues/179","number":179,"state":"open","locked":false,"title":"gabbi-run support for multiple input files","user":{"login":"FND","id":3515,"avatar_url":"https://avatars.githubusercontent.com/u/3515?v=3","gravatar_id":"","url":"https://api.github.com/users/FND","html_url":"https://github.com/FND","followers_url":"https://api.github.com/users/FND/followers","following_url":"https://api.github.com/users/FND/following{/other_user}","gists_url":"https://api.github.com/users/FND/gists{/gist_id}","starred_url":"https://api.github.com/users/FND/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FND/subscriptions","organizations_url":"https://api.github.com/users/FND/orgs","repos_url":"https://api.github.com/users/FND/repos","events_url":"https://api.github.com/users/FND/events{/privacy}","received_events_url":"https://api.github.com/users/FND/received_events","type":"User","site_admin":false},"body":"this addresses #104 \r\n\r\ncaveats:\r\n\r\n* I'm no longer certain this is actually desirable (cf. @cdent's objections in the aforementioned issue)\r\n* various implementation details seem crude (I kinda ran out of steam, so this is untypically unpolished)\r\n* no documentation yet (this includes `help`); let's first decide whether we wanna merge this at all","created_at":"2016-10-02T14:28:14Z","updated_at":"2016-10-02T14:42:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60139fecb2a255dd29872455c1ec1c5093703ad2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cdent/gabbi/pulls/179/commits","review_comments_url":"https://api.github.com/repos/cdent/gabbi/pulls/179/comments","review_comment_url":"https://api.github.com/repos/cdent/gabbi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cdent/gabbi/issues/179/comments","statuses_url":"https://api.github.com/repos/cdent/gabbi/statuses/7060aff0f79f55bd45ddc6d92ace4abe4b99bbaa","head":{"label":"FND:cli-files","ref":"cli-files","sha":"7060aff0f79f55bd45ddc6d92ace4abe4b99bbaa","user":{"login":"FND","id":3515,"avatar_url":"https://avatars.githubusercontent.com/u/3515?v=3","gravatar_id":"","url":"https://api.github.com/users/FND","html_url":"https://github.com/FND","followers_url":"https://api.github.com/users/FND/followers","following_url":"https://api.github.com/users/FND/following{/other_user}","gists_url":"https://api.github.com/users/FND/gists{/gist_id}","starred_url":"https://api.github.com/users/FND/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FND/subscriptions","organizations_url":"https://api.github.com/users/FND/orgs","repos_url":"https://api.github.com/users/FND/repos","events_url":"https://api.github.com/users/FND/events{/privacy}","received_events_url":"https://api.github.com/users/FND/received_events","type":"User","site_admin":false},"repo":{"id":32883700,"name":"gabbi","full_name":"FND/gabbi","owner":{"login":"FND","id":3515,"avatar_url":"https://avatars.githubusercontent.com/u/3515?v=3","gravatar_id":"","url":"https://api.github.com/users/FND","html_url":"https://github.com/FND","followers_url":"https://api.github.com/users/FND/followers","following_url":"https://api.github.com/users/FND/following{/other_user}","gists_url":"https://api.github.com/users/FND/gists{/gist_id}","starred_url":"https://api.github.com/users/FND/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FND/subscriptions","organizations_url":"https://api.github.com/users/FND/orgs","repos_url":"https://api.github.com/users/FND/repos","events_url":"https://api.github.com/users/FND/events{/privacy}","received_events_url":"https://api.github.com/users/FND/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FND/gabbi","description":"Declarative HTTP Testing for Python","fork":true,"url":"https://api.github.com/repos/FND/gabbi","forks_url":"https://api.github.com/repos/FND/gabbi/forks","keys_url":"https://api.github.com/repos/FND/gabbi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FND/gabbi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FND/gabbi/teams","hooks_url":"https://api.github.com/repos/FND/gabbi/hooks","issue_events_url":"https://api.github.com/repos/FND/gabbi/issues/events{/number}","events_url":"https://api.github.com/repos/FND/gabbi/events","assignees_url":"https://api.github.com/repos/FND/gabbi/assignees{/user}","branches_url":"https://api.github.com/repos/FND/gabbi/branches{/branch}","tags_url":"https://api.github.com/repos/FND/gabbi/tags","blobs_url":"https://api.github.com/repos/FND/gabbi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FND/gabbi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FND/gabbi/git/refs{/sha}","trees_url":"https://api.github.com/repos/FND/gabbi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FND/gabbi/statuses/{sha}","languages_url":"https://api.github.com/repos/FND/gabbi/languages","stargazers_url":"https://api.github.com/repos/FND/gabbi/stargazers","contributors_url":"https://api.github.com/repos/FND/gabbi/contributors","subscribers_url":"https://api.github.com/repos/FND/gabbi/subscribers","subscription_url":"https://api.github.com/repos/FND/gabbi/subscription","commits_url":"https://api.github.com/repos/FND/gabbi/commits{/sha}","git_commits_url":"https://api.github.com/repos/FND/gabbi/git/commits{/sha}","comments_url":"https://api.github.com/repos/FND/gabbi/comments{/number}","issue_comment_url":"https://api.github.com/repos/FND/gabbi/issues/comments{/number}","contents_url":"https://api.github.com/repos/FND/gabbi/contents/{+path}","compare_url":"https://api.github.com/repos/FND/gabbi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FND/gabbi/merges","archive_url":"https://api.github.com/repos/FND/gabbi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FND/gabbi/downloads","issues_url":"https://api.github.com/repos/FND/gabbi/issues{/number}","pulls_url":"https://api.github.com/repos/FND/gabbi/pulls{/number}","milestones_url":"https://api.github.com/repos/FND/gabbi/milestones{/number}","notifications_url":"https://api.github.com/repos/FND/gabbi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FND/gabbi/labels{/name}","releases_url":"https://api.github.com/repos/FND/gabbi/releases{/id}","deployments_url":"https://api.github.com/repos/FND/gabbi/deployments","created_at":"2015-03-25T18:38:31Z","updated_at":"2015-03-25T18:38:31Z","pushed_at":"2016-10-02T14:33:16Z","git_url":"git://github.com/FND/gabbi.git","ssh_url":"git@github.com:FND/gabbi.git","clone_url":"https://github.com/FND/gabbi.git","svn_url":"https://github.com/FND/gabbi","homepage":null,"size":583,"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":"cdent:master","ref":"master","sha":"5274e71322226fef75388ad050ef87c0711c675b","user":{"login":"cdent","id":34498,"avatar_url":"https://avatars.githubusercontent.com/u/34498?v=3","gravatar_id":"","url":"https://api.github.com/users/cdent","html_url":"https://github.com/cdent","followers_url":"https://api.github.com/users/cdent/followers","following_url":"https://api.github.com/users/cdent/following{/other_user}","gists_url":"https://api.github.com/users/cdent/gists{/gist_id}","starred_url":"https://api.github.com/users/cdent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdent/subscriptions","organizations_url":"https://api.github.com/users/cdent/orgs","repos_url":"https://api.github.com/users/cdent/repos","events_url":"https://api.github.com/users/cdent/events{/privacy}","received_events_url":"https://api.github.com/users/cdent/received_events","type":"User","site_admin":false},"repo":{"id":27924304,"name":"gabbi","full_name":"cdent/gabbi","owner":{"login":"cdent","id":34498,"avatar_url":"https://avatars.githubusercontent.com/u/34498?v=3","gravatar_id":"","url":"https://api.github.com/users/cdent","html_url":"https://github.com/cdent","followers_url":"https://api.github.com/users/cdent/followers","following_url":"https://api.github.com/users/cdent/following{/other_user}","gists_url":"https://api.github.com/users/cdent/gists{/gist_id}","starred_url":"https://api.github.com/users/cdent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdent/subscriptions","organizations_url":"https://api.github.com/users/cdent/orgs","repos_url":"https://api.github.com/users/cdent/repos","events_url":"https://api.github.com/users/cdent/events{/privacy}","received_events_url":"https://api.github.com/users/cdent/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cdent/gabbi","description":"Declarative HTTP Testing","fork":false,"url":"https://api.github.com/repos/cdent/gabbi","forks_url":"https://api.github.com/repos/cdent/gabbi/forks","keys_url":"https://api.github.com/repos/cdent/gabbi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cdent/gabbi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cdent/gabbi/teams","hooks_url":"https://api.github.com/repos/cdent/gabbi/hooks","issue_events_url":"https://api.github.com/repos/cdent/gabbi/issues/events{/number}","events_url":"https://api.github.com/repos/cdent/gabbi/events","assignees_url":"https://api.github.com/repos/cdent/gabbi/assignees{/user}","branches_url":"https://api.github.com/repos/cdent/gabbi/branches{/branch}","tags_url":"https://api.github.com/repos/cdent/gabbi/tags","blobs_url":"https://api.github.com/repos/cdent/gabbi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cdent/gabbi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cdent/gabbi/git/refs{/sha}","trees_url":"https://api.github.com/repos/cdent/gabbi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cdent/gabbi/statuses/{sha}","languages_url":"https://api.github.com/repos/cdent/gabbi/languages","stargazers_url":"https://api.github.com/repos/cdent/gabbi/stargazers","contributors_url":"https://api.github.com/repos/cdent/gabbi/contributors","subscribers_url":"https://api.github.com/repos/cdent/gabbi/subscribers","subscription_url":"https://api.github.com/repos/cdent/gabbi/subscription","commits_url":"https://api.github.com/repos/cdent/gabbi/commits{/sha}","git_commits_url":"https://api.github.com/repos/cdent/gabbi/git/commits{/sha}","comments_url":"https://api.github.com/repos/cdent/gabbi/comments{/number}","issue_comment_url":"https://api.github.com/repos/cdent/gabbi/issues/comments{/number}","contents_url":"https://api.github.com/repos/cdent/gabbi/contents/{+path}","compare_url":"https://api.github.com/repos/cdent/gabbi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cdent/gabbi/merges","archive_url":"https://api.github.com/repos/cdent/gabbi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cdent/gabbi/downloads","issues_url":"https://api.github.com/repos/cdent/gabbi/issues{/number}","pulls_url":"https://api.github.com/repos/cdent/gabbi/pulls{/number}","milestones_url":"https://api.github.com/repos/cdent/gabbi/milestones{/number}","notifications_url":"https://api.github.com/repos/cdent/gabbi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cdent/gabbi/labels{/name}","releases_url":"https://api.github.com/repos/cdent/gabbi/releases{/id}","deployments_url":"https://api.github.com/repos/cdent/gabbi/deployments","created_at":"2014-12-12T14:46:59Z","updated_at":"2016-09-14T21:58:53Z","pushed_at":"2016-10-02T14:33:16Z","git_url":"git://github.com/cdent/gabbi.git","ssh_url":"git@github.com:cdent/gabbi.git","clone_url":"https://github.com/cdent/gabbi.git","svn_url":"https://github.com/cdent/gabbi","homepage":"http://gabbi.readthedocs.org/","size":785,"stargazers_count":49,"watchers_count":49,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":22,"forks":16,"open_issues":22,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cdent/gabbi/pulls/179"},"html":{"href":"https://github.com/cdent/gabbi/pull/179"},"issue":{"href":"https://api.github.com/repos/cdent/gabbi/issues/179"},"comments":{"href":"https://api.github.com/repos/cdent/gabbi/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/cdent/gabbi/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/cdent/gabbi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cdent/gabbi/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/cdent/gabbi/statuses/7060aff0f79f55bd45ddc6d92ace4abe4b99bbaa"}}}}
{"actor":{"display_login":"FND"}}