{"action":"created","comment":{"url":"https://api.github.com/repos/ytv/mockDB/pulls/comments/71072541","id":71072541,"diff_hunk":"@@ -0,0 +1,103 @@\n+var config = require('./config.js'),\n+    crudService = require('./scripts/crud-service.js'),\n+    doc = require('./scripts/doc-config.js'),\n+    usage = require('./scripts/usage.js');\n+","path":"mockDB.js","position":5,"original_position":5,"commit_id":"8222e61df830f3e4418725e15844f4630fddf5cc","original_commit_id":"8222e61df830f3e4418725e15844f4630fddf5cc","user":{"login":"pandaexpress","id":4051837,"avatar_url":"https://avatars.githubusercontent.com/u/4051837?v=3","gravatar_id":"","url":"https://api.github.com/users/pandaexpress","html_url":"https://github.com/pandaexpress","followers_url":"https://api.github.com/users/pandaexpress/followers","following_url":"https://api.github.com/users/pandaexpress/following{/other_user}","gists_url":"https://api.github.com/users/pandaexpress/gists{/gist_id}","starred_url":"https://api.github.com/users/pandaexpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandaexpress/subscriptions","organizations_url":"https://api.github.com/users/pandaexpress/orgs","repos_url":"https://api.github.com/users/pandaexpress/repos","events_url":"https://api.github.com/users/pandaexpress/events{/privacy}","received_events_url":"https://api.github.com/users/pandaexpress/received_events","type":"User","site_admin":false},"body":"Use config folder, so you don't have one giant config object.  config.db.mongo.url.... is a bad sign.  Should just be an object 1 level deep.","created_at":"2016-07-16T22:06:16Z","updated_at":"2016-07-16T22:06:16Z","html_url":"https://github.com/ytv/mockDB/pull/1#discussion_r71072541","pull_request_url":"https://api.github.com/repos/ytv/mockDB/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ytv/mockDB/pulls/comments/71072541"},"html":{"href":"https://github.com/ytv/mockDB/pull/1#discussion_r71072541"},"pull_request":{"href":"https://api.github.com/repos/ytv/mockDB/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ytv/mockDB/pulls/1","id":77338423,"html_url":"https://github.com/ytv/mockDB/pull/1","diff_url":"https://github.com/ytv/mockDB/pull/1.diff","patch_url":"https://github.com/ytv/mockDB/pull/1.patch","issue_url":"https://api.github.com/repos/ytv/mockDB/issues/1","number":1,"state":"open","locked":false,"title":"Initial Commit","user":{"login":"ytv","id":14367962,"avatar_url":"https://avatars.githubusercontent.com/u/14367962?v=3","gravatar_id":"","url":"https://api.github.com/users/ytv","html_url":"https://github.com/ytv","followers_url":"https://api.github.com/users/ytv/followers","following_url":"https://api.github.com/users/ytv/following{/other_user}","gists_url":"https://api.github.com/users/ytv/gists{/gist_id}","starred_url":"https://api.github.com/users/ytv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytv/subscriptions","organizations_url":"https://api.github.com/users/ytv/orgs","repos_url":"https://api.github.com/users/ytv/repos","events_url":"https://api.github.com/users/ytv/events{/privacy}","received_events_url":"https://api.github.com/users/ytv/received_events","type":"User","site_admin":false},"body":"Initial implementation of mockDB tool includes config, package.JSON, and helper scripts: crud-service, doc-config and usage.\r\n\r\nThe only crud services supported so far are view, insert, and delete (all).  To display usage, type in \"node mockDB.js\"\r\n\r\nI want to able to access the other crud services (find, update, replace) from the command line but to do so, I need to be able to pass in 2 different JSON objects as command line arguments.  For example, in order to update a document (or records, as they call it in SQL), I need to somehow pass in {field1: value1} and {field2: value2} so that it can find the documents whose field1 has value1 and update field2 with value 2.\r\n\r\nI was able to google libraries like \"minimalist\" and \"yargs\" that parse out command line key-value arguments, but they don't seem to allow me to separate key-value arguments into 2 categories: key-value pairs I'm using as criteria to find documents and key-value pairs I'm using to update the documents with.  Does this make sense, and if so, any ideas?","created_at":"2016-07-13T18:31:20Z","updated_at":"2016-07-16T22:06:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"639c8542d42d1b407374ee7c6372fc332a193a02","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ytv/mockDB/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ytv/mockDB/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ytv/mockDB/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ytv/mockDB/issues/1/comments","statuses_url":"https://api.github.com/repos/ytv/mockDB/statuses/8222e61df830f3e4418725e15844f4630fddf5cc","head":{"label":"ytv:mockDB/v1.0","ref":"mockDB/v1.0","sha":"8222e61df830f3e4418725e15844f4630fddf5cc","user":{"login":"ytv","id":14367962,"avatar_url":"https://avatars.githubusercontent.com/u/14367962?v=3","gravatar_id":"","url":"https://api.github.com/users/ytv","html_url":"https://github.com/ytv","followers_url":"https://api.github.com/users/ytv/followers","following_url":"https://api.github.com/users/ytv/following{/other_user}","gists_url":"https://api.github.com/users/ytv/gists{/gist_id}","starred_url":"https://api.github.com/users/ytv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytv/subscriptions","organizations_url":"https://api.github.com/users/ytv/orgs","repos_url":"https://api.github.com/users/ytv/repos","events_url":"https://api.github.com/users/ytv/events{/privacy}","received_events_url":"https://api.github.com/users/ytv/received_events","type":"User","site_admin":false},"repo":{"id":63266777,"name":"mockDB","full_name":"ytv/mockDB","owner":{"login":"ytv","id":14367962,"avatar_url":"https://avatars.githubusercontent.com/u/14367962?v=3","gravatar_id":"","url":"https://api.github.com/users/ytv","html_url":"https://github.com/ytv","followers_url":"https://api.github.com/users/ytv/followers","following_url":"https://api.github.com/users/ytv/following{/other_user}","gists_url":"https://api.github.com/users/ytv/gists{/gist_id}","starred_url":"https://api.github.com/users/ytv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytv/subscriptions","organizations_url":"https://api.github.com/users/ytv/orgs","repos_url":"https://api.github.com/users/ytv/repos","events_url":"https://api.github.com/users/ytv/events{/privacy}","received_events_url":"https://api.github.com/users/ytv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ytv/mockDB","description":"a tool to generate mock data with node.js","fork":false,"url":"https://api.github.com/repos/ytv/mockDB","forks_url":"https://api.github.com/repos/ytv/mockDB/forks","keys_url":"https://api.github.com/repos/ytv/mockDB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ytv/mockDB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ytv/mockDB/teams","hooks_url":"https://api.github.com/repos/ytv/mockDB/hooks","issue_events_url":"https://api.github.com/repos/ytv/mockDB/issues/events{/number}","events_url":"https://api.github.com/repos/ytv/mockDB/events","assignees_url":"https://api.github.com/repos/ytv/mockDB/assignees{/user}","branches_url":"https://api.github.com/repos/ytv/mockDB/branches{/branch}","tags_url":"https://api.github.com/repos/ytv/mockDB/tags","blobs_url":"https://api.github.com/repos/ytv/mockDB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ytv/mockDB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ytv/mockDB/git/refs{/sha}","trees_url":"https://api.github.com/repos/ytv/mockDB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ytv/mockDB/statuses/{sha}","languages_url":"https://api.github.com/repos/ytv/mockDB/languages","stargazers_url":"https://api.github.com/repos/ytv/mockDB/stargazers","contributors_url":"https://api.github.com/repos/ytv/mockDB/contributors","subscribers_url":"https://api.github.com/repos/ytv/mockDB/subscribers","subscription_url":"https://api.github.com/repos/ytv/mockDB/subscription","commits_url":"https://api.github.com/repos/ytv/mockDB/commits{/sha}","git_commits_url":"https://api.github.com/repos/ytv/mockDB/git/commits{/sha}","comments_url":"https://api.github.com/repos/ytv/mockDB/comments{/number}","issue_comment_url":"https://api.github.com/repos/ytv/mockDB/issues/comments{/number}","contents_url":"https://api.github.com/repos/ytv/mockDB/contents/{+path}","compare_url":"https://api.github.com/repos/ytv/mockDB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ytv/mockDB/merges","archive_url":"https://api.github.com/repos/ytv/mockDB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ytv/mockDB/downloads","issues_url":"https://api.github.com/repos/ytv/mockDB/issues{/number}","pulls_url":"https://api.github.com/repos/ytv/mockDB/pulls{/number}","milestones_url":"https://api.github.com/repos/ytv/mockDB/milestones{/number}","notifications_url":"https://api.github.com/repos/ytv/mockDB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ytv/mockDB/labels{/name}","releases_url":"https://api.github.com/repos/ytv/mockDB/releases{/id}","deployments_url":"https://api.github.com/repos/ytv/mockDB/deployments","created_at":"2016-07-13T17:38:43Z","updated_at":"2016-07-13T17:38:43Z","pushed_at":"2016-07-13T18:31:20Z","git_url":"git://github.com/ytv/mockDB.git","ssh_url":"git@github.com:ytv/mockDB.git","clone_url":"https://github.com/ytv/mockDB.git","svn_url":"https://github.com/ytv/mockDB","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ytv:master","ref":"master","sha":"b7ede2496bde0e4cd34e4e50c59cbe7a2340a98c","user":{"login":"ytv","id":14367962,"avatar_url":"https://avatars.githubusercontent.com/u/14367962?v=3","gravatar_id":"","url":"https://api.github.com/users/ytv","html_url":"https://github.com/ytv","followers_url":"https://api.github.com/users/ytv/followers","following_url":"https://api.github.com/users/ytv/following{/other_user}","gists_url":"https://api.github.com/users/ytv/gists{/gist_id}","starred_url":"https://api.github.com/users/ytv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytv/subscriptions","organizations_url":"https://api.github.com/users/ytv/orgs","repos_url":"https://api.github.com/users/ytv/repos","events_url":"https://api.github.com/users/ytv/events{/privacy}","received_events_url":"https://api.github.com/users/ytv/received_events","type":"User","site_admin":false},"repo":{"id":63266777,"name":"mockDB","full_name":"ytv/mockDB","owner":{"login":"ytv","id":14367962,"avatar_url":"https://avatars.githubusercontent.com/u/14367962?v=3","gravatar_id":"","url":"https://api.github.com/users/ytv","html_url":"https://github.com/ytv","followers_url":"https://api.github.com/users/ytv/followers","following_url":"https://api.github.com/users/ytv/following{/other_user}","gists_url":"https://api.github.com/users/ytv/gists{/gist_id}","starred_url":"https://api.github.com/users/ytv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytv/subscriptions","organizations_url":"https://api.github.com/users/ytv/orgs","repos_url":"https://api.github.com/users/ytv/repos","events_url":"https://api.github.com/users/ytv/events{/privacy}","received_events_url":"https://api.github.com/users/ytv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ytv/mockDB","description":"a tool to generate mock data with node.js","fork":false,"url":"https://api.github.com/repos/ytv/mockDB","forks_url":"https://api.github.com/repos/ytv/mockDB/forks","keys_url":"https://api.github.com/repos/ytv/mockDB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ytv/mockDB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ytv/mockDB/teams","hooks_url":"https://api.github.com/repos/ytv/mockDB/hooks","issue_events_url":"https://api.github.com/repos/ytv/mockDB/issues/events{/number}","events_url":"https://api.github.com/repos/ytv/mockDB/events","assignees_url":"https://api.github.com/repos/ytv/mockDB/assignees{/user}","branches_url":"https://api.github.com/repos/ytv/mockDB/branches{/branch}","tags_url":"https://api.github.com/repos/ytv/mockDB/tags","blobs_url":"https://api.github.com/repos/ytv/mockDB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ytv/mockDB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ytv/mockDB/git/refs{/sha}","trees_url":"https://api.github.com/repos/ytv/mockDB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ytv/mockDB/statuses/{sha}","languages_url":"https://api.github.com/repos/ytv/mockDB/languages","stargazers_url":"https://api.github.com/repos/ytv/mockDB/stargazers","contributors_url":"https://api.github.com/repos/ytv/mockDB/contributors","subscribers_url":"https://api.github.com/repos/ytv/mockDB/subscribers","subscription_url":"https://api.github.com/repos/ytv/mockDB/subscription","commits_url":"https://api.github.com/repos/ytv/mockDB/commits{/sha}","git_commits_url":"https://api.github.com/repos/ytv/mockDB/git/commits{/sha}","comments_url":"https://api.github.com/repos/ytv/mockDB/comments{/number}","issue_comment_url":"https://api.github.com/repos/ytv/mockDB/issues/comments{/number}","contents_url":"https://api.github.com/repos/ytv/mockDB/contents/{+path}","compare_url":"https://api.github.com/repos/ytv/mockDB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ytv/mockDB/merges","archive_url":"https://api.github.com/repos/ytv/mockDB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ytv/mockDB/downloads","issues_url":"https://api.github.com/repos/ytv/mockDB/issues{/number}","pulls_url":"https://api.github.com/repos/ytv/mockDB/pulls{/number}","milestones_url":"https://api.github.com/repos/ytv/mockDB/milestones{/number}","notifications_url":"https://api.github.com/repos/ytv/mockDB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ytv/mockDB/labels{/name}","releases_url":"https://api.github.com/repos/ytv/mockDB/releases{/id}","deployments_url":"https://api.github.com/repos/ytv/mockDB/deployments","created_at":"2016-07-13T17:38:43Z","updated_at":"2016-07-13T17:38:43Z","pushed_at":"2016-07-13T18:31:20Z","git_url":"git://github.com/ytv/mockDB.git","ssh_url":"git@github.com:ytv/mockDB.git","clone_url":"https://github.com/ytv/mockDB.git","svn_url":"https://github.com/ytv/mockDB","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ytv/mockDB/pulls/1"},"html":{"href":"https://github.com/ytv/mockDB/pull/1"},"issue":{"href":"https://api.github.com/repos/ytv/mockDB/issues/1"},"comments":{"href":"https://api.github.com/repos/ytv/mockDB/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ytv/mockDB/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ytv/mockDB/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ytv/mockDB/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ytv/mockDB/statuses/8222e61df830f3e4418725e15844f4630fddf5cc"}}}}
{"actor":{"display_login":"pandaexpress"}}