{"action":"opened","number":11504,"pull_request":{"url":"https://api.github.com/repos/magento/magento2/pulls/11504","id":146905541,"html_url":"https://github.com/magento/magento2/pull/11504","diff_url":"https://github.com/magento/magento2/pull/11504.diff","patch_url":"https://github.com/magento/magento2/pull/11504.patch","issue_url":"https://api.github.com/repos/magento/magento2/issues/11504","number":11504,"state":"open","locked":false,"title":"Add MagentoStyle as Console nput/output helper object...","user":{"login":"wesleywmd","id":5177606,"avatar_url":"https://avatars1.githubusercontent.com/u/5177606?v=4","gravatar_id":"","url":"https://api.github.com/users/wesleywmd","html_url":"https://github.com/wesleywmd","followers_url":"https://api.github.com/users/wesleywmd/followers","following_url":"https://api.github.com/users/wesleywmd/following{/other_user}","gists_url":"https://api.github.com/users/wesleywmd/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleywmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleywmd/subscriptions","organizations_url":"https://api.github.com/users/wesleywmd/orgs","repos_url":"https://api.github.com/users/wesleywmd/repos","events_url":"https://api.github.com/users/wesleywmd/events{/privacy}","received_events_url":"https://api.github.com/users/wesleywmd/received_events","type":"User","site_admin":false},"body":"...to allow easier access to io helpers in symfony/console\r\n\r\n### Description\r\nGives a helper object to access styling objects in symfony console easier.\r\n\r\n### How to use it\r\nInstantiate inside a command object's methods (usually interact and execute but not limited to) \r\n`$io = new MagentoStyle($input,$output);`\r\n\r\n1. Titles: Creates a title header with a double bar underline\r\n`$io->title(\"My Title\");`\r\n\r\n2. Sections: Creates a section header with a single bar underline\r\n`$io->section(\"My Section\");`\r\n\r\n3. Content Output: \r\nCreates a text block\r\n`$io->text(\"Your message here\");`\r\nCreates a bulleted list\r\n`$io->listing([\"item1\",\"item2\",\"item3\"]);`\r\nCreates a table\r\n` $io->table([\"header1\",\"header2\",\"header3\"],[\r\n    [\"A\",\"B\",\"C\"],\r\n    [\"D\",\"E\",\"F\"],\r\n    [\"G\",\"H\",\"I\"]\r\n]);`\r\nPrints a new line\r\n`$io->newLine();`\r\n\r\n4. Admonition Methods: success, warning, caution, note, comment\r\nPrint out a padded and colored message\r\n`$io->success(\"You Win!\");`\r\n`$io->error(\"You Fail!\");`\r\n\r\n5. Progress Bar\r\nCreates an interactive progress bar\r\n`$io->progressStart(100);`\r\n`$io->progressAdvance(10);`\r\n`$io->progressFinish();`\r\n\r\n6. Questions\r\n`$io->ask(\"What is your name?\");`\r\n`$io->confirm(\"Are you sure?\");`\r\n`$io->choice(\"What is your favorite color?\",[\"red,\"blue\",\"yellow\"]);`\r\n\r\n7. Questions for missing arguments and options\r\n`$io->askForMissingArgument(\r\n    $argument,\r\n    $question,\r\n    $default = null,\r\n    $validator = null,\r\n    $maxAttempts = null,\r\n    $comment = null,\r\n    $commentFormat = \"Argument [%s] set to: %s\"\r\n)`\r\n`$io->askForMissingOption(\r\n    $option,\r\n    $question,\r\n    $default = null,\r\n    $validator = null,\r\n    $maxAttempts = null,\r\n    $comment = null,\r\n    $commentFormat = \"Option [%s] set to: %s\"\r\n)`\r\n\r\n\r\n### Contribution checklist\r\n - [x] Pull request has a meaningful description of its purpose\r\n - [x] All commits are accompanied by meaningful commit messages\r\n - [-] All new or changed code is covered with unit/integration tests (if applicable)\r\n - [-] All automated tests passed successfully (all builds on Travis CI are green)\r\n","created_at":"2017-10-16T22:41:56Z","updated_at":"2017-10-16T22:41:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/magento/magento2/pulls/11504/commits","review_comments_url":"https://api.github.com/repos/magento/magento2/pulls/11504/comments","review_comment_url":"https://api.github.com/repos/magento/magento2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/magento/magento2/issues/11504/comments","statuses_url":"https://api.github.com/repos/magento/magento2/statuses/d89cf0bc8a9e8e2fbdf615fe6d1deddb7a027647","head":{"label":"wesleywmd:create-console-magentostyle","ref":"create-console-magentostyle","sha":"d89cf0bc8a9e8e2fbdf615fe6d1deddb7a027647","user":{"login":"wesleywmd","id":5177606,"avatar_url":"https://avatars1.githubusercontent.com/u/5177606?v=4","gravatar_id":"","url":"https://api.github.com/users/wesleywmd","html_url":"https://github.com/wesleywmd","followers_url":"https://api.github.com/users/wesleywmd/followers","following_url":"https://api.github.com/users/wesleywmd/following{/other_user}","gists_url":"https://api.github.com/users/wesleywmd/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleywmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleywmd/subscriptions","organizations_url":"https://api.github.com/users/wesleywmd/orgs","repos_url":"https://api.github.com/users/wesleywmd/repos","events_url":"https://api.github.com/users/wesleywmd/events{/privacy}","received_events_url":"https://api.github.com/users/wesleywmd/received_events","type":"User","site_admin":false},"repo":{"id":107154897,"name":"magento2","full_name":"wesleywmd/magento2","owner":{"login":"wesleywmd","id":5177606,"avatar_url":"https://avatars1.githubusercontent.com/u/5177606?v=4","gravatar_id":"","url":"https://api.github.com/users/wesleywmd","html_url":"https://github.com/wesleywmd","followers_url":"https://api.github.com/users/wesleywmd/followers","following_url":"https://api.github.com/users/wesleywmd/following{/other_user}","gists_url":"https://api.github.com/users/wesleywmd/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleywmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleywmd/subscriptions","organizations_url":"https://api.github.com/users/wesleywmd/orgs","repos_url":"https://api.github.com/users/wesleywmd/repos","events_url":"https://api.github.com/users/wesleywmd/events{/privacy}","received_events_url":"https://api.github.com/users/wesleywmd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wesleywmd/magento2","description":"All Submissions you make to Magento Inc. (“Magento\") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission\") you submit through GitHub. (2) Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above. (3) You agree to the Contributor License Agreement found here:  https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html","fork":true,"url":"https://api.github.com/repos/wesleywmd/magento2","forks_url":"https://api.github.com/repos/wesleywmd/magento2/forks","keys_url":"https://api.github.com/repos/wesleywmd/magento2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wesleywmd/magento2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wesleywmd/magento2/teams","hooks_url":"https://api.github.com/repos/wesleywmd/magento2/hooks","issue_events_url":"https://api.github.com/repos/wesleywmd/magento2/issues/events{/number}","events_url":"https://api.github.com/repos/wesleywmd/magento2/events","assignees_url":"https://api.github.com/repos/wesleywmd/magento2/assignees{/user}","branches_url":"https://api.github.com/repos/wesleywmd/magento2/branches{/branch}","tags_url":"https://api.github.com/repos/wesleywmd/magento2/tags","blobs_url":"https://api.github.com/repos/wesleywmd/magento2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wesleywmd/magento2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wesleywmd/magento2/git/refs{/sha}","trees_url":"https://api.github.com/repos/wesleywmd/magento2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wesleywmd/magento2/statuses/{sha}","languages_url":"https://api.github.com/repos/wesleywmd/magento2/languages","stargazers_url":"https://api.github.com/repos/wesleywmd/magento2/stargazers","contributors_url":"https://api.github.com/repos/wesleywmd/magento2/contributors","subscribers_url":"https://api.github.com/repos/wesleywmd/magento2/subscribers","subscription_url":"https://api.github.com/repos/wesleywmd/magento2/subscription","commits_url":"https://api.github.com/repos/wesleywmd/magento2/commits{/sha}","git_commits_url":"https://api.github.com/repos/wesleywmd/magento2/git/commits{/sha}","comments_url":"https://api.github.com/repos/wesleywmd/magento2/comments{/number}","issue_comment_url":"https://api.github.com/repos/wesleywmd/magento2/issues/comments{/number}","contents_url":"https://api.github.com/repos/wesleywmd/magento2/contents/{+path}","compare_url":"https://api.github.com/repos/wesleywmd/magento2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wesleywmd/magento2/merges","archive_url":"https://api.github.com/repos/wesleywmd/magento2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wesleywmd/magento2/downloads","issues_url":"https://api.github.com/repos/wesleywmd/magento2/issues{/number}","pulls_url":"https://api.github.com/repos/wesleywmd/magento2/pulls{/number}","milestones_url":"https://api.github.com/repos/wesleywmd/magento2/milestones{/number}","notifications_url":"https://api.github.com/repos/wesleywmd/magento2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wesleywmd/magento2/labels{/name}","releases_url":"https://api.github.com/repos/wesleywmd/magento2/releases{/id}","deployments_url":"https://api.github.com/repos/wesleywmd/magento2/deployments","created_at":"2017-10-16T16:37:28Z","updated_at":"2017-10-16T16:38:29Z","pushed_at":"2017-10-16T22:15:55Z","git_url":"git://github.com/wesleywmd/magento2.git","ssh_url":"git@github.com:wesleywmd/magento2.git","clone_url":"https://github.com/wesleywmd/magento2.git","svn_url":"https://github.com/wesleywmd/magento2","homepage":"http://www.magento.com","size":397600,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"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":"2.2-develop"}},"base":{"label":"magento:2.2-develop","ref":"2.2-develop","sha":"08ec8ceb9cab4755b2238d7b1844150886cb662e","user":{"login":"magento","id":168457,"avatar_url":"https://avatars2.githubusercontent.com/u/168457?v=4","gravatar_id":"","url":"https://api.github.com/users/magento","html_url":"https://github.com/magento","followers_url":"https://api.github.com/users/magento/followers","following_url":"https://api.github.com/users/magento/following{/other_user}","gists_url":"https://api.github.com/users/magento/gists{/gist_id}","starred_url":"https://api.github.com/users/magento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magento/subscriptions","organizations_url":"https://api.github.com/users/magento/orgs","repos_url":"https://api.github.com/users/magento/repos","events_url":"https://api.github.com/users/magento/events{/privacy}","received_events_url":"https://api.github.com/users/magento/received_events","type":"Organization","site_admin":false},"repo":{"id":2884111,"name":"magento2","full_name":"magento/magento2","owner":{"login":"magento","id":168457,"avatar_url":"https://avatars2.githubusercontent.com/u/168457?v=4","gravatar_id":"","url":"https://api.github.com/users/magento","html_url":"https://github.com/magento","followers_url":"https://api.github.com/users/magento/followers","following_url":"https://api.github.com/users/magento/following{/other_user}","gists_url":"https://api.github.com/users/magento/gists{/gist_id}","starred_url":"https://api.github.com/users/magento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magento/subscriptions","organizations_url":"https://api.github.com/users/magento/orgs","repos_url":"https://api.github.com/users/magento/repos","events_url":"https://api.github.com/users/magento/events{/privacy}","received_events_url":"https://api.github.com/users/magento/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/magento/magento2","description":"All Submissions you make to Magento Inc. (“Magento\") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission\") you submit through GitHub. (2) Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above. (3) You agree to the Contributor License Agreement found here:  https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html","fork":false,"url":"https://api.github.com/repos/magento/magento2","forks_url":"https://api.github.com/repos/magento/magento2/forks","keys_url":"https://api.github.com/repos/magento/magento2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magento/magento2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magento/magento2/teams","hooks_url":"https://api.github.com/repos/magento/magento2/hooks","issue_events_url":"https://api.github.com/repos/magento/magento2/issues/events{/number}","events_url":"https://api.github.com/repos/magento/magento2/events","assignees_url":"https://api.github.com/repos/magento/magento2/assignees{/user}","branches_url":"https://api.github.com/repos/magento/magento2/branches{/branch}","tags_url":"https://api.github.com/repos/magento/magento2/tags","blobs_url":"https://api.github.com/repos/magento/magento2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magento/magento2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magento/magento2/git/refs{/sha}","trees_url":"https://api.github.com/repos/magento/magento2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magento/magento2/statuses/{sha}","languages_url":"https://api.github.com/repos/magento/magento2/languages","stargazers_url":"https://api.github.com/repos/magento/magento2/stargazers","contributors_url":"https://api.github.com/repos/magento/magento2/contributors","subscribers_url":"https://api.github.com/repos/magento/magento2/subscribers","subscription_url":"https://api.github.com/repos/magento/magento2/subscription","commits_url":"https://api.github.com/repos/magento/magento2/commits{/sha}","git_commits_url":"https://api.github.com/repos/magento/magento2/git/commits{/sha}","comments_url":"https://api.github.com/repos/magento/magento2/comments{/number}","issue_comment_url":"https://api.github.com/repos/magento/magento2/issues/comments{/number}","contents_url":"https://api.github.com/repos/magento/magento2/contents/{+path}","compare_url":"https://api.github.com/repos/magento/magento2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magento/magento2/merges","archive_url":"https://api.github.com/repos/magento/magento2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magento/magento2/downloads","issues_url":"https://api.github.com/repos/magento/magento2/issues{/number}","pulls_url":"https://api.github.com/repos/magento/magento2/pulls{/number}","milestones_url":"https://api.github.com/repos/magento/magento2/milestones{/number}","notifications_url":"https://api.github.com/repos/magento/magento2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magento/magento2/labels{/name}","releases_url":"https://api.github.com/repos/magento/magento2/releases{/id}","deployments_url":"https://api.github.com/repos/magento/magento2/deployments","created_at":"2011-11-30T15:30:13Z","updated_at":"2017-10-16T15:13:11Z","pushed_at":"2017-10-16T22:34:53Z","git_url":"git://github.com/magento/magento2.git","ssh_url":"git@github.com:magento/magento2.git","clone_url":"https://github.com/magento/magento2.git","svn_url":"https://github.com/magento/magento2","homepage":"http://www.magento.com","size":397667,"stargazers_count":4834,"watchers_count":4834,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3785,"mirror_url":null,"open_issues_count":1449,"forks":3785,"open_issues":1449,"watchers":4834,"default_branch":"2.2-develop"}},"_links":{"self":{"href":"https://api.github.com/repos/magento/magento2/pulls/11504"},"html":{"href":"https://github.com/magento/magento2/pull/11504"},"issue":{"href":"https://api.github.com/repos/magento/magento2/issues/11504"},"comments":{"href":"https://api.github.com/repos/magento/magento2/issues/11504/comments"},"review_comments":{"href":"https://api.github.com/repos/magento/magento2/pulls/11504/comments"},"review_comment":{"href":"https://api.github.com/repos/magento/magento2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/magento/magento2/pulls/11504/commits"},"statuses":{"href":"https://api.github.com/repos/magento/magento2/statuses/d89cf0bc8a9e8e2fbdf615fe6d1deddb7a027647"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":599,"deletions":0,"changed_files":4}}
{"actor":{"display_login":"wesleywmd"}}