{"action":"created","comment":{"url":"https://api.github.com/repos/tightenco/jigsaw/pulls/comments/59878620","id":59878620,"diff_hunk":"@@ -0,0 +1,40 @@\n+<?php namespace TightenCo\\Jigsaw\\Console;\n+\n+use Symfony\\Component\\Console\\Input\\InputArgument;\n+use Symfony\\Component\\Console\\Input\\InputInterface;\n+use Symfony\\Component\\Console\\Input\\InputOption;\n+use Symfony\\Component\\Console\\Output\\OutputInterface;\n+\n+class ServeCommand extends Command\n+{\n+    public function __construct()\n+    {\n+        parent::__construct();\n+    }\n+\n+    protected function configure()\n+    {\n+        $this->setName('serve')\n+            ->setDescription('Serve local site with php built-in server.')\n+            ->addArgument(","path":"src/Console/ServeCommand.php","position":19,"original_position":19,"commit_id":"be5b4448a0dda40190d94a891cfa385db67ea639","original_commit_id":"be5b4448a0dda40190d94a891cfa385db67ea639","user":{"login":"quickliketurtle","id":1762128,"avatar_url":"https://avatars.githubusercontent.com/u/1762128?v=3","gravatar_id":"","url":"https://api.github.com/users/quickliketurtle","html_url":"https://github.com/quickliketurtle","followers_url":"https://api.github.com/users/quickliketurtle/followers","following_url":"https://api.github.com/users/quickliketurtle/following{/other_user}","gists_url":"https://api.github.com/users/quickliketurtle/gists{/gist_id}","starred_url":"https://api.github.com/users/quickliketurtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quickliketurtle/subscriptions","organizations_url":"https://api.github.com/users/quickliketurtle/orgs","repos_url":"https://api.github.com/users/quickliketurtle/repos","events_url":"https://api.github.com/users/quickliketurtle/events{/privacy}","received_events_url":"https://api.github.com/users/quickliketurtle/received_events","type":"User","site_admin":false},"body":"That makes sense to me. I'll make the change to this shortly. Do you want me to submit another PR for updating the build command or are you going to do that yourself? ","created_at":"2016-04-15T14:04:27Z","updated_at":"2016-04-15T14:04:27Z","html_url":"https://github.com/tightenco/jigsaw/pull/31#discussion_r59878620","pull_request_url":"https://api.github.com/repos/tightenco/jigsaw/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/tightenco/jigsaw/pulls/comments/59878620"},"html":{"href":"https://github.com/tightenco/jigsaw/pull/31#discussion_r59878620"},"pull_request":{"href":"https://api.github.com/repos/tightenco/jigsaw/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/tightenco/jigsaw/pulls/31","id":66554038,"html_url":"https://github.com/tightenco/jigsaw/pull/31","diff_url":"https://github.com/tightenco/jigsaw/pull/31.diff","patch_url":"https://github.com/tightenco/jigsaw/pull/31.patch","issue_url":"https://api.github.com/repos/tightenco/jigsaw/issues/31","number":31,"state":"open","locked":false,"title":"Add serve command, wrapper for php build in server","user":{"login":"quickliketurtle","id":1762128,"avatar_url":"https://avatars.githubusercontent.com/u/1762128?v=3","gravatar_id":"","url":"https://api.github.com/users/quickliketurtle","html_url":"https://github.com/quickliketurtle","followers_url":"https://api.github.com/users/quickliketurtle/followers","following_url":"https://api.github.com/users/quickliketurtle/following{/other_user}","gists_url":"https://api.github.com/users/quickliketurtle/gists{/gist_id}","starred_url":"https://api.github.com/users/quickliketurtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quickliketurtle/subscriptions","organizations_url":"https://api.github.com/users/quickliketurtle/orgs","repos_url":"https://api.github.com/users/quickliketurtle/repos","events_url":"https://api.github.com/users/quickliketurtle/events{/privacy}","received_events_url":"https://api.github.com/users/quickliketurtle/received_events","type":"User","site_admin":false},"body":"Hey Adam- \r\nI wrote a serve command that is a wrapper for the built in php server. This allows you to run \r\n`$ jigsaw serve` \r\nrather than \r\n`$ php -S localhost:8000 -t build_local`\r\nMuch more efficient. :-)\r\n\r\nYou can pass an optional environment and port to the command as well. `$ jigsaw serve production 8080`. I didn't think providing a different hostname would be used, but could add that as well, incase you wanted to use an IP address rather than localhost. \r\n\r\nI used arguments and check if a value is provided then set a default value, rather than options with a default value to match how you wrote the init command. You did use options with the build command so i'm not sure which you prefer. \r\n\r\nAlso used the passthru function rather than exec so any output would be sent to the console, there isn't any i saw during testing but it sounded like a good idea. \r\n\r\nThoughts or questions? \r\n\r\nThanks. \r\n--Jeff","created_at":"2016-04-14T21:07:28Z","updated_at":"2016-04-15T14:04:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d0044edae3048e17c30647d45301d0e52191830","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tightenco/jigsaw/pulls/31/commits","review_comments_url":"https://api.github.com/repos/tightenco/jigsaw/pulls/31/comments","review_comment_url":"https://api.github.com/repos/tightenco/jigsaw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tightenco/jigsaw/issues/31/comments","statuses_url":"https://api.github.com/repos/tightenco/jigsaw/statuses/be5b4448a0dda40190d94a891cfa385db67ea639","head":{"label":"quickliketurtle:master","ref":"master","sha":"be5b4448a0dda40190d94a891cfa385db67ea639","user":{"login":"quickliketurtle","id":1762128,"avatar_url":"https://avatars.githubusercontent.com/u/1762128?v=3","gravatar_id":"","url":"https://api.github.com/users/quickliketurtle","html_url":"https://github.com/quickliketurtle","followers_url":"https://api.github.com/users/quickliketurtle/followers","following_url":"https://api.github.com/users/quickliketurtle/following{/other_user}","gists_url":"https://api.github.com/users/quickliketurtle/gists{/gist_id}","starred_url":"https://api.github.com/users/quickliketurtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quickliketurtle/subscriptions","organizations_url":"https://api.github.com/users/quickliketurtle/orgs","repos_url":"https://api.github.com/users/quickliketurtle/repos","events_url":"https://api.github.com/users/quickliketurtle/events{/privacy}","received_events_url":"https://api.github.com/users/quickliketurtle/received_events","type":"User","site_admin":false},"repo":{"id":56115148,"name":"jigsaw","full_name":"quickliketurtle/jigsaw","owner":{"login":"quickliketurtle","id":1762128,"avatar_url":"https://avatars.githubusercontent.com/u/1762128?v=3","gravatar_id":"","url":"https://api.github.com/users/quickliketurtle","html_url":"https://github.com/quickliketurtle","followers_url":"https://api.github.com/users/quickliketurtle/followers","following_url":"https://api.github.com/users/quickliketurtle/following{/other_user}","gists_url":"https://api.github.com/users/quickliketurtle/gists{/gist_id}","starred_url":"https://api.github.com/users/quickliketurtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quickliketurtle/subscriptions","organizations_url":"https://api.github.com/users/quickliketurtle/orgs","repos_url":"https://api.github.com/users/quickliketurtle/repos","events_url":"https://api.github.com/users/quickliketurtle/events{/privacy}","received_events_url":"https://api.github.com/users/quickliketurtle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/quickliketurtle/jigsaw","description":"Simple static sites with Laravel's Blade","fork":true,"url":"https://api.github.com/repos/quickliketurtle/jigsaw","forks_url":"https://api.github.com/repos/quickliketurtle/jigsaw/forks","keys_url":"https://api.github.com/repos/quickliketurtle/jigsaw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quickliketurtle/jigsaw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quickliketurtle/jigsaw/teams","hooks_url":"https://api.github.com/repos/quickliketurtle/jigsaw/hooks","issue_events_url":"https://api.github.com/repos/quickliketurtle/jigsaw/issues/events{/number}","events_url":"https://api.github.com/repos/quickliketurtle/jigsaw/events","assignees_url":"https://api.github.com/repos/quickliketurtle/jigsaw/assignees{/user}","branches_url":"https://api.github.com/repos/quickliketurtle/jigsaw/branches{/branch}","tags_url":"https://api.github.com/repos/quickliketurtle/jigsaw/tags","blobs_url":"https://api.github.com/repos/quickliketurtle/jigsaw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quickliketurtle/jigsaw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quickliketurtle/jigsaw/git/refs{/sha}","trees_url":"https://api.github.com/repos/quickliketurtle/jigsaw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quickliketurtle/jigsaw/statuses/{sha}","languages_url":"https://api.github.com/repos/quickliketurtle/jigsaw/languages","stargazers_url":"https://api.github.com/repos/quickliketurtle/jigsaw/stargazers","contributors_url":"https://api.github.com/repos/quickliketurtle/jigsaw/contributors","subscribers_url":"https://api.github.com/repos/quickliketurtle/jigsaw/subscribers","subscription_url":"https://api.github.com/repos/quickliketurtle/jigsaw/subscription","commits_url":"https://api.github.com/repos/quickliketurtle/jigsaw/commits{/sha}","git_commits_url":"https://api.github.com/repos/quickliketurtle/jigsaw/git/commits{/sha}","comments_url":"https://api.github.com/repos/quickliketurtle/jigsaw/comments{/number}","issue_comment_url":"https://api.github.com/repos/quickliketurtle/jigsaw/issues/comments{/number}","contents_url":"https://api.github.com/repos/quickliketurtle/jigsaw/contents/{+path}","compare_url":"https://api.github.com/repos/quickliketurtle/jigsaw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quickliketurtle/jigsaw/merges","archive_url":"https://api.github.com/repos/quickliketurtle/jigsaw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quickliketurtle/jigsaw/downloads","issues_url":"https://api.github.com/repos/quickliketurtle/jigsaw/issues{/number}","pulls_url":"https://api.github.com/repos/quickliketurtle/jigsaw/pulls{/number}","milestones_url":"https://api.github.com/repos/quickliketurtle/jigsaw/milestones{/number}","notifications_url":"https://api.github.com/repos/quickliketurtle/jigsaw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quickliketurtle/jigsaw/labels{/name}","releases_url":"https://api.github.com/repos/quickliketurtle/jigsaw/releases{/id}","deployments_url":"https://api.github.com/repos/quickliketurtle/jigsaw/deployments","created_at":"2016-04-13T02:43:14Z","updated_at":"2016-04-13T02:43:15Z","pushed_at":"2016-04-14T20:55:15Z","git_url":"git://github.com/quickliketurtle/jigsaw.git","ssh_url":"git@github.com:quickliketurtle/jigsaw.git","clone_url":"https://github.com/quickliketurtle/jigsaw.git","svn_url":"https://github.com/quickliketurtle/jigsaw","homepage":"","size":1050,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"tightenco:master","ref":"master","sha":"61eda361edc5a62ce9f9bc4f3b182432045e15e1","user":{"login":"tightenco","id":5122936,"avatar_url":"https://avatars.githubusercontent.com/u/5122936?v=3","gravatar_id":"","url":"https://api.github.com/users/tightenco","html_url":"https://github.com/tightenco","followers_url":"https://api.github.com/users/tightenco/followers","following_url":"https://api.github.com/users/tightenco/following{/other_user}","gists_url":"https://api.github.com/users/tightenco/gists{/gist_id}","starred_url":"https://api.github.com/users/tightenco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tightenco/subscriptions","organizations_url":"https://api.github.com/users/tightenco/orgs","repos_url":"https://api.github.com/users/tightenco/repos","events_url":"https://api.github.com/users/tightenco/events{/privacy}","received_events_url":"https://api.github.com/users/tightenco/received_events","type":"Organization","site_admin":false},"repo":{"id":36250118,"name":"jigsaw","full_name":"tightenco/jigsaw","owner":{"login":"tightenco","id":5122936,"avatar_url":"https://avatars.githubusercontent.com/u/5122936?v=3","gravatar_id":"","url":"https://api.github.com/users/tightenco","html_url":"https://github.com/tightenco","followers_url":"https://api.github.com/users/tightenco/followers","following_url":"https://api.github.com/users/tightenco/following{/other_user}","gists_url":"https://api.github.com/users/tightenco/gists{/gist_id}","starred_url":"https://api.github.com/users/tightenco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tightenco/subscriptions","organizations_url":"https://api.github.com/users/tightenco/orgs","repos_url":"https://api.github.com/users/tightenco/repos","events_url":"https://api.github.com/users/tightenco/events{/privacy}","received_events_url":"https://api.github.com/users/tightenco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tightenco/jigsaw","description":"Simple static sites with Laravel's Blade","fork":false,"url":"https://api.github.com/repos/tightenco/jigsaw","forks_url":"https://api.github.com/repos/tightenco/jigsaw/forks","keys_url":"https://api.github.com/repos/tightenco/jigsaw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tightenco/jigsaw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tightenco/jigsaw/teams","hooks_url":"https://api.github.com/repos/tightenco/jigsaw/hooks","issue_events_url":"https://api.github.com/repos/tightenco/jigsaw/issues/events{/number}","events_url":"https://api.github.com/repos/tightenco/jigsaw/events","assignees_url":"https://api.github.com/repos/tightenco/jigsaw/assignees{/user}","branches_url":"https://api.github.com/repos/tightenco/jigsaw/branches{/branch}","tags_url":"https://api.github.com/repos/tightenco/jigsaw/tags","blobs_url":"https://api.github.com/repos/tightenco/jigsaw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tightenco/jigsaw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tightenco/jigsaw/git/refs{/sha}","trees_url":"https://api.github.com/repos/tightenco/jigsaw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tightenco/jigsaw/statuses/{sha}","languages_url":"https://api.github.com/repos/tightenco/jigsaw/languages","stargazers_url":"https://api.github.com/repos/tightenco/jigsaw/stargazers","contributors_url":"https://api.github.com/repos/tightenco/jigsaw/contributors","subscribers_url":"https://api.github.com/repos/tightenco/jigsaw/subscribers","subscription_url":"https://api.github.com/repos/tightenco/jigsaw/subscription","commits_url":"https://api.github.com/repos/tightenco/jigsaw/commits{/sha}","git_commits_url":"https://api.github.com/repos/tightenco/jigsaw/git/commits{/sha}","comments_url":"https://api.github.com/repos/tightenco/jigsaw/comments{/number}","issue_comment_url":"https://api.github.com/repos/tightenco/jigsaw/issues/comments{/number}","contents_url":"https://api.github.com/repos/tightenco/jigsaw/contents/{+path}","compare_url":"https://api.github.com/repos/tightenco/jigsaw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tightenco/jigsaw/merges","archive_url":"https://api.github.com/repos/tightenco/jigsaw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tightenco/jigsaw/downloads","issues_url":"https://api.github.com/repos/tightenco/jigsaw/issues{/number}","pulls_url":"https://api.github.com/repos/tightenco/jigsaw/pulls{/number}","milestones_url":"https://api.github.com/repos/tightenco/jigsaw/milestones{/number}","notifications_url":"https://api.github.com/repos/tightenco/jigsaw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tightenco/jigsaw/labels{/name}","releases_url":"https://api.github.com/repos/tightenco/jigsaw/releases{/id}","deployments_url":"https://api.github.com/repos/tightenco/jigsaw/deployments","created_at":"2015-05-25T19:25:13Z","updated_at":"2016-04-15T12:30:37Z","pushed_at":"2016-04-15T13:42:13Z","git_url":"git://github.com/tightenco/jigsaw.git","ssh_url":"git@github.com:tightenco/jigsaw.git","clone_url":"https://github.com/tightenco/jigsaw.git","svn_url":"https://github.com/tightenco/jigsaw","homepage":"","size":1063,"stargazers_count":361,"watchers_count":361,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":13,"forks":28,"open_issues":13,"watchers":361,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tightenco/jigsaw/pulls/31"},"html":{"href":"https://github.com/tightenco/jigsaw/pull/31"},"issue":{"href":"https://api.github.com/repos/tightenco/jigsaw/issues/31"},"comments":{"href":"https://api.github.com/repos/tightenco/jigsaw/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/tightenco/jigsaw/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/tightenco/jigsaw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tightenco/jigsaw/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/tightenco/jigsaw/statuses/be5b4448a0dda40190d94a891cfa385db67ea639"}}}}