{"action":"created","issue":{"url":"https://api.github.com/repos/spf13/pflag/issues/103","repository_url":"https://api.github.com/repos/spf13/pflag","labels_url":"https://api.github.com/repos/spf13/pflag/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/spf13/pflag/issues/103/comments","events_url":"https://api.github.com/repos/spf13/pflag/issues/103/events","html_url":"https://github.com/spf13/pflag/pull/103","id":185308684,"number":103,"title":"Update flag.go, add secret option","user":{"login":"xilabao","id":22786043,"avatar_url":"https://avatars.githubusercontent.com/u/22786043?v=3","gravatar_id":"","url":"https://api.github.com/users/xilabao","html_url":"https://github.com/xilabao","followers_url":"https://api.github.com/users/xilabao/followers","following_url":"https://api.github.com/users/xilabao/following{/other_user}","gists_url":"https://api.github.com/users/xilabao/gists{/gist_id}","starred_url":"https://api.github.com/users/xilabao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xilabao/subscriptions","organizations_url":"https://api.github.com/users/xilabao/orgs","repos_url":"https://api.github.com/users/xilabao/repos","events_url":"https://api.github.com/users/xilabao/events{/privacy}","received_events_url":"https://api.github.com/users/xilabao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-26T06:36:37Z","updated_at":"2016-11-21T12:53:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spf13/pflag/pulls/103","html_url":"https://github.com/spf13/pflag/pull/103","diff_url":"https://github.com/spf13/pflag/pull/103.diff","patch_url":"https://github.com/spf13/pflag/pull/103.patch"},"body":"I think we could add a new option for flag to make a distinction between secret flag and normal flag, let people can hide the value of flag by \"******\".\r\njust like --username=****** --password=******\r\n"},"comment":{"url":"https://api.github.com/repos/spf13/pflag/issues/comments/261929181","html_url":"https://github.com/spf13/pflag/pull/103#issuecomment-261929181","issue_url":"https://api.github.com/repos/spf13/pflag/issues/103","id":261929181,"user":{"login":"eparis","id":8093535,"avatar_url":"https://avatars.githubusercontent.com/u/8093535?v=3","gravatar_id":"","url":"https://api.github.com/users/eparis","html_url":"https://github.com/eparis","followers_url":"https://api.github.com/users/eparis/followers","following_url":"https://api.github.com/users/eparis/following{/other_user}","gists_url":"https://api.github.com/users/eparis/gists{/gist_id}","starred_url":"https://api.github.com/users/eparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eparis/subscriptions","organizations_url":"https://api.github.com/users/eparis/orgs","repos_url":"https://api.github.com/users/eparis/repos","events_url":"https://api.github.com/users/eparis/events{/privacy}","received_events_url":"https://api.github.com/users/eparis/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T12:53:59Z","updated_at":"2016-11-21T12:53:59Z","body":"I understand that you want to print ****** for some flag values. Can you show an example program of how you think this might be used? Because right now I don't see where cobra is getting you much of value.\r\n\r\nI see how `flag.Secret` can be useful to your program. Although I wonder if an annotation could solve that as well. But it still leaves me wondering how you think `SecretEncode` and `SecretDecode` should be used.\r\n\r\nmaybe a unit test would make it better for me to understand?"}}
{"actor":{"display_login":"eparis"}}