{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/mentat/pulls/comments/95431144","pull_request_review_id":15985595,"id":95431144,"diff_hunk":"@@ -0,0 +1,47 @@\n+// Copyright 2016 Mozilla\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\n+// this file except in compliance with the License. You may obtain a copy of the\n+// License at http://www.apache.org/licenses/LICENSE-2.0\n+// Unless required by applicable law or agreed to in writing, software distributed\n+// under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n+// CONDITIONS OF ANY KIND, either express or implied. See the License for the\n+// specific language governing permissions and limitations under the License.\n+\n+extern crate clap;\n+\n+use clap::{App, Arg, SubCommand};\n+\n+fn main() {\n+    let matches = App::new(\"Mentat\")\n+                    .subcommand(SubCommand::with_name(\"serve\")","path":"src/main.rs","position":null,"original_position":17,"commit_id":"0d202f65225e14daf1ff9f3b747de35e696bbc3c","original_commit_id":"a6545cc6c40b386735ffd5e2ef6cf7a4fafa3336","user":{"login":"bgrins","id":95570,"avatar_url":"https://avatars.githubusercontent.com/u/95570?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrins","html_url":"https://github.com/bgrins","followers_url":"https://api.github.com/users/bgrins/followers","following_url":"https://api.github.com/users/bgrins/following{/other_user}","gists_url":"https://api.github.com/users/bgrins/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrins/subscriptions","organizations_url":"https://api.github.com/users/bgrins/orgs","repos_url":"https://api.github.com/users/bgrins/repos","events_url":"https://api.github.com/users/bgrins/events{/privacy}","received_events_url":"https://api.github.com/users/bgrins/received_events","type":"User","site_admin":false},"body":"Yeah, ran rustfmt on the code which reduced indentation a bit","created_at":"2017-01-10T18:51:42Z","updated_at":"2017-01-10T18:51:42Z","html_url":"https://github.com/mozilla/mentat/pull/150#discussion_r95431144","pull_request_url":"https://api.github.com/repos/mozilla/mentat/pulls/150","_links":{"self":{"href":"https://api.github.com/repos/mozilla/mentat/pulls/comments/95431144"},"html":{"href":"https://github.com/mozilla/mentat/pull/150#discussion_r95431144"},"pull_request":{"href":"https://api.github.com/repos/mozilla/mentat/pulls/150"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/mentat/pulls/150","id":100534910,"html_url":"https://github.com/mozilla/mentat/pull/150","diff_url":"https://github.com/mozilla/mentat/pull/150.diff","patch_url":"https://github.com/mozilla/mentat/pull/150.patch","issue_url":"https://api.github.com/repos/mozilla/mentat/issues/150","number":150,"state":"open","locked":false,"title":"Move the bin to src and take on clap dependency for command line arg parsing","user":{"login":"bgrins","id":95570,"avatar_url":"https://avatars.githubusercontent.com/u/95570?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrins","html_url":"https://github.com/bgrins","followers_url":"https://api.github.com/users/bgrins/followers","following_url":"https://api.github.com/users/bgrins/following{/other_user}","gists_url":"https://api.github.com/users/bgrins/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrins/subscriptions","organizations_url":"https://api.github.com/users/bgrins/orgs","repos_url":"https://api.github.com/users/bgrins/repos","events_url":"https://api.github.com/users/bgrins/events{/privacy}","received_events_url":"https://api.github.com/users/bgrins/received_events","type":"User","site_admin":false},"body":"I realized that keeping the cli in another crate wasn't helping and actually caused build issues once we had remote dependencies (cargo wouldn't build that sub-crate since it wasn't a dependency of datomish and just a bin reference).\r\n\r\nWe can easily keep the binary in the main src/ directory so that's what this does.  There's initial support for subcommands in place (so we can do `cargo run serve`, `cargo run whatever`.\r\n\r\nThis doesn't yet wire up the web server from #147","created_at":"2017-01-06T22:13:46Z","updated_at":"2017-01-10T18:51:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"384b41e69232cbb0689d616f0625dcbe84865e47","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/mentat/pulls/150/commits","review_comments_url":"https://api.github.com/repos/mozilla/mentat/pulls/150/comments","review_comment_url":"https://api.github.com/repos/mozilla/mentat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/mentat/issues/150/comments","statuses_url":"https://api.github.com/repos/mozilla/mentat/statuses/0d202f65225e14daf1ff9f3b747de35e696bbc3c","head":{"label":"bgrins:new-cli","ref":"new-cli","sha":"0d202f65225e14daf1ff9f3b747de35e696bbc3c","user":{"login":"bgrins","id":95570,"avatar_url":"https://avatars.githubusercontent.com/u/95570?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrins","html_url":"https://github.com/bgrins","followers_url":"https://api.github.com/users/bgrins/followers","following_url":"https://api.github.com/users/bgrins/following{/other_user}","gists_url":"https://api.github.com/users/bgrins/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrins/subscriptions","organizations_url":"https://api.github.com/users/bgrins/orgs","repos_url":"https://api.github.com/users/bgrins/repos","events_url":"https://api.github.com/users/bgrins/events{/privacy}","received_events_url":"https://api.github.com/users/bgrins/received_events","type":"User","site_admin":false},"repo":{"id":74066961,"name":"datomish","full_name":"bgrins/datomish","owner":{"login":"bgrins","id":95570,"avatar_url":"https://avatars.githubusercontent.com/u/95570?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrins","html_url":"https://github.com/bgrins","followers_url":"https://api.github.com/users/bgrins/followers","following_url":"https://api.github.com/users/bgrins/following{/other_user}","gists_url":"https://api.github.com/users/bgrins/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrins/subscriptions","organizations_url":"https://api.github.com/users/bgrins/orgs","repos_url":"https://api.github.com/users/bgrins/repos","events_url":"https://api.github.com/users/bgrins/events{/privacy}","received_events_url":"https://api.github.com/users/bgrins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bgrins/datomish","description":"A persistent, relational store inspired by Datomic and DataScript.","fork":true,"url":"https://api.github.com/repos/bgrins/datomish","forks_url":"https://api.github.com/repos/bgrins/datomish/forks","keys_url":"https://api.github.com/repos/bgrins/datomish/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bgrins/datomish/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bgrins/datomish/teams","hooks_url":"https://api.github.com/repos/bgrins/datomish/hooks","issue_events_url":"https://api.github.com/repos/bgrins/datomish/issues/events{/number}","events_url":"https://api.github.com/repos/bgrins/datomish/events","assignees_url":"https://api.github.com/repos/bgrins/datomish/assignees{/user}","branches_url":"https://api.github.com/repos/bgrins/datomish/branches{/branch}","tags_url":"https://api.github.com/repos/bgrins/datomish/tags","blobs_url":"https://api.github.com/repos/bgrins/datomish/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bgrins/datomish/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bgrins/datomish/git/refs{/sha}","trees_url":"https://api.github.com/repos/bgrins/datomish/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bgrins/datomish/statuses/{sha}","languages_url":"https://api.github.com/repos/bgrins/datomish/languages","stargazers_url":"https://api.github.com/repos/bgrins/datomish/stargazers","contributors_url":"https://api.github.com/repos/bgrins/datomish/contributors","subscribers_url":"https://api.github.com/repos/bgrins/datomish/subscribers","subscription_url":"https://api.github.com/repos/bgrins/datomish/subscription","commits_url":"https://api.github.com/repos/bgrins/datomish/commits{/sha}","git_commits_url":"https://api.github.com/repos/bgrins/datomish/git/commits{/sha}","comments_url":"https://api.github.com/repos/bgrins/datomish/comments{/number}","issue_comment_url":"https://api.github.com/repos/bgrins/datomish/issues/comments{/number}","contents_url":"https://api.github.com/repos/bgrins/datomish/contents/{+path}","compare_url":"https://api.github.com/repos/bgrins/datomish/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bgrins/datomish/merges","archive_url":"https://api.github.com/repos/bgrins/datomish/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bgrins/datomish/downloads","issues_url":"https://api.github.com/repos/bgrins/datomish/issues{/number}","pulls_url":"https://api.github.com/repos/bgrins/datomish/pulls{/number}","milestones_url":"https://api.github.com/repos/bgrins/datomish/milestones{/number}","notifications_url":"https://api.github.com/repos/bgrins/datomish/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bgrins/datomish/labels{/name}","releases_url":"https://api.github.com/repos/bgrins/datomish/releases{/id}","deployments_url":"https://api.github.com/repos/bgrins/datomish/deployments","created_at":"2016-11-17T20:59:25Z","updated_at":"2016-11-17T20:59:27Z","pushed_at":"2017-01-10T18:51:11Z","git_url":"git://github.com/bgrins/datomish.git","ssh_url":"git@github.com:bgrins/datomish.git","clone_url":"https://github.com/bgrins/datomish.git","svn_url":"https://github.com/bgrins/datomish","homepage":null,"size":547,"stargazers_count":0,"watchers_count":0,"language":"Clojure","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":"mozilla:rust","ref":"rust","sha":"daddfd3e0f6b5e210b317713b51bd8efdb52e3a6","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":62660036,"name":"mentat","full_name":"mozilla/mentat","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/mentat","description":"A persistent, relational store inspired by Datomic and DataScript.","fork":false,"url":"https://api.github.com/repos/mozilla/mentat","forks_url":"https://api.github.com/repos/mozilla/mentat/forks","keys_url":"https://api.github.com/repos/mozilla/mentat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/mentat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/mentat/teams","hooks_url":"https://api.github.com/repos/mozilla/mentat/hooks","issue_events_url":"https://api.github.com/repos/mozilla/mentat/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/mentat/events","assignees_url":"https://api.github.com/repos/mozilla/mentat/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/mentat/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/mentat/tags","blobs_url":"https://api.github.com/repos/mozilla/mentat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/mentat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/mentat/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/mentat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/mentat/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/mentat/languages","stargazers_url":"https://api.github.com/repos/mozilla/mentat/stargazers","contributors_url":"https://api.github.com/repos/mozilla/mentat/contributors","subscribers_url":"https://api.github.com/repos/mozilla/mentat/subscribers","subscription_url":"https://api.github.com/repos/mozilla/mentat/subscription","commits_url":"https://api.github.com/repos/mozilla/mentat/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/mentat/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/mentat/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/mentat/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/mentat/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/mentat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/mentat/merges","archive_url":"https://api.github.com/repos/mozilla/mentat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/mentat/downloads","issues_url":"https://api.github.com/repos/mozilla/mentat/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/mentat/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/mentat/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/mentat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/mentat/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/mentat/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/mentat/deployments","created_at":"2016-07-05T18:29:34Z","updated_at":"2017-01-10T17:51:21Z","pushed_at":"2017-01-10T18:51:12Z","git_url":"git://github.com/mozilla/mentat.git","ssh_url":"git@github.com:mozilla/mentat.git","clone_url":"https://github.com/mozilla/mentat.git","svn_url":"https://github.com/mozilla/mentat","homepage":null,"size":539,"stargazers_count":312,"watchers_count":312,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":67,"forks":14,"open_issues":67,"watchers":312,"default_branch":"rust"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/mentat/pulls/150"},"html":{"href":"https://github.com/mozilla/mentat/pull/150"},"issue":{"href":"https://api.github.com/repos/mozilla/mentat/issues/150"},"comments":{"href":"https://api.github.com/repos/mozilla/mentat/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/mentat/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/mentat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/mentat/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/mentat/statuses/0d202f65225e14daf1ff9f3b747de35e696bbc3c"}}}}
{"actor":{"display_login":"bgrins"}}