{"action":"closed","number":43,"pull_request":{"url":"https://api.github.com/repos/kylef/Commander/pulls/43","id":96339116,"html_url":"https://github.com/kylef/Commander/pull/43","diff_url":"https://github.com/kylef/Commander/pull/43.diff","patch_url":"https://github.com/kylef/Commander/pull/43.patch","issue_url":"https://api.github.com/repos/kylef/Commander/issues/43","number":43,"state":"closed","locked":false,"title":"Better ANSI support detection.","user":{"login":"djbe","id":641356,"avatar_url":"https://avatars.githubusercontent.com/u/641356?v=3","gravatar_id":"","url":"https://api.github.com/users/djbe","html_url":"https://github.com/djbe","followers_url":"https://api.github.com/users/djbe/followers","following_url":"https://api.github.com/users/djbe/following{/other_user}","gists_url":"https://api.github.com/users/djbe/gists{/gist_id}","starred_url":"https://api.github.com/users/djbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djbe/subscriptions","organizations_url":"https://api.github.com/users/djbe/orgs","repos_url":"https://api.github.com/users/djbe/repos","events_url":"https://api.github.com/users/djbe/events{/privacy}","received_events_url":"https://api.github.com/users/djbe/received_events","type":"User","site_admin":false},"body":"In SwiftGen we've just hit an issue with `ANSI support` detection in the Xcode 8 console:\r\nhttps://github.com/AliSoftware/SwiftGen/issues/221\r\n\r\nWhile trying to find a solution, I found the [Rainbow](https://github.com/onevcat/Rainbow) library, which has a bit more expansive tty detection:\r\nhttps://github.com/onevcat/Rainbow/blob/master/Sources/OutputTarget.swift\r\n\r\nThis PR simply incorporates the extra detection into Commander.","created_at":"2016-12-02T19:35:08Z","updated_at":"2016-12-15T16:06:16Z","closed_at":"2016-12-15T16:06:16Z","merged_at":"2016-12-15T16:06:16Z","merge_commit_sha":"e45aa716d7e1284ef8dae13446d43eebfb72297e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kylef/Commander/pulls/43/commits","review_comments_url":"https://api.github.com/repos/kylef/Commander/pulls/43/comments","review_comment_url":"https://api.github.com/repos/kylef/Commander/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kylef/Commander/issues/43/comments","statuses_url":"https://api.github.com/repos/kylef/Commander/statuses/5b9f09c516684d4698b144a087b0f867394d37e7","head":{"label":"djbe:feature/better-ansi-detection","ref":"feature/better-ansi-detection","sha":"5b9f09c516684d4698b144a087b0f867394d37e7","user":{"login":"djbe","id":641356,"avatar_url":"https://avatars.githubusercontent.com/u/641356?v=3","gravatar_id":"","url":"https://api.github.com/users/djbe","html_url":"https://github.com/djbe","followers_url":"https://api.github.com/users/djbe/followers","following_url":"https://api.github.com/users/djbe/following{/other_user}","gists_url":"https://api.github.com/users/djbe/gists{/gist_id}","starred_url":"https://api.github.com/users/djbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djbe/subscriptions","organizations_url":"https://api.github.com/users/djbe/orgs","repos_url":"https://api.github.com/users/djbe/repos","events_url":"https://api.github.com/users/djbe/events{/privacy}","received_events_url":"https://api.github.com/users/djbe/received_events","type":"User","site_admin":false},"repo":{"id":75290484,"name":"Commander","full_name":"djbe/Commander","owner":{"login":"djbe","id":641356,"avatar_url":"https://avatars.githubusercontent.com/u/641356?v=3","gravatar_id":"","url":"https://api.github.com/users/djbe","html_url":"https://github.com/djbe","followers_url":"https://api.github.com/users/djbe/followers","following_url":"https://api.github.com/users/djbe/following{/other_user}","gists_url":"https://api.github.com/users/djbe/gists{/gist_id}","starred_url":"https://api.github.com/users/djbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djbe/subscriptions","organizations_url":"https://api.github.com/users/djbe/orgs","repos_url":"https://api.github.com/users/djbe/repos","events_url":"https://api.github.com/users/djbe/events{/privacy}","received_events_url":"https://api.github.com/users/djbe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djbe/Commander","description":"Compose beautiful command line interfaces in Swift","fork":true,"url":"https://api.github.com/repos/djbe/Commander","forks_url":"https://api.github.com/repos/djbe/Commander/forks","keys_url":"https://api.github.com/repos/djbe/Commander/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djbe/Commander/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djbe/Commander/teams","hooks_url":"https://api.github.com/repos/djbe/Commander/hooks","issue_events_url":"https://api.github.com/repos/djbe/Commander/issues/events{/number}","events_url":"https://api.github.com/repos/djbe/Commander/events","assignees_url":"https://api.github.com/repos/djbe/Commander/assignees{/user}","branches_url":"https://api.github.com/repos/djbe/Commander/branches{/branch}","tags_url":"https://api.github.com/repos/djbe/Commander/tags","blobs_url":"https://api.github.com/repos/djbe/Commander/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djbe/Commander/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djbe/Commander/git/refs{/sha}","trees_url":"https://api.github.com/repos/djbe/Commander/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djbe/Commander/statuses/{sha}","languages_url":"https://api.github.com/repos/djbe/Commander/languages","stargazers_url":"https://api.github.com/repos/djbe/Commander/stargazers","contributors_url":"https://api.github.com/repos/djbe/Commander/contributors","subscribers_url":"https://api.github.com/repos/djbe/Commander/subscribers","subscription_url":"https://api.github.com/repos/djbe/Commander/subscription","commits_url":"https://api.github.com/repos/djbe/Commander/commits{/sha}","git_commits_url":"https://api.github.com/repos/djbe/Commander/git/commits{/sha}","comments_url":"https://api.github.com/repos/djbe/Commander/comments{/number}","issue_comment_url":"https://api.github.com/repos/djbe/Commander/issues/comments{/number}","contents_url":"https://api.github.com/repos/djbe/Commander/contents/{+path}","compare_url":"https://api.github.com/repos/djbe/Commander/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djbe/Commander/merges","archive_url":"https://api.github.com/repos/djbe/Commander/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djbe/Commander/downloads","issues_url":"https://api.github.com/repos/djbe/Commander/issues{/number}","pulls_url":"https://api.github.com/repos/djbe/Commander/pulls{/number}","milestones_url":"https://api.github.com/repos/djbe/Commander/milestones{/number}","notifications_url":"https://api.github.com/repos/djbe/Commander/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djbe/Commander/labels{/name}","releases_url":"https://api.github.com/repos/djbe/Commander/releases{/id}","deployments_url":"https://api.github.com/repos/djbe/Commander/deployments","created_at":"2016-12-01T12:28:32Z","updated_at":"2016-12-01T12:28:33Z","pushed_at":"2016-12-12T21:25:09Z","git_url":"git://github.com/djbe/Commander.git","ssh_url":"git@github.com:djbe/Commander.git","clone_url":"https://github.com/djbe/Commander.git","svn_url":"https://github.com/djbe/Commander","homepage":"","size":151,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":"kylef:master","ref":"master","sha":"4c320a3507d621d27f89514eb576664becfee643","user":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"repo":{"id":21520325,"name":"Commander","full_name":"kylef/Commander","owner":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kylef/Commander","description":"Compose beautiful command line interfaces in Swift","fork":false,"url":"https://api.github.com/repos/kylef/Commander","forks_url":"https://api.github.com/repos/kylef/Commander/forks","keys_url":"https://api.github.com/repos/kylef/Commander/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kylef/Commander/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kylef/Commander/teams","hooks_url":"https://api.github.com/repos/kylef/Commander/hooks","issue_events_url":"https://api.github.com/repos/kylef/Commander/issues/events{/number}","events_url":"https://api.github.com/repos/kylef/Commander/events","assignees_url":"https://api.github.com/repos/kylef/Commander/assignees{/user}","branches_url":"https://api.github.com/repos/kylef/Commander/branches{/branch}","tags_url":"https://api.github.com/repos/kylef/Commander/tags","blobs_url":"https://api.github.com/repos/kylef/Commander/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kylef/Commander/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kylef/Commander/git/refs{/sha}","trees_url":"https://api.github.com/repos/kylef/Commander/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kylef/Commander/statuses/{sha}","languages_url":"https://api.github.com/repos/kylef/Commander/languages","stargazers_url":"https://api.github.com/repos/kylef/Commander/stargazers","contributors_url":"https://api.github.com/repos/kylef/Commander/contributors","subscribers_url":"https://api.github.com/repos/kylef/Commander/subscribers","subscription_url":"https://api.github.com/repos/kylef/Commander/subscription","commits_url":"https://api.github.com/repos/kylef/Commander/commits{/sha}","git_commits_url":"https://api.github.com/repos/kylef/Commander/git/commits{/sha}","comments_url":"https://api.github.com/repos/kylef/Commander/comments{/number}","issue_comment_url":"https://api.github.com/repos/kylef/Commander/issues/comments{/number}","contents_url":"https://api.github.com/repos/kylef/Commander/contents/{+path}","compare_url":"https://api.github.com/repos/kylef/Commander/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kylef/Commander/merges","archive_url":"https://api.github.com/repos/kylef/Commander/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kylef/Commander/downloads","issues_url":"https://api.github.com/repos/kylef/Commander/issues{/number}","pulls_url":"https://api.github.com/repos/kylef/Commander/pulls{/number}","milestones_url":"https://api.github.com/repos/kylef/Commander/milestones{/number}","notifications_url":"https://api.github.com/repos/kylef/Commander/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kylef/Commander/labels{/name}","releases_url":"https://api.github.com/repos/kylef/Commander/releases{/id}","deployments_url":"https://api.github.com/repos/kylef/Commander/deployments","created_at":"2014-07-05T13:15:26Z","updated_at":"2016-12-14T14:50:19Z","pushed_at":"2016-12-15T16:06:16Z","git_url":"git://github.com/kylef/Commander.git","ssh_url":"git@github.com:kylef/Commander.git","clone_url":"https://github.com/kylef/Commander.git","svn_url":"https://github.com/kylef/Commander","homepage":"","size":193,"stargazers_count":659,"watchers_count":659,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":2,"forks":42,"open_issues":2,"watchers":659,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kylef/Commander/pulls/43"},"html":{"href":"https://github.com/kylef/Commander/pull/43"},"issue":{"href":"https://api.github.com/repos/kylef/Commander/issues/43"},"comments":{"href":"https://api.github.com/repos/kylef/Commander/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/kylef/Commander/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/kylef/Commander/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kylef/Commander/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/kylef/Commander/statuses/5b9f09c516684d4698b144a087b0f867394d37e7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"comments":1,"review_comments":6,"commits":3,"additions":8,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"kylef"}}