{"action":"created","issue":{"url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-sdk/issues/171","repository_url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-sdk","labels_url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-sdk/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-sdk/issues/171/comments","events_url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-sdk/issues/171/events","html_url":"https://github.com/IBM-Cloud/ibm-cloud-cli-sdk/issues/171","id":428113134,"node_id":"MDU6SXNzdWU0MjgxMTMxMzQ=","number":171,"title":"Feature request: support autocompletion in plugins","user":{"login":"kitd","id":533420,"node_id":"MDQ6VXNlcjUzMzQyMA==","avatar_url":"https://avatars1.githubusercontent.com/u/533420?v=4","gravatar_id":"","url":"https://api.github.com/users/kitd","html_url":"https://github.com/kitd","followers_url":"https://api.github.com/users/kitd/followers","following_url":"https://api.github.com/users/kitd/following{/other_user}","gists_url":"https://api.github.com/users/kitd/gists{/gist_id}","starred_url":"https://api.github.com/users/kitd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitd/subscriptions","organizations_url":"https://api.github.com/users/kitd/orgs","repos_url":"https://api.github.com/users/kitd/repos","events_url":"https://api.github.com/users/kitd/events{/privacy}","received_events_url":"https://api.github.com/users/kitd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-02T09:19:19Z","updated_at":"2019-04-18T02:56:56Z","closed_at":null,"author_association":"NONE","body":"Hello. We (IBM Event Streams) are writing a `cloudctl` plugin.\r\n\r\nWe would like to support dynamic autocompletion of flag values in the plugin but the `--generate-bash-completion` flag never makes it through to our plugin to allow this to happen.\r\n\r\nThere doesn't appear to be an option to define global plugin flags, which would have been an acceptable alternative.\r\n\r\nSo we have had to inject an hidden `--autocomplete` flag to each command, which is a pain to maintain and test.\r\n\r\nCould we request either to have the `--generate-bash-completion` flag passed through to the plugin, or allow global flags to be defined for a plugin?"},"comment":{"url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-sdk/issues/comments/484337178","html_url":"https://github.com/IBM-Cloud/ibm-cloud-cli-sdk/issues/171#issuecomment-484337178","issue_url":"https://api.github.com/repos/IBM-Cloud/ibm-cloud-cli-sdk/issues/171","id":484337178,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NDMzNzE3OA==","user":{"login":"weieigao","id":2090295,"node_id":"MDQ6VXNlcjIwOTAyOTU=","avatar_url":"https://avatars0.githubusercontent.com/u/2090295?v=4","gravatar_id":"","url":"https://api.github.com/users/weieigao","html_url":"https://github.com/weieigao","followers_url":"https://api.github.com/users/weieigao/followers","following_url":"https://api.github.com/users/weieigao/following{/other_user}","gists_url":"https://api.github.com/users/weieigao/gists{/gist_id}","starred_url":"https://api.github.com/users/weieigao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weieigao/subscriptions","organizations_url":"https://api.github.com/users/weieigao/orgs","repos_url":"https://api.github.com/users/weieigao/repos","events_url":"https://api.github.com/users/weieigao/events{/privacy}","received_events_url":"https://api.github.com/users/weieigao/received_events","type":"User","site_admin":false},"created_at":"2019-04-18T02:56:56Z","updated_at":"2019-04-18T02:56:56Z","author_association":"COLLABORATOR","body":"@kitd  see https://github.com/IBM-Cloud/ibm-cloud-cli-sdk/pull/177. "}}
{"actor":{"display_login":"weieigao"}}