{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/hassio-cli/issues/127","repository_url":"https://api.github.com/repos/home-assistant/hassio-cli","labels_url":"https://api.github.com/repos/home-assistant/hassio-cli/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/hassio-cli/issues/127/comments","events_url":"https://api.github.com/repos/home-assistant/hassio-cli/issues/127/events","html_url":"https://github.com/home-assistant/hassio-cli/pull/127","id":379513411,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5OTQ1OTA5","number":127,"title":"WIP: Next generation CLI (2.0.0)","user":{"login":"frenck","id":195327,"node_id":"MDQ6VXNlcjE5NTMyNw==","avatar_url":"https://avatars0.githubusercontent.com/u/195327?v=4","gravatar_id":"","url":"https://api.github.com/users/frenck","html_url":"https://github.com/frenck","followers_url":"https://api.github.com/users/frenck/followers","following_url":"https://api.github.com/users/frenck/following{/other_user}","gists_url":"https://api.github.com/users/frenck/gists{/gist_id}","starred_url":"https://api.github.com/users/frenck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenck/subscriptions","organizations_url":"https://api.github.com/users/frenck/orgs","repos_url":"https://api.github.com/users/frenck/repos","events_url":"https://api.github.com/users/frenck/events{/privacy}","received_events_url":"https://api.github.com/users/frenck/received_events","type":"User","site_admin":false},"labels":[{"id":845300076,"node_id":"MDU6TGFiZWw4NDUzMDAwNzY=","url":"https://api.github.com/repos/home-assistant/hassio-cli/labels/Breaking%20Change","name":"Breaking Change","color":"d93f0b","default":false},{"id":787898488,"node_id":"MDU6TGFiZWw3ODc4OTg0ODg=","url":"https://api.github.com/repos/home-assistant/hassio-cli/labels/cla-signed","name":"cla-signed","color":"ededed","default":false},{"id":782953047,"node_id":"MDU6TGFiZWw3ODI5NTMwNDc=","url":"https://api.github.com/repos/home-assistant/hassio-cli/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":782953049,"node_id":"MDU6TGFiZWw3ODI5NTMwNDk=","url":"https://api.github.com/repos/home-assistant/hassio-cli/labels/help%20wanted","name":"help wanted","color":"33aa3f","default":true}],"state":"open","locked":false,"assignee":{"login":"frenck","id":195327,"node_id":"MDQ6VXNlcjE5NTMyNw==","avatar_url":"https://avatars0.githubusercontent.com/u/195327?v=4","gravatar_id":"","url":"https://api.github.com/users/frenck","html_url":"https://github.com/frenck","followers_url":"https://api.github.com/users/frenck/followers","following_url":"https://api.github.com/users/frenck/following{/other_user}","gists_url":"https://api.github.com/users/frenck/gists{/gist_id}","starred_url":"https://api.github.com/users/frenck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenck/subscriptions","organizations_url":"https://api.github.com/users/frenck/orgs","repos_url":"https://api.github.com/users/frenck/repos","events_url":"https://api.github.com/users/frenck/events{/privacy}","received_events_url":"https://api.github.com/users/frenck/received_events","type":"User","site_admin":false},"assignees":[{"login":"frenck","id":195327,"node_id":"MDQ6VXNlcjE5NTMyNw==","avatar_url":"https://avatars0.githubusercontent.com/u/195327?v=4","gravatar_id":"","url":"https://api.github.com/users/frenck","html_url":"https://github.com/frenck","followers_url":"https://api.github.com/users/frenck/followers","following_url":"https://api.github.com/users/frenck/following{/other_user}","gists_url":"https://api.github.com/users/frenck/gists{/gist_id}","starred_url":"https://api.github.com/users/frenck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenck/subscriptions","organizations_url":"https://api.github.com/users/frenck/orgs","repos_url":"https://api.github.com/users/frenck/repos","events_url":"https://api.github.com/users/frenck/events{/privacy}","received_events_url":"https://api.github.com/users/frenck/received_events","type":"User","site_admin":false},{"login":"mjrider","id":213105,"node_id":"MDQ6VXNlcjIxMzEwNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/213105?v=4","gravatar_id":"","url":"https://api.github.com/users/mjrider","html_url":"https://github.com/mjrider","followers_url":"https://api.github.com/users/mjrider/followers","following_url":"https://api.github.com/users/mjrider/following{/other_user}","gists_url":"https://api.github.com/users/mjrider/gists{/gist_id}","starred_url":"https://api.github.com/users/mjrider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjrider/subscriptions","organizations_url":"https://api.github.com/users/mjrider/orgs","repos_url":"https://api.github.com/users/mjrider/repos","events_url":"https://api.github.com/users/mjrider/events{/privacy}","received_events_url":"https://api.github.com/users/mjrider/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/home-assistant/hassio-cli/milestones/5","html_url":"https://github.com/home-assistant/hassio-cli/milestone/5","labels_url":"https://api.github.com/repos/home-assistant/hassio-cli/milestones/5/labels","id":3680151,"node_id":"MDk6TWlsZXN0b25lMzY4MDE1MQ==","number":5,"title":"2.0.0","description":"","creator":{"login":"frenck","id":195327,"node_id":"MDQ6VXNlcjE5NTMyNw==","avatar_url":"https://avatars0.githubusercontent.com/u/195327?v=4","gravatar_id":"","url":"https://api.github.com/users/frenck","html_url":"https://github.com/frenck","followers_url":"https://api.github.com/users/frenck/followers","following_url":"https://api.github.com/users/frenck/following{/other_user}","gists_url":"https://api.github.com/users/frenck/gists{/gist_id}","starred_url":"https://api.github.com/users/frenck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenck/subscriptions","organizations_url":"https://api.github.com/users/frenck/orgs","repos_url":"https://api.github.com/users/frenck/repos","events_url":"https://api.github.com/users/frenck/events{/privacy}","received_events_url":"https://api.github.com/users/frenck/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":1,"state":"open","created_at":"2018-09-23T07:20:11Z","updated_at":"2018-11-11T11:24:58Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-11-11T11:24:14Z","updated_at":"2018-11-11T15:35:45Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/home-assistant/hassio-cli/pulls/127","html_url":"https://github.com/home-assistant/hassio-cli/pull/127","diff_url":"https://github.com/home-assistant/hassio-cli/pull/127.diff","patch_url":"https://github.com/home-assistant/hassio-cli/pull/127.patch"},"body":"This is a tracking PR for the Next Generation CLI (v2.0.0).\r\nIf you want to contribute to this version of the CLI, please be sure to target the `next` branch.\r\n\r\nIn case of questions, feel free to address me or @mjrider."},"comment":{"url":"https://api.github.com/repos/home-assistant/hassio-cli/issues/comments/437680233","html_url":"https://github.com/home-assistant/hassio-cli/pull/127#issuecomment-437680233","issue_url":"https://api.github.com/repos/home-assistant/hassio-cli/issues/127","id":437680233,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzY4MDIzMw==","user":{"login":"bbriggs","id":2350379,"node_id":"MDQ6VXNlcjIzNTAzNzk=","avatar_url":"https://avatars2.githubusercontent.com/u/2350379?v=4","gravatar_id":"","url":"https://api.github.com/users/bbriggs","html_url":"https://github.com/bbriggs","followers_url":"https://api.github.com/users/bbriggs/followers","following_url":"https://api.github.com/users/bbriggs/following{/other_user}","gists_url":"https://api.github.com/users/bbriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/bbriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbriggs/subscriptions","organizations_url":"https://api.github.com/users/bbriggs/orgs","repos_url":"https://api.github.com/users/bbriggs/repos","events_url":"https://api.github.com/users/bbriggs/events{/privacy}","received_events_url":"https://api.github.com/users/bbriggs/received_events","type":"User","site_admin":false},"created_at":"2018-11-11T15:35:45Z","updated_at":"2018-11-11T15:35:45Z","author_association":"NONE","body":"So, a bit of explanation on this PR and why later changed direction with it:\r\n\r\nTreating each subcommand as its own new instance of a CLI makes sense for organizing nested subcommands that have the same names (such as `info`, which appears under several subcommands).\r\n\r\nHowever, it makes for a slightly more complicated pattern of adding new subcommands and does not allow Cobra to properly pass global options down to subcommands, since they are a new instance.\r\n\r\nI have a couple of ideas of how to make this work cleanly, but in the last iteration (see the recently closed PR on it) I put all commands and subcommands in one directory and just renamed the commands appropriately to avoid naming conflicts."}}
{"actor":{"display_login":"bbriggs"}}