{"action":"created","issue":{"url":"https://api.github.com/repos/openfaas/faas-cli/issues/431","repository_url":"https://api.github.com/repos/openfaas/faas-cli","labels_url":"https://api.github.com/repos/openfaas/faas-cli/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/openfaas/faas-cli/issues/431/comments","events_url":"https://api.github.com/repos/openfaas/faas-cli/issues/431/events","html_url":"https://github.com/openfaas/faas-cli/pull/431","id":339167190,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5OTA5Mzk1","number":431,"title":"Add gateway & provider details to version command","user":{"login":"ewilde","id":329397,"node_id":"MDQ6VXNlcjMyOTM5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/329397?v=4","gravatar_id":"","url":"https://api.github.com/users/ewilde","html_url":"https://github.com/ewilde","followers_url":"https://api.github.com/users/ewilde/followers","following_url":"https://api.github.com/users/ewilde/following{/other_user}","gists_url":"https://api.github.com/users/ewilde/gists{/gist_id}","starred_url":"https://api.github.com/users/ewilde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewilde/subscriptions","organizations_url":"https://api.github.com/users/ewilde/orgs","repos_url":"https://api.github.com/users/ewilde/repos","events_url":"https://api.github.com/users/ewilde/events{/privacy}","received_events_url":"https://api.github.com/users/ewilde/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-07-07T18:55:51Z","updated_at":"2018-07-17T15:21:37Z","closed_at":"2018-07-17T15:21:13Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/openfaas/faas-cli/pulls/431","html_url":"https://github.com/openfaas/faas-cli/pull/431","diff_url":"https://github.com/openfaas/faas-cli/pull/431.diff","patch_url":"https://github.com/openfaas/faas-cli/pull/431.patch"},"body":"## Description\r\nAdd gateway & provider details to version command  …\r\n1. If available display gateway uri, version, sha and last commit\r\nmessage\r\n2. Display provider name, orchestration, version and sha\r\n \r\n## Motivation and Context\r\n- [x] I have raised an issue to propose this change #427 \r\n\r\n## How Has This Been Tested?\r\n### Gateway version 0.8.3\r\n```\r\n$ faas-cli version\r\n\r\n  ___                   _____           ____\r\n / _ \\ _ __   ___ _ __ |  ___|_ _  __ _/ ___|\r\n| | | | '_ \\ / _ \\ '_ \\| |_ / _` |/ _` \\___ \\\r\n| |_| | |_) |  __/ | | |  _| (_| | (_| |___) |\r\n \\___/| .__/ \\___|_| |_|_|  \\__,_|\\__,_|____/\r\n      |_|\r\n\r\nCLI commit: c617c05185a2f6bfc7150f90fe9ad6937f23f9ee\r\nCLI version: dev\r\n- Gateway \r\n        uri: http://127.0.0.1:8080\r\n- Provider \r\n        name: faas-swarm \r\n        orchestration: swarm \r\n        version: 0.3.5 \r\n        sha: b8cc399b5eadfb59956b8341a44ea3ba4acf1e7f\r\n```\r\n### Gateway version 0.8.5\r\n```\r\n$ faas-cli version\r\n\r\n  ___                   _____           ____\r\n / _ \\ _ __   ___ _ __ |  ___|_ _  __ _/ ___|\r\n| | | | '_ \\ / _ \\ '_ \\| |_ / _` |/ _` \\___ \\\r\n| |_| | |_) |  __/ | | |  _| (_| | (_| |___) |\r\n \\___/| .__/ \\___|_| |_|_|  \\__,_|\\__,_|____/\r\n      |_|\r\n\r\nCLI commit: c617c05185a2f6bfc7150f90fe9ad6937f23f9ee\r\nCLI version: dev\r\n- Gateway \r\n        uri: http://127.0.0.1:8080\r\n        version: 0.8.5\r\n        sha: 00ad00b651abeaa39dca82d32c26e9246d136951\r\n        commit: Push gateway image to both Quay.io and Docker Hub\r\n- Provider \r\n        name: faas-swarm \r\n        orchestration: swarm \r\n        version: 0.3.5 \r\n        sha: b8cc399b5eadfb59956b8341a44ea3ba4acf1e7f\r\n```\r\n\r\n### Gateway version 0.8.5 and --gateway flag\r\n```\r\n$ faas-cli version --gateway http://localhost:8080\r\n  ___                   _____           ____\r\n / _ \\ _ __   ___ _ __ |  ___|_ _  __ _/ ___|\r\n| | | | '_ \\ / _ \\ '_ \\| |_ / _` |/ _` \\___ \\\r\n| |_| | |_) |  __/ | | |  _| (_| | (_| |___) |\r\n \\___/| .__/ \\___|_| |_|_|  \\__,_|\\__,_|____/\r\n      |_|\r\n\r\nCLI commit: c617c05185a2f6bfc7150f90fe9ad6937f23f9ee\r\nCLI version: dev\r\n- Gateway \r\n        uri: http://localhost:8080\r\n        version: 0.8.5\r\n        sha: 00ad00b651abeaa39dca82d32c26e9246d136951\r\n        commit: Push gateway image to both Quay.io and Docker Hub\r\n- Provider \r\n        name: faas-swarm \r\n        orchestration: swarm \r\n        version: 0.3.5 \r\n        sha: b8cc399b5eadfb59956b8341a44ea3ba4acf1e7f\r\n\r\n```\r\n## Types of changes\r\n- [x] New feature (non-breaking change which adds functionality)\r\n\r\n## Checklist:\r\n- [x] My code follows the code style of this project.\r\n- [ ] My change requires a change to the documentation?\r\n- [ ] I have updated the documentation accordingly.\r\n- [x] I've read the [CONTRIBUTION](https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md) guide\r\n- [x] I have signed-off my commits with `git commit -s`\r\n- [x] I have added tests to cover my changes.\r\n- [x] All new and existing tests passed.\r\n"},"comment":{"url":"https://api.github.com/repos/openfaas/faas-cli/issues/comments/405621472","html_url":"https://github.com/openfaas/faas-cli/pull/431#issuecomment-405621472","issue_url":"https://api.github.com/repos/openfaas/faas-cli/issues/431","id":405621472,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTYyMTQ3Mg==","user":{"login":"alexellis","id":6358735,"node_id":"MDQ6VXNlcjYzNTg3MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/6358735?v=4","gravatar_id":"","url":"https://api.github.com/users/alexellis","html_url":"https://github.com/alexellis","followers_url":"https://api.github.com/users/alexellis/followers","following_url":"https://api.github.com/users/alexellis/following{/other_user}","gists_url":"https://api.github.com/users/alexellis/gists{/gist_id}","starred_url":"https://api.github.com/users/alexellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexellis/subscriptions","organizations_url":"https://api.github.com/users/alexellis/orgs","repos_url":"https://api.github.com/users/alexellis/repos","events_url":"https://api.github.com/users/alexellis/events{/privacy}","received_events_url":"https://api.github.com/users/alexellis/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T15:21:37Z","updated_at":"2018-07-17T15:21:37Z","author_association":"MEMBER","body":"Hi Ed, I'll merge this and would like a follow-up issue to track moving from the custom interface{} to the versioned struct.\r\n\r\nAlex"}}
{"actor":{"display_login":"alexellis"}}