{"action":"created","comment":{"url":"https://api.github.com/repos/kinvolk/habitat/pulls/comments/175732529","pull_request_review_id":105308015,"id":175732529,"diff_hunk":"@@ -55,13 +55,37 @@ pub fn export_for_cli_matches(ui: &mut UI, matches: &clap::ArgMatches) -> Result\n     let image = if !matches.is_present(\"NO_DOCKER_IMAGE\") {\n         export_docker::export_for_cli_matches(ui, &matches)?\n     } else {\n+        ui.status(\n+            Status::Custom('☛', String::from(\"Skipping\")),\n+            \"Docker image generation\",\n+        )?;\n         None\n     };\n     let mut manifest = Manifest::new_from_cli_matches(ui, &matches, image)?;\n \n     let mut write: Box<Write> = match matches.value_of(\"OUTPUT\") {\n-        Some(o) if o != \"-\" => Box::new(File::create(o)?),\n-        _ => Box::new(io::stdout()),\n+        Some(o) if o != \"-\" => {\n+            ui.status(\n+                Status::Creating,\n+                format!(\"Kubernetes manifest file {}\", o),\n+            )?;\n+            let file = Box::new(File::create(o)?);\n+            ui.status(\n+                Status::Created,\n+                format!(\"Kubernetes manifest file {}\", o),\n+            )?;\n+\n+            file\n+        }\n+        _ => {\n+            let stdout = Box::new(io::stdout());\n+            ui.status(","path":"components/pkg-export-kubernetes/src/lib.rs","position":39,"original_position":39,"commit_id":"f499750f73d8b62e6390c503a03fbe304cbfc813","original_commit_id":"f499750f73d8b62e6390c503a03fbe304cbfc813","user":{"login":"krnowak","id":96081,"avatar_url":"https://avatars3.githubusercontent.com/u/96081?v=4","gravatar_id":"","url":"https://api.github.com/users/krnowak","html_url":"https://github.com/krnowak","followers_url":"https://api.github.com/users/krnowak/followers","following_url":"https://api.github.com/users/krnowak/following{/other_user}","gists_url":"https://api.github.com/users/krnowak/gists{/gist_id}","starred_url":"https://api.github.com/users/krnowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krnowak/subscriptions","organizations_url":"https://api.github.com/users/krnowak/orgs","repos_url":"https://api.github.com/users/krnowak/repos","events_url":"https://api.github.com/users/krnowak/events{/privacy}","received_events_url":"https://api.github.com/users/krnowak/received_events","type":"User","site_admin":false},"body":"Then `-` is pointless, isn't it? I would say that outputting to stdout would be useful when you want to redirect an output in a shell to a file by appending (`>>`).","created_at":"2018-03-20T11:29:55Z","updated_at":"2018-03-20T11:29:56Z","html_url":"https://github.com/kinvolk/habitat/pull/29#discussion_r175732529","pull_request_url":"https://api.github.com/repos/kinvolk/habitat/pulls/29","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/kinvolk/habitat/pulls/comments/175732529"},"html":{"href":"https://github.com/kinvolk/habitat/pull/29#discussion_r175732529"},"pull_request":{"href":"https://api.github.com/repos/kinvolk/habitat/pulls/29"}},"in_reply_to_id":175437588},"pull_request":{"url":"https://api.github.com/repos/kinvolk/habitat/pulls/29","id":175553868,"html_url":"https://github.com/kinvolk/habitat/pull/29","diff_url":"https://github.com/kinvolk/habitat/pull/29.diff","patch_url":"https://github.com/kinvolk/habitat/pull/29.patch","issue_url":"https://api.github.com/repos/kinvolk/habitat/issues/29","number":29,"state":"open","locked":false,"title":"pkg-export-k8s: Add status reporting","user":{"login":"zeenix","id":2027,"avatar_url":"https://avatars3.githubusercontent.com/u/2027?v=4","gravatar_id":"","url":"https://api.github.com/users/zeenix","html_url":"https://github.com/zeenix","followers_url":"https://api.github.com/users/zeenix/followers","following_url":"https://api.github.com/users/zeenix/following{/other_user}","gists_url":"https://api.github.com/users/zeenix/gists{/gist_id}","starred_url":"https://api.github.com/users/zeenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeenix/subscriptions","organizations_url":"https://api.github.com/users/zeenix/orgs","repos_url":"https://api.github.com/users/zeenix/repos","events_url":"https://api.github.com/users/zeenix/events{/privacy}","received_events_url":"https://api.github.com/users/zeenix/received_events","type":"User","site_admin":false},"body":"Currently the kubernetes exporter doesn't report anything about what its doing. Let's add some basic status reporting.\r\n\r\nThis is per https://github.com/kinvolk/CLIENT-Chef/issues/41","created_at":"2018-03-16T14:46:07Z","updated_at":"2018-03-20T11:29:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3c99c82c4f32147411edcf3ea2f994c1cb59109","assignee":null,"assignees":[],"requested_reviewers":[{"login":"asymmetric","id":101816,"avatar_url":"https://avatars1.githubusercontent.com/u/101816?v=4","gravatar_id":"","url":"https://api.github.com/users/asymmetric","html_url":"https://github.com/asymmetric","followers_url":"https://api.github.com/users/asymmetric/followers","following_url":"https://api.github.com/users/asymmetric/following{/other_user}","gists_url":"https://api.github.com/users/asymmetric/gists{/gist_id}","starred_url":"https://api.github.com/users/asymmetric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asymmetric/subscriptions","organizations_url":"https://api.github.com/users/asymmetric/orgs","repos_url":"https://api.github.com/users/asymmetric/repos","events_url":"https://api.github.com/users/asymmetric/events{/privacy}","received_events_url":"https://api.github.com/users/asymmetric/received_events","type":"User","site_admin":false},{"login":"LiliC","id":6232346,"avatar_url":"https://avatars2.githubusercontent.com/u/6232346?v=4","gravatar_id":"","url":"https://api.github.com/users/LiliC","html_url":"https://github.com/LiliC","followers_url":"https://api.github.com/users/LiliC/followers","following_url":"https://api.github.com/users/LiliC/following{/other_user}","gists_url":"https://api.github.com/users/LiliC/gists{/gist_id}","starred_url":"https://api.github.com/users/LiliC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiliC/subscriptions","organizations_url":"https://api.github.com/users/LiliC/orgs","repos_url":"https://api.github.com/users/LiliC/repos","events_url":"https://api.github.com/users/LiliC/events{/privacy}","received_events_url":"https://api.github.com/users/LiliC/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kinvolk/habitat/pulls/29/commits","review_comments_url":"https://api.github.com/repos/kinvolk/habitat/pulls/29/comments","review_comment_url":"https://api.github.com/repos/kinvolk/habitat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kinvolk/habitat/issues/29/comments","statuses_url":"https://api.github.com/repos/kinvolk/habitat/statuses/f499750f73d8b62e6390c503a03fbe304cbfc813","head":{"label":"kinvolk:zeenix/k8s-logging","ref":"zeenix/k8s-logging","sha":"f499750f73d8b62e6390c503a03fbe304cbfc813","user":{"login":"kinvolk","id":14073052,"avatar_url":"https://avatars0.githubusercontent.com/u/14073052?v=4","gravatar_id":"","url":"https://api.github.com/users/kinvolk","html_url":"https://github.com/kinvolk","followers_url":"https://api.github.com/users/kinvolk/followers","following_url":"https://api.github.com/users/kinvolk/following{/other_user}","gists_url":"https://api.github.com/users/kinvolk/gists{/gist_id}","starred_url":"https://api.github.com/users/kinvolk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinvolk/subscriptions","organizations_url":"https://api.github.com/users/kinvolk/orgs","repos_url":"https://api.github.com/users/kinvolk/repos","events_url":"https://api.github.com/users/kinvolk/events{/privacy}","received_events_url":"https://api.github.com/users/kinvolk/received_events","type":"Organization","site_admin":false},"repo":{"id":96106298,"name":"habitat","full_name":"kinvolk/habitat","owner":{"login":"kinvolk","id":14073052,"avatar_url":"https://avatars0.githubusercontent.com/u/14073052?v=4","gravatar_id":"","url":"https://api.github.com/users/kinvolk","html_url":"https://github.com/kinvolk","followers_url":"https://api.github.com/users/kinvolk/followers","following_url":"https://api.github.com/users/kinvolk/following{/other_user}","gists_url":"https://api.github.com/users/kinvolk/gists{/gist_id}","starred_url":"https://api.github.com/users/kinvolk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinvolk/subscriptions","organizations_url":"https://api.github.com/users/kinvolk/orgs","repos_url":"https://api.github.com/users/kinvolk/repos","events_url":"https://api.github.com/users/kinvolk/events{/privacy}","received_events_url":"https://api.github.com/users/kinvolk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kinvolk/habitat","description":"Modern applications with built-in automation","fork":true,"url":"https://api.github.com/repos/kinvolk/habitat","forks_url":"https://api.github.com/repos/kinvolk/habitat/forks","keys_url":"https://api.github.com/repos/kinvolk/habitat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinvolk/habitat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinvolk/habitat/teams","hooks_url":"https://api.github.com/repos/kinvolk/habitat/hooks","issue_events_url":"https://api.github.com/repos/kinvolk/habitat/issues/events{/number}","events_url":"https://api.github.com/repos/kinvolk/habitat/events","assignees_url":"https://api.github.com/repos/kinvolk/habitat/assignees{/user}","branches_url":"https://api.github.com/repos/kinvolk/habitat/branches{/branch}","tags_url":"https://api.github.com/repos/kinvolk/habitat/tags","blobs_url":"https://api.github.com/repos/kinvolk/habitat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinvolk/habitat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinvolk/habitat/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinvolk/habitat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinvolk/habitat/statuses/{sha}","languages_url":"https://api.github.com/repos/kinvolk/habitat/languages","stargazers_url":"https://api.github.com/repos/kinvolk/habitat/stargazers","contributors_url":"https://api.github.com/repos/kinvolk/habitat/contributors","subscribers_url":"https://api.github.com/repos/kinvolk/habitat/subscribers","subscription_url":"https://api.github.com/repos/kinvolk/habitat/subscription","commits_url":"https://api.github.com/repos/kinvolk/habitat/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinvolk/habitat/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinvolk/habitat/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinvolk/habitat/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinvolk/habitat/contents/{+path}","compare_url":"https://api.github.com/repos/kinvolk/habitat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinvolk/habitat/merges","archive_url":"https://api.github.com/repos/kinvolk/habitat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinvolk/habitat/downloads","issues_url":"https://api.github.com/repos/kinvolk/habitat/issues{/number}","pulls_url":"https://api.github.com/repos/kinvolk/habitat/pulls{/number}","milestones_url":"https://api.github.com/repos/kinvolk/habitat/milestones{/number}","notifications_url":"https://api.github.com/repos/kinvolk/habitat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinvolk/habitat/labels{/name}","releases_url":"https://api.github.com/repos/kinvolk/habitat/releases{/id}","deployments_url":"https://api.github.com/repos/kinvolk/habitat/deployments","created_at":"2017-07-03T12:02:13Z","updated_at":"2018-03-16T14:45:34Z","pushed_at":"2018-03-20T11:09:23Z","git_url":"git://github.com/kinvolk/habitat.git","ssh_url":"git@github.com:kinvolk/habitat.git","clone_url":"https://github.com/kinvolk/habitat.git","svn_url":"https://github.com/kinvolk/habitat","homepage":"https://www.habitat.sh","size":76683,"stargazers_count":1,"watchers_count":1,"language":"Rust","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":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"kinvolk:master","ref":"master","sha":"2f22df76da8cc78b33beb72b3bbaeb8dd0a81acb","user":{"login":"kinvolk","id":14073052,"avatar_url":"https://avatars0.githubusercontent.com/u/14073052?v=4","gravatar_id":"","url":"https://api.github.com/users/kinvolk","html_url":"https://github.com/kinvolk","followers_url":"https://api.github.com/users/kinvolk/followers","following_url":"https://api.github.com/users/kinvolk/following{/other_user}","gists_url":"https://api.github.com/users/kinvolk/gists{/gist_id}","starred_url":"https://api.github.com/users/kinvolk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinvolk/subscriptions","organizations_url":"https://api.github.com/users/kinvolk/orgs","repos_url":"https://api.github.com/users/kinvolk/repos","events_url":"https://api.github.com/users/kinvolk/events{/privacy}","received_events_url":"https://api.github.com/users/kinvolk/received_events","type":"Organization","site_admin":false},"repo":{"id":96106298,"name":"habitat","full_name":"kinvolk/habitat","owner":{"login":"kinvolk","id":14073052,"avatar_url":"https://avatars0.githubusercontent.com/u/14073052?v=4","gravatar_id":"","url":"https://api.github.com/users/kinvolk","html_url":"https://github.com/kinvolk","followers_url":"https://api.github.com/users/kinvolk/followers","following_url":"https://api.github.com/users/kinvolk/following{/other_user}","gists_url":"https://api.github.com/users/kinvolk/gists{/gist_id}","starred_url":"https://api.github.com/users/kinvolk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinvolk/subscriptions","organizations_url":"https://api.github.com/users/kinvolk/orgs","repos_url":"https://api.github.com/users/kinvolk/repos","events_url":"https://api.github.com/users/kinvolk/events{/privacy}","received_events_url":"https://api.github.com/users/kinvolk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kinvolk/habitat","description":"Modern applications with built-in automation","fork":true,"url":"https://api.github.com/repos/kinvolk/habitat","forks_url":"https://api.github.com/repos/kinvolk/habitat/forks","keys_url":"https://api.github.com/repos/kinvolk/habitat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinvolk/habitat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinvolk/habitat/teams","hooks_url":"https://api.github.com/repos/kinvolk/habitat/hooks","issue_events_url":"https://api.github.com/repos/kinvolk/habitat/issues/events{/number}","events_url":"https://api.github.com/repos/kinvolk/habitat/events","assignees_url":"https://api.github.com/repos/kinvolk/habitat/assignees{/user}","branches_url":"https://api.github.com/repos/kinvolk/habitat/branches{/branch}","tags_url":"https://api.github.com/repos/kinvolk/habitat/tags","blobs_url":"https://api.github.com/repos/kinvolk/habitat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinvolk/habitat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinvolk/habitat/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinvolk/habitat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinvolk/habitat/statuses/{sha}","languages_url":"https://api.github.com/repos/kinvolk/habitat/languages","stargazers_url":"https://api.github.com/repos/kinvolk/habitat/stargazers","contributors_url":"https://api.github.com/repos/kinvolk/habitat/contributors","subscribers_url":"https://api.github.com/repos/kinvolk/habitat/subscribers","subscription_url":"https://api.github.com/repos/kinvolk/habitat/subscription","commits_url":"https://api.github.com/repos/kinvolk/habitat/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinvolk/habitat/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinvolk/habitat/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinvolk/habitat/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinvolk/habitat/contents/{+path}","compare_url":"https://api.github.com/repos/kinvolk/habitat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinvolk/habitat/merges","archive_url":"https://api.github.com/repos/kinvolk/habitat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinvolk/habitat/downloads","issues_url":"https://api.github.com/repos/kinvolk/habitat/issues{/number}","pulls_url":"https://api.github.com/repos/kinvolk/habitat/pulls{/number}","milestones_url":"https://api.github.com/repos/kinvolk/habitat/milestones{/number}","notifications_url":"https://api.github.com/repos/kinvolk/habitat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinvolk/habitat/labels{/name}","releases_url":"https://api.github.com/repos/kinvolk/habitat/releases{/id}","deployments_url":"https://api.github.com/repos/kinvolk/habitat/deployments","created_at":"2017-07-03T12:02:13Z","updated_at":"2018-03-16T14:45:34Z","pushed_at":"2018-03-20T11:09:23Z","git_url":"git://github.com/kinvolk/habitat.git","ssh_url":"git@github.com:kinvolk/habitat.git","clone_url":"https://github.com/kinvolk/habitat.git","svn_url":"https://github.com/kinvolk/habitat","homepage":"https://www.habitat.sh","size":76683,"stargazers_count":1,"watchers_count":1,"language":"Rust","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":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kinvolk/habitat/pulls/29"},"html":{"href":"https://github.com/kinvolk/habitat/pull/29"},"issue":{"href":"https://api.github.com/repos/kinvolk/habitat/issues/29"},"comments":{"href":"https://api.github.com/repos/kinvolk/habitat/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/kinvolk/habitat/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/kinvolk/habitat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kinvolk/habitat/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/kinvolk/habitat/statuses/f499750f73d8b62e6390c503a03fbe304cbfc813"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"krnowak"}}