{"action":"created","issue":{"url":"https://api.github.com/repos/deis/deis/issues/3799","labels_url":"https://api.github.com/repos/deis/deis/issues/3799/labels{/name}","comments_url":"https://api.github.com/repos/deis/deis/issues/3799/comments","events_url":"https://api.github.com/repos/deis/deis/issues/3799/events","html_url":"https://github.com/deis/deis/pull/3799","id":85632464,"number":3799,"title":"feat(client): Various improvements to config operations","user":{"login":"nathansamson","id":93735,"avatar_url":"https://avatars.githubusercontent.com/u/93735?v=3","gravatar_id":"","url":"https://api.github.com/users/nathansamson","html_url":"https://github.com/nathansamson","followers_url":"https://api.github.com/users/nathansamson/followers","following_url":"https://api.github.com/users/nathansamson/following{/other_user}","gists_url":"https://api.github.com/users/nathansamson/gists{/gist_id}","starred_url":"https://api.github.com/users/nathansamson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathansamson/subscriptions","organizations_url":"https://api.github.com/users/nathansamson/orgs","repos_url":"https://api.github.com/users/nathansamson/repos","events_url":"https://api.github.com/users/nathansamson/events{/privacy}","received_events_url":"https://api.github.com/users/nathansamson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deis/deis/labels/client","name":"client","color":"ff69b4"}],"state":"open","locked":false,"assignee":{"login":"mboersma","id":73019,"avatar_url":"https://avatars.githubusercontent.com/u/73019?v=3","gravatar_id":"","url":"https://api.github.com/users/mboersma","html_url":"https://github.com/mboersma","followers_url":"https://api.github.com/users/mboersma/followers","following_url":"https://api.github.com/users/mboersma/following{/other_user}","gists_url":"https://api.github.com/users/mboersma/gists{/gist_id}","starred_url":"https://api.github.com/users/mboersma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboersma/subscriptions","organizations_url":"https://api.github.com/users/mboersma/orgs","repos_url":"https://api.github.com/users/mboersma/repos","events_url":"https://api.github.com/users/mboersma/events{/privacy}","received_events_url":"https://api.github.com/users/mboersma/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-06-05T21:03:04Z","updated_at":"2015-07-15T22:43:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/deis/deis/pulls/3799","html_url":"https://github.com/deis/deis/pull/3799","diff_url":"https://github.com/deis/deis/pull/3799.diff","patch_url":"https://github.com/deis/deis/pull/3799.patch"},"body":"This includes 2 improvements to config operations.\r\n\r\nReplaces #3798 \r\n\r\nNote that this version is not manually tested by me, as it is not compatible with my cluster. As the changes are in code that seemingly didn't change since 1.6.1 I don't expect any troubles, but you never know..."},"comment":{"url":"https://api.github.com/repos/deis/deis/issues/comments/121769477","html_url":"https://github.com/deis/deis/pull/3799#issuecomment-121769477","issue_url":"https://api.github.com/repos/deis/deis/issues/3799","id":121769477,"user":{"login":"mboersma","id":73019,"avatar_url":"https://avatars.githubusercontent.com/u/73019?v=3","gravatar_id":"","url":"https://api.github.com/users/mboersma","html_url":"https://github.com/mboersma","followers_url":"https://api.github.com/users/mboersma/followers","following_url":"https://api.github.com/users/mboersma/following{/other_user}","gists_url":"https://api.github.com/users/mboersma/gists{/gist_id}","starred_url":"https://api.github.com/users/mboersma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboersma/subscriptions","organizations_url":"https://api.github.com/users/mboersma/orgs","repos_url":"https://api.github.com/users/mboersma/repos","events_url":"https://api.github.com/users/mboersma/events{/privacy}","received_events_url":"https://api.github.com/users/mboersma/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T22:43:56Z","updated_at":"2015-07-15T22:43:56Z","body":"Highlighting the config that actually changed is nice. (I added asterisks to indicate where bold green ANSI highlighting was applied.)\r\n```\r\n$ deis config:set FOO=bar\r\nCreating config... done, v2\r\n\r\n=== outlaw-aqualung\r\n*FOO*    bar\r\n$ deis config:set BOO=far\r\nCreating config... done, v3\r\n\r\n=== outlaw-aqualung\r\n*BOO*    far\r\nFOO      bar\r\n$ deis config:set FOO=baz\r\nCreating config... done, v4\r\n\r\n=== outlaw-aqualung\r\nBOO      far\r\n*FOO*    baz\r\n$ deis config:list\r\n=== outlaw-aqualung Config\r\nBOO      far\r\nFOO      baz\r\n$ deis config:set FOO=bax BAX=foo\r\nCreating config... done, v5\r\n\r\n=== outlaw-aqualung\r\n*BAX*    foo\r\nBOO      far\r\n*FOO*    bax\r\n```\r\n\r\nIf this PR could use the termcolor library as suggested I think it's ready to go. Something like:\r\n```python\r\nself._logger.info(\"{} {}\".format(colored(key, 'green'), v))\r\n```"}}