{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/joncmak/redolent-spork/pulls/3","id":52745608,"html_url":"https://github.com/joncmak/redolent-spork/pull/3","diff_url":"https://github.com/joncmak/redolent-spork/pull/3.diff","patch_url":"https://github.com/joncmak/redolent-spork/pull/3.patch","issue_url":"https://api.github.com/repos/joncmak/redolent-spork/issues/3","number":3,"state":"open","locked":false,"title":"Code sample for a command parser using dictionary","user":{"login":"Belvarose","id":6488871,"avatar_url":"https://avatars.githubusercontent.com/u/6488871?v=3","gravatar_id":"","url":"https://api.github.com/users/Belvarose","html_url":"https://github.com/Belvarose","followers_url":"https://api.github.com/users/Belvarose/followers","following_url":"https://api.github.com/users/Belvarose/following{/other_user}","gists_url":"https://api.github.com/users/Belvarose/gists{/gist_id}","starred_url":"https://api.github.com/users/Belvarose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Belvarose/subscriptions","organizations_url":"https://api.github.com/users/Belvarose/orgs","repos_url":"https://api.github.com/users/Belvarose/repos","events_url":"https://api.github.com/users/Belvarose/events{/privacy}","received_events_url":"https://api.github.com/users/Belvarose/received_events","type":"User","site_admin":false},"body":"It's cool and also very maintainable. Just add function to command dictionary and it's good to go. No need for extending a switch case.","created_at":"2015-12-05T03:35:46Z","updated_at":"2015-12-05T03:35:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joncmak/redolent-spork/pulls/3/commits","review_comments_url":"https://api.github.com/repos/joncmak/redolent-spork/pulls/3/comments","review_comment_url":"https://api.github.com/repos/joncmak/redolent-spork/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joncmak/redolent-spork/issues/3/comments","statuses_url":"https://api.github.com/repos/joncmak/redolent-spork/statuses/657cb1be2326620dcafe71a6d9977895109c5cf0","head":{"label":"Belvarose:master","ref":"master","sha":"657cb1be2326620dcafe71a6d9977895109c5cf0","user":{"login":"Belvarose","id":6488871,"avatar_url":"https://avatars.githubusercontent.com/u/6488871?v=3","gravatar_id":"","url":"https://api.github.com/users/Belvarose","html_url":"https://github.com/Belvarose","followers_url":"https://api.github.com/users/Belvarose/followers","following_url":"https://api.github.com/users/Belvarose/following{/other_user}","gists_url":"https://api.github.com/users/Belvarose/gists{/gist_id}","starred_url":"https://api.github.com/users/Belvarose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Belvarose/subscriptions","organizations_url":"https://api.github.com/users/Belvarose/orgs","repos_url":"https://api.github.com/users/Belvarose/repos","events_url":"https://api.github.com/users/Belvarose/events{/privacy}","received_events_url":"https://api.github.com/users/Belvarose/received_events","type":"User","site_admin":false},"repo":{"id":47440449,"name":"redolent-spork","full_name":"Belvarose/redolent-spork","owner":{"login":"Belvarose","id":6488871,"avatar_url":"https://avatars.githubusercontent.com/u/6488871?v=3","gravatar_id":"","url":"https://api.github.com/users/Belvarose","html_url":"https://github.com/Belvarose","followers_url":"https://api.github.com/users/Belvarose/followers","following_url":"https://api.github.com/users/Belvarose/following{/other_user}","gists_url":"https://api.github.com/users/Belvarose/gists{/gist_id}","starred_url":"https://api.github.com/users/Belvarose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Belvarose/subscriptions","organizations_url":"https://api.github.com/users/Belvarose/orgs","repos_url":"https://api.github.com/users/Belvarose/repos","events_url":"https://api.github.com/users/Belvarose/events{/privacy}","received_events_url":"https://api.github.com/users/Belvarose/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Belvarose/redolent-spork","description":"","fork":true,"url":"https://api.github.com/repos/Belvarose/redolent-spork","forks_url":"https://api.github.com/repos/Belvarose/redolent-spork/forks","keys_url":"https://api.github.com/repos/Belvarose/redolent-spork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Belvarose/redolent-spork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Belvarose/redolent-spork/teams","hooks_url":"https://api.github.com/repos/Belvarose/redolent-spork/hooks","issue_events_url":"https://api.github.com/repos/Belvarose/redolent-spork/issues/events{/number}","events_url":"https://api.github.com/repos/Belvarose/redolent-spork/events","assignees_url":"https://api.github.com/repos/Belvarose/redolent-spork/assignees{/user}","branches_url":"https://api.github.com/repos/Belvarose/redolent-spork/branches{/branch}","tags_url":"https://api.github.com/repos/Belvarose/redolent-spork/tags","blobs_url":"https://api.github.com/repos/Belvarose/redolent-spork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Belvarose/redolent-spork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Belvarose/redolent-spork/git/refs{/sha}","trees_url":"https://api.github.com/repos/Belvarose/redolent-spork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Belvarose/redolent-spork/statuses/{sha}","languages_url":"https://api.github.com/repos/Belvarose/redolent-spork/languages","stargazers_url":"https://api.github.com/repos/Belvarose/redolent-spork/stargazers","contributors_url":"https://api.github.com/repos/Belvarose/redolent-spork/contributors","subscribers_url":"https://api.github.com/repos/Belvarose/redolent-spork/subscribers","subscription_url":"https://api.github.com/repos/Belvarose/redolent-spork/subscription","commits_url":"https://api.github.com/repos/Belvarose/redolent-spork/commits{/sha}","git_commits_url":"https://api.github.com/repos/Belvarose/redolent-spork/git/commits{/sha}","comments_url":"https://api.github.com/repos/Belvarose/redolent-spork/comments{/number}","issue_comment_url":"https://api.github.com/repos/Belvarose/redolent-spork/issues/comments{/number}","contents_url":"https://api.github.com/repos/Belvarose/redolent-spork/contents/{+path}","compare_url":"https://api.github.com/repos/Belvarose/redolent-spork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Belvarose/redolent-spork/merges","archive_url":"https://api.github.com/repos/Belvarose/redolent-spork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Belvarose/redolent-spork/downloads","issues_url":"https://api.github.com/repos/Belvarose/redolent-spork/issues{/number}","pulls_url":"https://api.github.com/repos/Belvarose/redolent-spork/pulls{/number}","milestones_url":"https://api.github.com/repos/Belvarose/redolent-spork/milestones{/number}","notifications_url":"https://api.github.com/repos/Belvarose/redolent-spork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Belvarose/redolent-spork/labels{/name}","releases_url":"https://api.github.com/repos/Belvarose/redolent-spork/releases{/id}","created_at":"2015-12-05T03:25:40Z","updated_at":"2015-12-05T03:25:41Z","pushed_at":"2015-12-05T03:35:46Z","git_url":"git://github.com/Belvarose/redolent-spork.git","ssh_url":"git@github.com:Belvarose/redolent-spork.git","clone_url":"https://github.com/Belvarose/redolent-spork.git","svn_url":"https://github.com/Belvarose/redolent-spork","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"joncmak:master","ref":"master","sha":"ca78e5b353369eb1f8853ea6328b1081990de415","user":{"login":"joncmak","id":14813655,"avatar_url":"https://avatars.githubusercontent.com/u/14813655?v=3","gravatar_id":"","url":"https://api.github.com/users/joncmak","html_url":"https://github.com/joncmak","followers_url":"https://api.github.com/users/joncmak/followers","following_url":"https://api.github.com/users/joncmak/following{/other_user}","gists_url":"https://api.github.com/users/joncmak/gists{/gist_id}","starred_url":"https://api.github.com/users/joncmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joncmak/subscriptions","organizations_url":"https://api.github.com/users/joncmak/orgs","repos_url":"https://api.github.com/users/joncmak/repos","events_url":"https://api.github.com/users/joncmak/events{/privacy}","received_events_url":"https://api.github.com/users/joncmak/received_events","type":"User","site_admin":false},"repo":{"id":47230963,"name":"redolent-spork","full_name":"joncmak/redolent-spork","owner":{"login":"joncmak","id":14813655,"avatar_url":"https://avatars.githubusercontent.com/u/14813655?v=3","gravatar_id":"","url":"https://api.github.com/users/joncmak","html_url":"https://github.com/joncmak","followers_url":"https://api.github.com/users/joncmak/followers","following_url":"https://api.github.com/users/joncmak/following{/other_user}","gists_url":"https://api.github.com/users/joncmak/gists{/gist_id}","starred_url":"https://api.github.com/users/joncmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joncmak/subscriptions","organizations_url":"https://api.github.com/users/joncmak/orgs","repos_url":"https://api.github.com/users/joncmak/repos","events_url":"https://api.github.com/users/joncmak/events{/privacy}","received_events_url":"https://api.github.com/users/joncmak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joncmak/redolent-spork","description":"","fork":false,"url":"https://api.github.com/repos/joncmak/redolent-spork","forks_url":"https://api.github.com/repos/joncmak/redolent-spork/forks","keys_url":"https://api.github.com/repos/joncmak/redolent-spork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joncmak/redolent-spork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joncmak/redolent-spork/teams","hooks_url":"https://api.github.com/repos/joncmak/redolent-spork/hooks","issue_events_url":"https://api.github.com/repos/joncmak/redolent-spork/issues/events{/number}","events_url":"https://api.github.com/repos/joncmak/redolent-spork/events","assignees_url":"https://api.github.com/repos/joncmak/redolent-spork/assignees{/user}","branches_url":"https://api.github.com/repos/joncmak/redolent-spork/branches{/branch}","tags_url":"https://api.github.com/repos/joncmak/redolent-spork/tags","blobs_url":"https://api.github.com/repos/joncmak/redolent-spork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joncmak/redolent-spork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joncmak/redolent-spork/git/refs{/sha}","trees_url":"https://api.github.com/repos/joncmak/redolent-spork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joncmak/redolent-spork/statuses/{sha}","languages_url":"https://api.github.com/repos/joncmak/redolent-spork/languages","stargazers_url":"https://api.github.com/repos/joncmak/redolent-spork/stargazers","contributors_url":"https://api.github.com/repos/joncmak/redolent-spork/contributors","subscribers_url":"https://api.github.com/repos/joncmak/redolent-spork/subscribers","subscription_url":"https://api.github.com/repos/joncmak/redolent-spork/subscription","commits_url":"https://api.github.com/repos/joncmak/redolent-spork/commits{/sha}","git_commits_url":"https://api.github.com/repos/joncmak/redolent-spork/git/commits{/sha}","comments_url":"https://api.github.com/repos/joncmak/redolent-spork/comments{/number}","issue_comment_url":"https://api.github.com/repos/joncmak/redolent-spork/issues/comments{/number}","contents_url":"https://api.github.com/repos/joncmak/redolent-spork/contents/{+path}","compare_url":"https://api.github.com/repos/joncmak/redolent-spork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joncmak/redolent-spork/merges","archive_url":"https://api.github.com/repos/joncmak/redolent-spork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joncmak/redolent-spork/downloads","issues_url":"https://api.github.com/repos/joncmak/redolent-spork/issues{/number}","pulls_url":"https://api.github.com/repos/joncmak/redolent-spork/pulls{/number}","milestones_url":"https://api.github.com/repos/joncmak/redolent-spork/milestones{/number}","notifications_url":"https://api.github.com/repos/joncmak/redolent-spork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joncmak/redolent-spork/labels{/name}","releases_url":"https://api.github.com/repos/joncmak/redolent-spork/releases{/id}","created_at":"2015-12-02T02:15:30Z","updated_at":"2015-12-02T02:31:31Z","pushed_at":"2015-12-05T03:35:47Z","git_url":"git://github.com/joncmak/redolent-spork.git","ssh_url":"git@github.com:joncmak/redolent-spork.git","clone_url":"https://github.com/joncmak/redolent-spork.git","svn_url":"https://github.com/joncmak/redolent-spork","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joncmak/redolent-spork/pulls/3"},"html":{"href":"https://github.com/joncmak/redolent-spork/pull/3"},"issue":{"href":"https://api.github.com/repos/joncmak/redolent-spork/issues/3"},"comments":{"href":"https://api.github.com/repos/joncmak/redolent-spork/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/joncmak/redolent-spork/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/joncmak/redolent-spork/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joncmak/redolent-spork/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/joncmak/redolent-spork/statuses/657cb1be2326620dcafe71a6d9977895109c5cf0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":43,"deletions":0,"changed_files":1}}