{"action":"created","comment":{"url":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/comments/152556872","pull_request_review_id":78435589,"id":152556872,"diff_hunk":"@@ -62,11 +63,32 @@ main(int argc, char *argv[])\n \t\t\tbreak;\n \t\t}\n \t}\n+\targv += optind;\n+\targc -= optind;\n+\n+\tif (argc == 0 && isatty(STDIN_FILENO))","path":"spfwalk.c","position":15,"original_position":15,"commit_id":"ecc9f26d6f37f36eba959b66775641ef54356a11","original_commit_id":"ecc9f26d6f37f36eba959b66775641ef54356a11","user":{"login":"akpoff","id":1006779,"avatar_url":"https://avatars3.githubusercontent.com/u/1006779?v=4","gravatar_id":"","url":"https://api.github.com/users/akpoff","html_url":"https://github.com/akpoff","followers_url":"https://api.github.com/users/akpoff/followers","following_url":"https://api.github.com/users/akpoff/following{/other_user}","gists_url":"https://api.github.com/users/akpoff/gists{/gist_id}","starred_url":"https://api.github.com/users/akpoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akpoff/subscriptions","organizations_url":"https://api.github.com/users/akpoff/orgs","repos_url":"https://api.github.com/users/akpoff/repos","events_url":"https://api.github.com/users/akpoff/events{/privacy}","received_events_url":"https://api.github.com/users/akpoff/received_events","type":"User","site_admin":false},"body":"We need a way here to detect whether argument count is zero because the user called `spfwalk` or `echo example.com | spfwalk`. isatty() helps here.\r\n\r\nDo you have a preferred way to distinguish that condition?","created_at":"2017-11-22T13:01:37Z","updated_at":"2017-11-22T13:01:37Z","html_url":"https://github.com/poolpOrg/spfwalk/pull/5#discussion_r152556872","pull_request_url":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/5","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/comments/152556872"},"html":{"href":"https://github.com/poolpOrg/spfwalk/pull/5#discussion_r152556872"},"pull_request":{"href":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/5"}},"in_reply_to_id":152494317},"pull_request":{"url":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/5","id":154036350,"html_url":"https://github.com/poolpOrg/spfwalk/pull/5","diff_url":"https://github.com/poolpOrg/spfwalk/pull/5.diff","patch_url":"https://github.com/poolpOrg/spfwalk/pull/5.patch","issue_url":"https://api.github.com/repos/poolpOrg/spfwalk/issues/5","number":5,"state":"open","locked":false,"title":"Accept list of domains from stdin.","user":{"login":"akpoff","id":1006779,"avatar_url":"https://avatars3.githubusercontent.com/u/1006779?v=4","gravatar_id":"","url":"https://api.github.com/users/akpoff","html_url":"https://github.com/akpoff","followers_url":"https://api.github.com/users/akpoff/followers","following_url":"https://api.github.com/users/akpoff/following{/other_user}","gists_url":"https://api.github.com/users/akpoff/gists{/gist_id}","starred_url":"https://api.github.com/users/akpoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akpoff/subscriptions","organizations_url":"https://api.github.com/users/akpoff/orgs","repos_url":"https://api.github.com/users/akpoff/repos","events_url":"https://api.github.com/users/akpoff/events{/privacy}","received_events_url":"https://api.github.com/users/akpoff/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-22T00:35:09Z","updated_at":"2017-11-22T13:01:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de31375340d81112a9246479f23ad99d7311f7fa","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/5/commits","review_comments_url":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/5/comments","review_comment_url":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/poolpOrg/spfwalk/issues/5/comments","statuses_url":"https://api.github.com/repos/poolpOrg/spfwalk/statuses/ecc9f26d6f37f36eba959b66775641ef54356a11","head":{"label":"akpoff:domains_from_stdin","ref":"domains_from_stdin","sha":"ecc9f26d6f37f36eba959b66775641ef54356a11","user":{"login":"akpoff","id":1006779,"avatar_url":"https://avatars3.githubusercontent.com/u/1006779?v=4","gravatar_id":"","url":"https://api.github.com/users/akpoff","html_url":"https://github.com/akpoff","followers_url":"https://api.github.com/users/akpoff/followers","following_url":"https://api.github.com/users/akpoff/following{/other_user}","gists_url":"https://api.github.com/users/akpoff/gists{/gist_id}","starred_url":"https://api.github.com/users/akpoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akpoff/subscriptions","organizations_url":"https://api.github.com/users/akpoff/orgs","repos_url":"https://api.github.com/users/akpoff/repos","events_url":"https://api.github.com/users/akpoff/events{/privacy}","received_events_url":"https://api.github.com/users/akpoff/received_events","type":"User","site_admin":false},"repo":{"id":111559443,"name":"spfwalk","full_name":"akpoff/spfwalk","owner":{"login":"akpoff","id":1006779,"avatar_url":"https://avatars3.githubusercontent.com/u/1006779?v=4","gravatar_id":"","url":"https://api.github.com/users/akpoff","html_url":"https://github.com/akpoff","followers_url":"https://api.github.com/users/akpoff/followers","following_url":"https://api.github.com/users/akpoff/following{/other_user}","gists_url":"https://api.github.com/users/akpoff/gists{/gist_id}","starred_url":"https://api.github.com/users/akpoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akpoff/subscriptions","organizations_url":"https://api.github.com/users/akpoff/orgs","repos_url":"https://api.github.com/users/akpoff/repos","events_url":"https://api.github.com/users/akpoff/events{/privacy}","received_events_url":"https://api.github.com/users/akpoff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akpoff/spfwalk","description":"spfwalk","fork":true,"url":"https://api.github.com/repos/akpoff/spfwalk","forks_url":"https://api.github.com/repos/akpoff/spfwalk/forks","keys_url":"https://api.github.com/repos/akpoff/spfwalk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akpoff/spfwalk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akpoff/spfwalk/teams","hooks_url":"https://api.github.com/repos/akpoff/spfwalk/hooks","issue_events_url":"https://api.github.com/repos/akpoff/spfwalk/issues/events{/number}","events_url":"https://api.github.com/repos/akpoff/spfwalk/events","assignees_url":"https://api.github.com/repos/akpoff/spfwalk/assignees{/user}","branches_url":"https://api.github.com/repos/akpoff/spfwalk/branches{/branch}","tags_url":"https://api.github.com/repos/akpoff/spfwalk/tags","blobs_url":"https://api.github.com/repos/akpoff/spfwalk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akpoff/spfwalk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akpoff/spfwalk/git/refs{/sha}","trees_url":"https://api.github.com/repos/akpoff/spfwalk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akpoff/spfwalk/statuses/{sha}","languages_url":"https://api.github.com/repos/akpoff/spfwalk/languages","stargazers_url":"https://api.github.com/repos/akpoff/spfwalk/stargazers","contributors_url":"https://api.github.com/repos/akpoff/spfwalk/contributors","subscribers_url":"https://api.github.com/repos/akpoff/spfwalk/subscribers","subscription_url":"https://api.github.com/repos/akpoff/spfwalk/subscription","commits_url":"https://api.github.com/repos/akpoff/spfwalk/commits{/sha}","git_commits_url":"https://api.github.com/repos/akpoff/spfwalk/git/commits{/sha}","comments_url":"https://api.github.com/repos/akpoff/spfwalk/comments{/number}","issue_comment_url":"https://api.github.com/repos/akpoff/spfwalk/issues/comments{/number}","contents_url":"https://api.github.com/repos/akpoff/spfwalk/contents/{+path}","compare_url":"https://api.github.com/repos/akpoff/spfwalk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akpoff/spfwalk/merges","archive_url":"https://api.github.com/repos/akpoff/spfwalk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akpoff/spfwalk/downloads","issues_url":"https://api.github.com/repos/akpoff/spfwalk/issues{/number}","pulls_url":"https://api.github.com/repos/akpoff/spfwalk/pulls{/number}","milestones_url":"https://api.github.com/repos/akpoff/spfwalk/milestones{/number}","notifications_url":"https://api.github.com/repos/akpoff/spfwalk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akpoff/spfwalk/labels{/name}","releases_url":"https://api.github.com/repos/akpoff/spfwalk/releases{/id}","deployments_url":"https://api.github.com/repos/akpoff/spfwalk/deployments","created_at":"2017-11-21T14:28:12Z","updated_at":"2017-11-21T14:28:14Z","pushed_at":"2017-11-22T02:24:16Z","git_url":"git://github.com/akpoff/spfwalk.git","ssh_url":"git@github.com:akpoff/spfwalk.git","clone_url":"https://github.com/akpoff/spfwalk.git","svn_url":"https://github.com/akpoff/spfwalk","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"poolpOrg:master","ref":"master","sha":"c6b27260dfc8affe5b06b5a79dae7128a89f1f19","user":{"login":"poolpOrg","id":895503,"avatar_url":"https://avatars3.githubusercontent.com/u/895503?v=4","gravatar_id":"","url":"https://api.github.com/users/poolpOrg","html_url":"https://github.com/poolpOrg","followers_url":"https://api.github.com/users/poolpOrg/followers","following_url":"https://api.github.com/users/poolpOrg/following{/other_user}","gists_url":"https://api.github.com/users/poolpOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/poolpOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poolpOrg/subscriptions","organizations_url":"https://api.github.com/users/poolpOrg/orgs","repos_url":"https://api.github.com/users/poolpOrg/repos","events_url":"https://api.github.com/users/poolpOrg/events{/privacy}","received_events_url":"https://api.github.com/users/poolpOrg/received_events","type":"User","site_admin":false},"repo":{"id":111558059,"name":"spfwalk","full_name":"poolpOrg/spfwalk","owner":{"login":"poolpOrg","id":895503,"avatar_url":"https://avatars3.githubusercontent.com/u/895503?v=4","gravatar_id":"","url":"https://api.github.com/users/poolpOrg","html_url":"https://github.com/poolpOrg","followers_url":"https://api.github.com/users/poolpOrg/followers","following_url":"https://api.github.com/users/poolpOrg/following{/other_user}","gists_url":"https://api.github.com/users/poolpOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/poolpOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poolpOrg/subscriptions","organizations_url":"https://api.github.com/users/poolpOrg/orgs","repos_url":"https://api.github.com/users/poolpOrg/repos","events_url":"https://api.github.com/users/poolpOrg/events{/privacy}","received_events_url":"https://api.github.com/users/poolpOrg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/poolpOrg/spfwalk","description":"spfwalk","fork":false,"url":"https://api.github.com/repos/poolpOrg/spfwalk","forks_url":"https://api.github.com/repos/poolpOrg/spfwalk/forks","keys_url":"https://api.github.com/repos/poolpOrg/spfwalk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poolpOrg/spfwalk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poolpOrg/spfwalk/teams","hooks_url":"https://api.github.com/repos/poolpOrg/spfwalk/hooks","issue_events_url":"https://api.github.com/repos/poolpOrg/spfwalk/issues/events{/number}","events_url":"https://api.github.com/repos/poolpOrg/spfwalk/events","assignees_url":"https://api.github.com/repos/poolpOrg/spfwalk/assignees{/user}","branches_url":"https://api.github.com/repos/poolpOrg/spfwalk/branches{/branch}","tags_url":"https://api.github.com/repos/poolpOrg/spfwalk/tags","blobs_url":"https://api.github.com/repos/poolpOrg/spfwalk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poolpOrg/spfwalk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poolpOrg/spfwalk/git/refs{/sha}","trees_url":"https://api.github.com/repos/poolpOrg/spfwalk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poolpOrg/spfwalk/statuses/{sha}","languages_url":"https://api.github.com/repos/poolpOrg/spfwalk/languages","stargazers_url":"https://api.github.com/repos/poolpOrg/spfwalk/stargazers","contributors_url":"https://api.github.com/repos/poolpOrg/spfwalk/contributors","subscribers_url":"https://api.github.com/repos/poolpOrg/spfwalk/subscribers","subscription_url":"https://api.github.com/repos/poolpOrg/spfwalk/subscription","commits_url":"https://api.github.com/repos/poolpOrg/spfwalk/commits{/sha}","git_commits_url":"https://api.github.com/repos/poolpOrg/spfwalk/git/commits{/sha}","comments_url":"https://api.github.com/repos/poolpOrg/spfwalk/comments{/number}","issue_comment_url":"https://api.github.com/repos/poolpOrg/spfwalk/issues/comments{/number}","contents_url":"https://api.github.com/repos/poolpOrg/spfwalk/contents/{+path}","compare_url":"https://api.github.com/repos/poolpOrg/spfwalk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poolpOrg/spfwalk/merges","archive_url":"https://api.github.com/repos/poolpOrg/spfwalk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poolpOrg/spfwalk/downloads","issues_url":"https://api.github.com/repos/poolpOrg/spfwalk/issues{/number}","pulls_url":"https://api.github.com/repos/poolpOrg/spfwalk/pulls{/number}","milestones_url":"https://api.github.com/repos/poolpOrg/spfwalk/milestones{/number}","notifications_url":"https://api.github.com/repos/poolpOrg/spfwalk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poolpOrg/spfwalk/labels{/name}","releases_url":"https://api.github.com/repos/poolpOrg/spfwalk/releases{/id}","deployments_url":"https://api.github.com/repos/poolpOrg/spfwalk/deployments","created_at":"2017-11-21T14:16:34Z","updated_at":"2017-11-21T14:18:34Z","pushed_at":"2017-11-22T02:24:37Z","git_url":"git://github.com/poolpOrg/spfwalk.git","ssh_url":"git@github.com:poolpOrg/spfwalk.git","clone_url":"https://github.com/poolpOrg/spfwalk.git","svn_url":"https://github.com/poolpOrg/spfwalk","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/5"},"html":{"href":"https://github.com/poolpOrg/spfwalk/pull/5"},"issue":{"href":"https://api.github.com/repos/poolpOrg/spfwalk/issues/5"},"comments":{"href":"https://api.github.com/repos/poolpOrg/spfwalk/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/poolpOrg/spfwalk/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/poolpOrg/spfwalk/statuses/ecc9f26d6f37f36eba959b66775641ef54356a11"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"akpoff"}}