{"action":"reopened","number":105,"pull_request":{"url":"https://api.github.com/repos/ansible/tower-cli/pulls/105","id":53451273,"html_url":"https://github.com/ansible/tower-cli/pull/105","diff_url":"https://github.com/ansible/tower-cli/pull/105.diff","patch_url":"https://github.com/ansible/tower-cli/pull/105.patch","issue_url":"https://api.github.com/repos/ansible/tower-cli/issues/105","number":105,"state":"open","locked":false,"title":"Standard out functionality","user":{"login":"AlanCoding","id":1385596,"avatar_url":"https://avatars.githubusercontent.com/u/1385596?v=3","gravatar_id":"","url":"https://api.github.com/users/AlanCoding","html_url":"https://github.com/AlanCoding","followers_url":"https://api.github.com/users/AlanCoding/followers","following_url":"https://api.github.com/users/AlanCoding/following{/other_user}","gists_url":"https://api.github.com/users/AlanCoding/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanCoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanCoding/subscriptions","organizations_url":"https://api.github.com/users/AlanCoding/orgs","repos_url":"https://api.github.com/users/AlanCoding/repos","events_url":"https://api.github.com/users/AlanCoding/events{/privacy}","received_events_url":"https://api.github.com/users/AlanCoding/received_events","type":"User","site_admin":false},"body":"Streaming standard out:\r\n\r\n    tower-cli job launch --job-template=74 --monitor --stdout\r\n\r\nGetting the standard out from a job that has already ran:\r\n\r\n    tower-cli job stdout 572\r\n\r\nThis functionality is focused very heavily on a human user running tower-cli from the command line. It also gets us somewhat closer to Ansible core parity, because it allows you to kick off a job and see the standard out stream back to you as it goes. Of course, it's a little more complicated with Tower because it will sit in the queue before it can start, and other factors like that. The testing of this so-far has consisted of trial and error getting the output to format exactly like what we want. However, if the `--stdout` flag is not given, there should not be any possibility of negatively affecting other features of tower-cli.\r\n\r\nThe unit test situation is going to be a little complicated, so I haven't even attempted to write tests just yet. Since all of the streaming exists inside of a loop in the monitor method, it is very difficult to try all of the permutations in the job unit tests without setting up a vast universe of mock. We will need some feedback on that, so I'm marking this \"in progress\".\r\n\r\nFixes #74 ","created_at":"2015-12-11T22:16:31Z","updated_at":"2016-02-24T02:00:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb223fefd146c11faf5a8d43a599ef3e4e7789ce","assignee":null,"milestone":{"url":"https://api.github.com/repos/ansible/tower-cli/milestones/4","html_url":"https://github.com/ansible/tower-cli/milestones/release_2.3.2","labels_url":"https://api.github.com/repos/ansible/tower-cli/milestones/4/labels","id":1442889,"number":4,"title":"release_2.3.2","description":"","creator":{"login":"AlanCoding","id":1385596,"avatar_url":"https://avatars.githubusercontent.com/u/1385596?v=3","gravatar_id":"","url":"https://api.github.com/users/AlanCoding","html_url":"https://github.com/AlanCoding","followers_url":"https://api.github.com/users/AlanCoding/followers","following_url":"https://api.github.com/users/AlanCoding/following{/other_user}","gists_url":"https://api.github.com/users/AlanCoding/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanCoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanCoding/subscriptions","organizations_url":"https://api.github.com/users/AlanCoding/orgs","repos_url":"https://api.github.com/users/AlanCoding/repos","events_url":"https://api.github.com/users/AlanCoding/events{/privacy}","received_events_url":"https://api.github.com/users/AlanCoding/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":1,"state":"open","created_at":"2015-12-03T20:10:08Z","updated_at":"2016-02-24T02:00:51Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/ansible/tower-cli/pulls/105/commits","review_comments_url":"https://api.github.com/repos/ansible/tower-cli/pulls/105/comments","review_comment_url":"https://api.github.com/repos/ansible/tower-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/tower-cli/issues/105/comments","statuses_url":"https://api.github.com/repos/ansible/tower-cli/statuses/225c5ddbecf4e41b6e8cb1530300304f829f27d1","head":{"label":"AlanCoding:stdm","ref":"stdm","sha":"225c5ddbecf4e41b6e8cb1530300304f829f27d1","user":{"login":"AlanCoding","id":1385596,"avatar_url":"https://avatars.githubusercontent.com/u/1385596?v=3","gravatar_id":"","url":"https://api.github.com/users/AlanCoding","html_url":"https://github.com/AlanCoding","followers_url":"https://api.github.com/users/AlanCoding/followers","following_url":"https://api.github.com/users/AlanCoding/following{/other_user}","gists_url":"https://api.github.com/users/AlanCoding/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanCoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanCoding/subscriptions","organizations_url":"https://api.github.com/users/AlanCoding/orgs","repos_url":"https://api.github.com/users/AlanCoding/repos","events_url":"https://api.github.com/users/AlanCoding/events{/privacy}","received_events_url":"https://api.github.com/users/AlanCoding/received_events","type":"User","site_admin":false},"repo":{"id":40971041,"name":"tower-cli","full_name":"AlanCoding/tower-cli","owner":{"login":"AlanCoding","id":1385596,"avatar_url":"https://avatars.githubusercontent.com/u/1385596?v=3","gravatar_id":"","url":"https://api.github.com/users/AlanCoding","html_url":"https://github.com/AlanCoding","followers_url":"https://api.github.com/users/AlanCoding/followers","following_url":"https://api.github.com/users/AlanCoding/following{/other_user}","gists_url":"https://api.github.com/users/AlanCoding/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanCoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanCoding/subscriptions","organizations_url":"https://api.github.com/users/AlanCoding/orgs","repos_url":"https://api.github.com/users/AlanCoding/repos","events_url":"https://api.github.com/users/AlanCoding/events{/privacy}","received_events_url":"https://api.github.com/users/AlanCoding/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlanCoding/tower-cli","description":"Command line tool and client library for Ansible Tower's REST API","fork":true,"url":"https://api.github.com/repos/AlanCoding/tower-cli","forks_url":"https://api.github.com/repos/AlanCoding/tower-cli/forks","keys_url":"https://api.github.com/repos/AlanCoding/tower-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlanCoding/tower-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlanCoding/tower-cli/teams","hooks_url":"https://api.github.com/repos/AlanCoding/tower-cli/hooks","issue_events_url":"https://api.github.com/repos/AlanCoding/tower-cli/issues/events{/number}","events_url":"https://api.github.com/repos/AlanCoding/tower-cli/events","assignees_url":"https://api.github.com/repos/AlanCoding/tower-cli/assignees{/user}","branches_url":"https://api.github.com/repos/AlanCoding/tower-cli/branches{/branch}","tags_url":"https://api.github.com/repos/AlanCoding/tower-cli/tags","blobs_url":"https://api.github.com/repos/AlanCoding/tower-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlanCoding/tower-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlanCoding/tower-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlanCoding/tower-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlanCoding/tower-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/AlanCoding/tower-cli/languages","stargazers_url":"https://api.github.com/repos/AlanCoding/tower-cli/stargazers","contributors_url":"https://api.github.com/repos/AlanCoding/tower-cli/contributors","subscribers_url":"https://api.github.com/repos/AlanCoding/tower-cli/subscribers","subscription_url":"https://api.github.com/repos/AlanCoding/tower-cli/subscription","commits_url":"https://api.github.com/repos/AlanCoding/tower-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlanCoding/tower-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlanCoding/tower-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlanCoding/tower-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlanCoding/tower-cli/contents/{+path}","compare_url":"https://api.github.com/repos/AlanCoding/tower-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlanCoding/tower-cli/merges","archive_url":"https://api.github.com/repos/AlanCoding/tower-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlanCoding/tower-cli/downloads","issues_url":"https://api.github.com/repos/AlanCoding/tower-cli/issues{/number}","pulls_url":"https://api.github.com/repos/AlanCoding/tower-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/AlanCoding/tower-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/AlanCoding/tower-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlanCoding/tower-cli/labels{/name}","releases_url":"https://api.github.com/repos/AlanCoding/tower-cli/releases{/id}","deployments_url":"https://api.github.com/repos/AlanCoding/tower-cli/deployments","created_at":"2015-08-18T12:37:27Z","updated_at":"2015-08-18T12:37:28Z","pushed_at":"2016-02-22T21:21:12Z","git_url":"git://github.com/AlanCoding/tower-cli.git","ssh_url":"git@github.com:AlanCoding/tower-cli.git","clone_url":"https://github.com/AlanCoding/tower-cli.git","svn_url":"https://github.com/AlanCoding/tower-cli","homepage":"ansible.com/tower","size":365,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ansible:master","ref":"master","sha":"180177164a422766105d9c975b79f6043079817f","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":12345160,"name":"tower-cli","full_name":"ansible/tower-cli","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/tower-cli","description":"Command line tool and client library for Ansible Tower's REST API","fork":false,"url":"https://api.github.com/repos/ansible/tower-cli","forks_url":"https://api.github.com/repos/ansible/tower-cli/forks","keys_url":"https://api.github.com/repos/ansible/tower-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/tower-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/tower-cli/teams","hooks_url":"https://api.github.com/repos/ansible/tower-cli/hooks","issue_events_url":"https://api.github.com/repos/ansible/tower-cli/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/tower-cli/events","assignees_url":"https://api.github.com/repos/ansible/tower-cli/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/tower-cli/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/tower-cli/tags","blobs_url":"https://api.github.com/repos/ansible/tower-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/tower-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/tower-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/tower-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/tower-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/tower-cli/languages","stargazers_url":"https://api.github.com/repos/ansible/tower-cli/stargazers","contributors_url":"https://api.github.com/repos/ansible/tower-cli/contributors","subscribers_url":"https://api.github.com/repos/ansible/tower-cli/subscribers","subscription_url":"https://api.github.com/repos/ansible/tower-cli/subscription","commits_url":"https://api.github.com/repos/ansible/tower-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/tower-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/tower-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/tower-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/tower-cli/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/tower-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/tower-cli/merges","archive_url":"https://api.github.com/repos/ansible/tower-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/tower-cli/downloads","issues_url":"https://api.github.com/repos/ansible/tower-cli/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/tower-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/tower-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/tower-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/tower-cli/labels{/name}","releases_url":"https://api.github.com/repos/ansible/tower-cli/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/tower-cli/deployments","created_at":"2013-08-24T15:19:04Z","updated_at":"2016-02-22T16:35:58Z","pushed_at":"2016-02-22T23:07:26Z","git_url":"git://github.com/ansible/tower-cli.git","ssh_url":"git@github.com:ansible/tower-cli.git","clone_url":"https://github.com/ansible/tower-cli.git","svn_url":"https://github.com/ansible/tower-cli","homepage":"ansible.com/tower","size":399,"stargazers_count":99,"watchers_count":99,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":21,"forks":43,"open_issues":21,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/tower-cli/pulls/105"},"html":{"href":"https://github.com/ansible/tower-cli/pull/105"},"issue":{"href":"https://api.github.com/repos/ansible/tower-cli/issues/105"},"comments":{"href":"https://api.github.com/repos/ansible/tower-cli/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/tower-cli/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/tower-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/tower-cli/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/tower-cli/statuses/225c5ddbecf4e41b6e8cb1530300304f829f27d1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":1,"review_comments":0,"commits":5,"additions":92,"deletions":24,"changed_files":5}}