{"action":"created","comment":{"url":"https://api.github.com/repos/qri-io/qri/pulls/comments/193464585","pull_request_review_id":126442464,"id":193464585,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzQ2NDU4NQ==","diff_hunk":"@@ -100,6 +101,31 @@ func printByteInfo(l int) string {\n \treturn fmt.Sprintf(\"%v %s\", length.value, length.name)\n }\n \n+func printSearchResult(i int, result core.Result) {\n+\twhite := color.New(color.FgWhite).SprintFunc()\n+\tgreen := color.New(color.FgGreen).SprintFunc()\n+\t// NOTE: in the future we need to switch based on result.Type\n+\t// For now we are taking a shortcut and assuming a dataset struct\n+\tdsname := result.ID\n+\tresultStruct := &registry.Dataset{}\n+\tresultString := dsname\n+\tbytes, err := json.Marshal(result.Value)\n+\tif err == nil {\n+\t\terr = json.Unmarshal(bytes, resultStruct)\n+\t\tif err == nil {\n+\t\t\tvar title, desc string\n+\t\t\tif resultStruct != nil {","path":"cmd/print.go","position":25,"original_position":25,"commit_id":"81a7eddfaf7df60da0480e052fc361a23a546676","original_commit_id":"81a7eddfaf7df60da0480e052fc361a23a546676","user":{"login":"dustmop","id":2515490,"node_id":"MDQ6VXNlcjI1MTU0OTA=","avatar_url":"https://avatars2.githubusercontent.com/u/2515490?v=4","gravatar_id":"","url":"https://api.github.com/users/dustmop","html_url":"https://github.com/dustmop","followers_url":"https://api.github.com/users/dustmop/followers","following_url":"https://api.github.com/users/dustmop/following{/other_user}","gists_url":"https://api.github.com/users/dustmop/gists{/gist_id}","starred_url":"https://api.github.com/users/dustmop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustmop/subscriptions","organizations_url":"https://api.github.com/users/dustmop/orgs","repos_url":"https://api.github.com/users/dustmop/repos","events_url":"https://api.github.com/users/dustmop/events{/privacy}","received_events_url":"https://api.github.com/users/dustmop/received_events","type":"User","site_admin":false},"body":"No need to check for nil here, resultStruct is both constructed a few lines above and also passed as an out parameter to Unmarshal.","created_at":"2018-06-06T15:56:48Z","updated_at":"2018-06-06T15:56:48Z","html_url":"https://github.com/qri-io/qri/pull/440#discussion_r193464585","pull_request_url":"https://api.github.com/repos/qri-io/qri/pulls/440","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/qri-io/qri/pulls/comments/193464585"},"html":{"href":"https://github.com/qri-io/qri/pull/440#discussion_r193464585"},"pull_request":{"href":"https://api.github.com/repos/qri-io/qri/pulls/440"}}},"pull_request":{"url":"https://api.github.com/repos/qri-io/qri/pulls/440","id":193034501,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMDM0NTAx","html_url":"https://github.com/qri-io/qri/pull/440","diff_url":"https://github.com/qri-io/qri/pull/440.diff","patch_url":"https://github.com/qri-io/qri/pull/440.patch","issue_url":"https://api.github.com/repos/qri-io/qri/issues/440","number":440,"state":"open","locked":false,"title":"WIP feat: add search","user":{"login":"osterbit","id":3967296,"node_id":"MDQ6VXNlcjM5NjcyOTY=","avatar_url":"https://avatars2.githubusercontent.com/u/3967296?v=4","gravatar_id":"","url":"https://api.github.com/users/osterbit","html_url":"https://github.com/osterbit","followers_url":"https://api.github.com/users/osterbit/followers","following_url":"https://api.github.com/users/osterbit/following{/other_user}","gists_url":"https://api.github.com/users/osterbit/gists{/gist_id}","starred_url":"https://api.github.com/users/osterbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osterbit/subscriptions","organizations_url":"https://api.github.com/users/osterbit/orgs","repos_url":"https://api.github.com/users/osterbit/repos","events_url":"https://api.github.com/users/osterbit/events{/privacy}","received_events_url":"https://api.github.com/users/osterbit/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-06T14:33:21Z","updated_at":"2018-06-06T15:56:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89ee2b5fb6c4321ab23cdc242e5f4beaa888bd7e","assignee":{"login":"osterbit","id":3967296,"node_id":"MDQ6VXNlcjM5NjcyOTY=","avatar_url":"https://avatars2.githubusercontent.com/u/3967296?v=4","gravatar_id":"","url":"https://api.github.com/users/osterbit","html_url":"https://github.com/osterbit","followers_url":"https://api.github.com/users/osterbit/followers","following_url":"https://api.github.com/users/osterbit/following{/other_user}","gists_url":"https://api.github.com/users/osterbit/gists{/gist_id}","starred_url":"https://api.github.com/users/osterbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osterbit/subscriptions","organizations_url":"https://api.github.com/users/osterbit/orgs","repos_url":"https://api.github.com/users/osterbit/repos","events_url":"https://api.github.com/users/osterbit/events{/privacy}","received_events_url":"https://api.github.com/users/osterbit/received_events","type":"User","site_admin":false},"assignees":[{"login":"osterbit","id":3967296,"node_id":"MDQ6VXNlcjM5NjcyOTY=","avatar_url":"https://avatars2.githubusercontent.com/u/3967296?v=4","gravatar_id":"","url":"https://api.github.com/users/osterbit","html_url":"https://github.com/osterbit","followers_url":"https://api.github.com/users/osterbit/followers","following_url":"https://api.github.com/users/osterbit/following{/other_user}","gists_url":"https://api.github.com/users/osterbit/gists{/gist_id}","starred_url":"https://api.github.com/users/osterbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osterbit/subscriptions","organizations_url":"https://api.github.com/users/osterbit/orgs","repos_url":"https://api.github.com/users/osterbit/repos","events_url":"https://api.github.com/users/osterbit/events{/privacy}","received_events_url":"https://api.github.com/users/osterbit/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":673327179,"node_id":"MDU6TGFiZWw2NzMzMjcxNzk=","url":"https://api.github.com/repos/qri-io/qri/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/qri-io/qri/pulls/440/commits","review_comments_url":"https://api.github.com/repos/qri-io/qri/pulls/440/comments","review_comment_url":"https://api.github.com/repos/qri-io/qri/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qri-io/qri/issues/440/comments","statuses_url":"https://api.github.com/repos/qri-io/qri/statuses/81a7eddfaf7df60da0480e052fc361a23a546676","head":{"label":"qri-io:coresearch","ref":"coresearch","sha":"81a7eddfaf7df60da0480e052fc361a23a546676","user":{"login":"qri-io","id":19268065,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MjY4MDY1","avatar_url":"https://avatars1.githubusercontent.com/u/19268065?v=4","gravatar_id":"","url":"https://api.github.com/users/qri-io","html_url":"https://github.com/qri-io","followers_url":"https://api.github.com/users/qri-io/followers","following_url":"https://api.github.com/users/qri-io/following{/other_user}","gists_url":"https://api.github.com/users/qri-io/gists{/gist_id}","starred_url":"https://api.github.com/users/qri-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qri-io/subscriptions","organizations_url":"https://api.github.com/users/qri-io/orgs","repos_url":"https://api.github.com/users/qri-io/repos","events_url":"https://api.github.com/users/qri-io/events{/privacy}","received_events_url":"https://api.github.com/users/qri-io/received_events","type":"Organization","site_admin":false},"repo":{"id":71603023,"node_id":"MDEwOlJlcG9zaXRvcnk3MTYwMzAyMw==","name":"qri","full_name":"qri-io/qri","owner":{"login":"qri-io","id":19268065,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MjY4MDY1","avatar_url":"https://avatars1.githubusercontent.com/u/19268065?v=4","gravatar_id":"","url":"https://api.github.com/users/qri-io","html_url":"https://github.com/qri-io","followers_url":"https://api.github.com/users/qri-io/followers","following_url":"https://api.github.com/users/qri-io/following{/other_user}","gists_url":"https://api.github.com/users/qri-io/gists{/gist_id}","starred_url":"https://api.github.com/users/qri-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qri-io/subscriptions","organizations_url":"https://api.github.com/users/qri-io/orgs","repos_url":"https://api.github.com/users/qri-io/repos","events_url":"https://api.github.com/users/qri-io/events{/privacy}","received_events_url":"https://api.github.com/users/qri-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qri-io/qri","description":"distributed dataset version control system on IPFS","fork":false,"url":"https://api.github.com/repos/qri-io/qri","forks_url":"https://api.github.com/repos/qri-io/qri/forks","keys_url":"https://api.github.com/repos/qri-io/qri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qri-io/qri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qri-io/qri/teams","hooks_url":"https://api.github.com/repos/qri-io/qri/hooks","issue_events_url":"https://api.github.com/repos/qri-io/qri/issues/events{/number}","events_url":"https://api.github.com/repos/qri-io/qri/events","assignees_url":"https://api.github.com/repos/qri-io/qri/assignees{/user}","branches_url":"https://api.github.com/repos/qri-io/qri/branches{/branch}","tags_url":"https://api.github.com/repos/qri-io/qri/tags","blobs_url":"https://api.github.com/repos/qri-io/qri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qri-io/qri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qri-io/qri/git/refs{/sha}","trees_url":"https://api.github.com/repos/qri-io/qri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qri-io/qri/statuses/{sha}","languages_url":"https://api.github.com/repos/qri-io/qri/languages","stargazers_url":"https://api.github.com/repos/qri-io/qri/stargazers","contributors_url":"https://api.github.com/repos/qri-io/qri/contributors","subscribers_url":"https://api.github.com/repos/qri-io/qri/subscribers","subscription_url":"https://api.github.com/repos/qri-io/qri/subscription","commits_url":"https://api.github.com/repos/qri-io/qri/commits{/sha}","git_commits_url":"https://api.github.com/repos/qri-io/qri/git/commits{/sha}","comments_url":"https://api.github.com/repos/qri-io/qri/comments{/number}","issue_comment_url":"https://api.github.com/repos/qri-io/qri/issues/comments{/number}","contents_url":"https://api.github.com/repos/qri-io/qri/contents/{+path}","compare_url":"https://api.github.com/repos/qri-io/qri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qri-io/qri/merges","archive_url":"https://api.github.com/repos/qri-io/qri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qri-io/qri/downloads","issues_url":"https://api.github.com/repos/qri-io/qri/issues{/number}","pulls_url":"https://api.github.com/repos/qri-io/qri/pulls{/number}","milestones_url":"https://api.github.com/repos/qri-io/qri/milestones{/number}","notifications_url":"https://api.github.com/repos/qri-io/qri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qri-io/qri/labels{/name}","releases_url":"https://api.github.com/repos/qri-io/qri/releases{/id}","deployments_url":"https://api.github.com/repos/qri-io/qri/deployments","created_at":"2016-10-21T22:58:23Z","updated_at":"2018-06-06T15:02:12Z","pushed_at":"2018-06-06T15:02:14Z","git_url":"git://github.com/qri-io/qri.git","ssh_url":"git@github.com:qri-io/qri.git","clone_url":"https://github.com/qri-io/qri.git","svn_url":"https://github.com/qri-io/qri","homepage":"https://qri.io","size":28471,"stargazers_count":47,"watchers_count":47,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":56,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":9,"open_issues":56,"watchers":47,"default_branch":"master"}},"base":{"label":"qri-io:master","ref":"master","sha":"8de4a781ddbdb5c3166d7abc2ecba79ff4ae9999","user":{"login":"qri-io","id":19268065,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MjY4MDY1","avatar_url":"https://avatars1.githubusercontent.com/u/19268065?v=4","gravatar_id":"","url":"https://api.github.com/users/qri-io","html_url":"https://github.com/qri-io","followers_url":"https://api.github.com/users/qri-io/followers","following_url":"https://api.github.com/users/qri-io/following{/other_user}","gists_url":"https://api.github.com/users/qri-io/gists{/gist_id}","starred_url":"https://api.github.com/users/qri-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qri-io/subscriptions","organizations_url":"https://api.github.com/users/qri-io/orgs","repos_url":"https://api.github.com/users/qri-io/repos","events_url":"https://api.github.com/users/qri-io/events{/privacy}","received_events_url":"https://api.github.com/users/qri-io/received_events","type":"Organization","site_admin":false},"repo":{"id":71603023,"node_id":"MDEwOlJlcG9zaXRvcnk3MTYwMzAyMw==","name":"qri","full_name":"qri-io/qri","owner":{"login":"qri-io","id":19268065,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MjY4MDY1","avatar_url":"https://avatars1.githubusercontent.com/u/19268065?v=4","gravatar_id":"","url":"https://api.github.com/users/qri-io","html_url":"https://github.com/qri-io","followers_url":"https://api.github.com/users/qri-io/followers","following_url":"https://api.github.com/users/qri-io/following{/other_user}","gists_url":"https://api.github.com/users/qri-io/gists{/gist_id}","starred_url":"https://api.github.com/users/qri-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qri-io/subscriptions","organizations_url":"https://api.github.com/users/qri-io/orgs","repos_url":"https://api.github.com/users/qri-io/repos","events_url":"https://api.github.com/users/qri-io/events{/privacy}","received_events_url":"https://api.github.com/users/qri-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qri-io/qri","description":"distributed dataset version control system on IPFS","fork":false,"url":"https://api.github.com/repos/qri-io/qri","forks_url":"https://api.github.com/repos/qri-io/qri/forks","keys_url":"https://api.github.com/repos/qri-io/qri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qri-io/qri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qri-io/qri/teams","hooks_url":"https://api.github.com/repos/qri-io/qri/hooks","issue_events_url":"https://api.github.com/repos/qri-io/qri/issues/events{/number}","events_url":"https://api.github.com/repos/qri-io/qri/events","assignees_url":"https://api.github.com/repos/qri-io/qri/assignees{/user}","branches_url":"https://api.github.com/repos/qri-io/qri/branches{/branch}","tags_url":"https://api.github.com/repos/qri-io/qri/tags","blobs_url":"https://api.github.com/repos/qri-io/qri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qri-io/qri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qri-io/qri/git/refs{/sha}","trees_url":"https://api.github.com/repos/qri-io/qri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qri-io/qri/statuses/{sha}","languages_url":"https://api.github.com/repos/qri-io/qri/languages","stargazers_url":"https://api.github.com/repos/qri-io/qri/stargazers","contributors_url":"https://api.github.com/repos/qri-io/qri/contributors","subscribers_url":"https://api.github.com/repos/qri-io/qri/subscribers","subscription_url":"https://api.github.com/repos/qri-io/qri/subscription","commits_url":"https://api.github.com/repos/qri-io/qri/commits{/sha}","git_commits_url":"https://api.github.com/repos/qri-io/qri/git/commits{/sha}","comments_url":"https://api.github.com/repos/qri-io/qri/comments{/number}","issue_comment_url":"https://api.github.com/repos/qri-io/qri/issues/comments{/number}","contents_url":"https://api.github.com/repos/qri-io/qri/contents/{+path}","compare_url":"https://api.github.com/repos/qri-io/qri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qri-io/qri/merges","archive_url":"https://api.github.com/repos/qri-io/qri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qri-io/qri/downloads","issues_url":"https://api.github.com/repos/qri-io/qri/issues{/number}","pulls_url":"https://api.github.com/repos/qri-io/qri/pulls{/number}","milestones_url":"https://api.github.com/repos/qri-io/qri/milestones{/number}","notifications_url":"https://api.github.com/repos/qri-io/qri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qri-io/qri/labels{/name}","releases_url":"https://api.github.com/repos/qri-io/qri/releases{/id}","deployments_url":"https://api.github.com/repos/qri-io/qri/deployments","created_at":"2016-10-21T22:58:23Z","updated_at":"2018-06-06T15:02:12Z","pushed_at":"2018-06-06T15:02:14Z","git_url":"git://github.com/qri-io/qri.git","ssh_url":"git@github.com:qri-io/qri.git","clone_url":"https://github.com/qri-io/qri.git","svn_url":"https://github.com/qri-io/qri","homepage":"https://qri.io","size":28471,"stargazers_count":47,"watchers_count":47,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":56,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":9,"open_issues":56,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qri-io/qri/pulls/440"},"html":{"href":"https://github.com/qri-io/qri/pull/440"},"issue":{"href":"https://api.github.com/repos/qri-io/qri/issues/440"},"comments":{"href":"https://api.github.com/repos/qri-io/qri/issues/440/comments"},"review_comments":{"href":"https://api.github.com/repos/qri-io/qri/pulls/440/comments"},"review_comment":{"href":"https://api.github.com/repos/qri-io/qri/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qri-io/qri/pulls/440/commits"},"statuses":{"href":"https://api.github.com/repos/qri-io/qri/statuses/81a7eddfaf7df60da0480e052fc361a23a546676"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"dustmop"}}