{"action":"opened","number":182,"pull_request":{"url":"https://api.github.com/repos/mknx/smarthome/pulls/182","id":44867772,"html_url":"https://github.com/mknx/smarthome/pull/182","diff_url":"https://github.com/mknx/smarthome/pull/182.diff","patch_url":"https://github.com/mknx/smarthome/pull/182.patch","issue_url":"https://api.github.com/repos/mknx/smarthome/issues/182","number":182,"state":"open","locked":false,"title":"CLI Plugin: Allow other plugins to add custom commands","user":{"login":"i-am-offline","id":9217443,"avatar_url":"https://avatars.githubusercontent.com/u/9217443?v=3","gravatar_id":"","url":"https://api.github.com/users/i-am-offline","html_url":"https://github.com/i-am-offline","followers_url":"https://api.github.com/users/i-am-offline/followers","following_url":"https://api.github.com/users/i-am-offline/following{/other_user}","gists_url":"https://api.github.com/users/i-am-offline/gists{/gist_id}","starred_url":"https://api.github.com/users/i-am-offline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i-am-offline/subscriptions","organizations_url":"https://api.github.com/users/i-am-offline/orgs","repos_url":"https://api.github.com/users/i-am-offline/repos","events_url":"https://api.github.com/users/i-am-offline/events{/privacy}","received_events_url":"https://api.github.com/users/i-am-offline/received_events","type":"User","site_admin":false},"body":"There are already severy pull requests which add additional commands to the CLI plugin. I would also like to be able to trigger some functionality in my own plugin via the CLI plugin. \r\n\r\nThis pull requests enhances the CLI plugin with a method to add custom commands. This method can be used by any other plugin. An example is already contained in the modified CLI-plugin.\r\n\r\nIn order to access the CLI plugin from other plugins, please see my previous pull request #181 which adds a method to get the plugin instance.","created_at":"2015-09-13T06:19:07Z","updated_at":"2015-09-13T06:19:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mknx/smarthome/pulls/182/commits","review_comments_url":"https://api.github.com/repos/mknx/smarthome/pulls/182/comments","review_comment_url":"https://api.github.com/repos/mknx/smarthome/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mknx/smarthome/issues/182/comments","statuses_url":"https://api.github.com/repos/mknx/smarthome/statuses/aa5a09abf88572c6402c36d8d4086ba08cbe8468","head":{"label":"i-am-offline:feature-cli-extension","ref":"feature-cli-extension","sha":"aa5a09abf88572c6402c36d8d4086ba08cbe8468","user":{"login":"i-am-offline","id":9217443,"avatar_url":"https://avatars.githubusercontent.com/u/9217443?v=3","gravatar_id":"","url":"https://api.github.com/users/i-am-offline","html_url":"https://github.com/i-am-offline","followers_url":"https://api.github.com/users/i-am-offline/followers","following_url":"https://api.github.com/users/i-am-offline/following{/other_user}","gists_url":"https://api.github.com/users/i-am-offline/gists{/gist_id}","starred_url":"https://api.github.com/users/i-am-offline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i-am-offline/subscriptions","organizations_url":"https://api.github.com/users/i-am-offline/orgs","repos_url":"https://api.github.com/users/i-am-offline/repos","events_url":"https://api.github.com/users/i-am-offline/events{/privacy}","received_events_url":"https://api.github.com/users/i-am-offline/received_events","type":"User","site_admin":false},"repo":{"id":34240372,"name":"smarthome","full_name":"i-am-offline/smarthome","owner":{"login":"i-am-offline","id":9217443,"avatar_url":"https://avatars.githubusercontent.com/u/9217443?v=3","gravatar_id":"","url":"https://api.github.com/users/i-am-offline","html_url":"https://github.com/i-am-offline","followers_url":"https://api.github.com/users/i-am-offline/followers","following_url":"https://api.github.com/users/i-am-offline/following{/other_user}","gists_url":"https://api.github.com/users/i-am-offline/gists{/gist_id}","starred_url":"https://api.github.com/users/i-am-offline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i-am-offline/subscriptions","organizations_url":"https://api.github.com/users/i-am-offline/orgs","repos_url":"https://api.github.com/users/i-am-offline/repos","events_url":"https://api.github.com/users/i-am-offline/events{/privacy}","received_events_url":"https://api.github.com/users/i-am-offline/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/i-am-offline/smarthome","description":"","fork":true,"url":"https://api.github.com/repos/i-am-offline/smarthome","forks_url":"https://api.github.com/repos/i-am-offline/smarthome/forks","keys_url":"https://api.github.com/repos/i-am-offline/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/i-am-offline/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/i-am-offline/smarthome/teams","hooks_url":"https://api.github.com/repos/i-am-offline/smarthome/hooks","issue_events_url":"https://api.github.com/repos/i-am-offline/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/i-am-offline/smarthome/events","assignees_url":"https://api.github.com/repos/i-am-offline/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/i-am-offline/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/i-am-offline/smarthome/tags","blobs_url":"https://api.github.com/repos/i-am-offline/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/i-am-offline/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/i-am-offline/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/i-am-offline/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/i-am-offline/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/i-am-offline/smarthome/languages","stargazers_url":"https://api.github.com/repos/i-am-offline/smarthome/stargazers","contributors_url":"https://api.github.com/repos/i-am-offline/smarthome/contributors","subscribers_url":"https://api.github.com/repos/i-am-offline/smarthome/subscribers","subscription_url":"https://api.github.com/repos/i-am-offline/smarthome/subscription","commits_url":"https://api.github.com/repos/i-am-offline/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/i-am-offline/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/i-am-offline/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/i-am-offline/smarthome/issues/comments{/number}","contents_url":"https://api.github.com/repos/i-am-offline/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/i-am-offline/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/i-am-offline/smarthome/merges","archive_url":"https://api.github.com/repos/i-am-offline/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/i-am-offline/smarthome/downloads","issues_url":"https://api.github.com/repos/i-am-offline/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/i-am-offline/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/i-am-offline/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/i-am-offline/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/i-am-offline/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/i-am-offline/smarthome/releases{/id}","created_at":"2015-04-20T05:41:28Z","updated_at":"2015-04-20T05:41:29Z","pushed_at":"2015-09-13T06:12:57Z","git_url":"git://github.com/i-am-offline/smarthome.git","ssh_url":"git@github.com:i-am-offline/smarthome.git","clone_url":"https://github.com/i-am-offline/smarthome.git","svn_url":"https://github.com/i-am-offline/smarthome","homepage":"http://mknx.github.io/smarthome/","size":6742,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mknx:develop","ref":"develop","sha":"97801d363c5de5d2496f28aee6f844a33d9df6e2","user":{"login":"mknx","id":2308424,"avatar_url":"https://avatars.githubusercontent.com/u/2308424?v=3","gravatar_id":"","url":"https://api.github.com/users/mknx","html_url":"https://github.com/mknx","followers_url":"https://api.github.com/users/mknx/followers","following_url":"https://api.github.com/users/mknx/following{/other_user}","gists_url":"https://api.github.com/users/mknx/gists{/gist_id}","starred_url":"https://api.github.com/users/mknx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mknx/subscriptions","organizations_url":"https://api.github.com/users/mknx/orgs","repos_url":"https://api.github.com/users/mknx/repos","events_url":"https://api.github.com/users/mknx/events{/privacy}","received_events_url":"https://api.github.com/users/mknx/received_events","type":"User","site_admin":false},"repo":{"id":5786013,"name":"smarthome","full_name":"mknx/smarthome","owner":{"login":"mknx","id":2308424,"avatar_url":"https://avatars.githubusercontent.com/u/2308424?v=3","gravatar_id":"","url":"https://api.github.com/users/mknx","html_url":"https://github.com/mknx","followers_url":"https://api.github.com/users/mknx/followers","following_url":"https://api.github.com/users/mknx/following{/other_user}","gists_url":"https://api.github.com/users/mknx/gists{/gist_id}","starred_url":"https://api.github.com/users/mknx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mknx/subscriptions","organizations_url":"https://api.github.com/users/mknx/orgs","repos_url":"https://api.github.com/users/mknx/repos","events_url":"https://api.github.com/users/mknx/events{/privacy}","received_events_url":"https://api.github.com/users/mknx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mknx/smarthome","description":"","fork":false,"url":"https://api.github.com/repos/mknx/smarthome","forks_url":"https://api.github.com/repos/mknx/smarthome/forks","keys_url":"https://api.github.com/repos/mknx/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mknx/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mknx/smarthome/teams","hooks_url":"https://api.github.com/repos/mknx/smarthome/hooks","issue_events_url":"https://api.github.com/repos/mknx/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/mknx/smarthome/events","assignees_url":"https://api.github.com/repos/mknx/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/mknx/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/mknx/smarthome/tags","blobs_url":"https://api.github.com/repos/mknx/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mknx/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mknx/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/mknx/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mknx/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/mknx/smarthome/languages","stargazers_url":"https://api.github.com/repos/mknx/smarthome/stargazers","contributors_url":"https://api.github.com/repos/mknx/smarthome/contributors","subscribers_url":"https://api.github.com/repos/mknx/smarthome/subscribers","subscription_url":"https://api.github.com/repos/mknx/smarthome/subscription","commits_url":"https://api.github.com/repos/mknx/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/mknx/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/mknx/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/mknx/smarthome/issues/comments{/number}","contents_url":"https://api.github.com/repos/mknx/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/mknx/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mknx/smarthome/merges","archive_url":"https://api.github.com/repos/mknx/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mknx/smarthome/downloads","issues_url":"https://api.github.com/repos/mknx/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/mknx/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/mknx/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/mknx/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mknx/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/mknx/smarthome/releases{/id}","created_at":"2012-09-12T21:13:00Z","updated_at":"2015-08-29T12:05:38Z","pushed_at":"2015-09-13T06:08:35Z","git_url":"git://github.com/mknx/smarthome.git","ssh_url":"git@github.com:mknx/smarthome.git","clone_url":"https://github.com/mknx/smarthome.git","svn_url":"https://github.com/mknx/smarthome","homepage":"http://mknx.github.io/smarthome/","size":11102,"stargazers_count":91,"watchers_count":91,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":77,"mirror_url":null,"open_issues_count":44,"forks":77,"open_issues":44,"watchers":91,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mknx/smarthome/pulls/182"},"html":{"href":"https://github.com/mknx/smarthome/pull/182"},"issue":{"href":"https://api.github.com/repos/mknx/smarthome/issues/182"},"comments":{"href":"https://api.github.com/repos/mknx/smarthome/issues/182/comments"},"review_comments":{"href":"https://api.github.com/repos/mknx/smarthome/pulls/182/comments"},"review_comment":{"href":"https://api.github.com/repos/mknx/smarthome/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mknx/smarthome/pulls/182/commits"},"statuses":{"href":"https://api.github.com/repos/mknx/smarthome/statuses/aa5a09abf88572c6402c36d8d4086ba08cbe8468"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":24,"deletions":3,"changed_files":1}}