{"id":13603899,"url":"https://github.com/erpeng/godis-cli","last_synced_at":"2026-03-10T18:33:02.708Z","repository":{"id":61624751,"uuid":"168335812","full_name":"erpeng/godis-cli","owner":"erpeng","description":"redis-cli go version","archived":false,"fork":false,"pushed_at":"2019-01-31T14:39:57.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-17T19:30:34.923Z","etag":null,"topics":["go","redis","redis-cli"],"latest_commit_sha":null,"homepage":"https://segmentfault.com/a/1190000018082587","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erpeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-30T11:59:42.000Z","updated_at":"2025-04-13T10:54:15.000Z","dependencies_parsed_at":"2022-10-18T18:00:33.722Z","dependency_job_id":null,"html_url":"https://github.com/erpeng/godis-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erpeng/godis-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erpeng%2Fgodis-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erpeng%2Fgodis-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erpeng%2Fgodis-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erpeng%2Fgodis-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erpeng","download_url":"https://codeload.github.com/erpeng/godis-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erpeng%2Fgodis-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30347434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","redis","redis-cli"],"created_at":"2024-08-01T19:00:36.047Z","updated_at":"2026-03-10T18:33:02.679Z","avatar_url":"https://github.com/erpeng.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"[中文](/README_CN.md)\n# godis-cli\n  go version redis-cli\n\n## install\n\tgo get github.com/erpeng/godis-cli\n\n## usage\n\tgo run godis-cli.go\n\n## sub pattern\n  when execute  subscribe command ,godis-cli enters subscribe pattern(non-blocking)\n  \n\t[sub]\u003e subscribe foo\n  \n  in subscribe pattern,only subscribe/psubscribe/unsubscribe/punsubscribe/ping command can execute.when someone pu   blish some message on channel foo,godis-cli can receive message and print it.we can exit sub pattern use `exit`,then we enter normal pattern.Also,we use `exit` exit normal pattern\n\n## example\n\t\u003ebogon:godis-cli didi$ go run godis-cli.go\n\t\u003e set k1 v1 //normal pattern\n\tOK\n\t\u003e get k1\n\tv1\n\t\u003e subscribe foo //enter sub pattern\n\tsubscribe foo 1\n\t[sub]\u003esubscribe foo1\n\tsubscribe foo1 2\n\t[sub]\u003e unsubscribe foo1\n\tunsubscribe foo1 1\n\t[sub]\u003e ping\n\tpong\n\t[sub]\u003e get k1 //we can't execute get in sub pattern\n\tRedis Error: only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context\n\t[sub]\u003e exit //exit sub pattern\n\texit sub pattern....\n\t\u003eget k1//now we can execute get in normal pattern\n\tv1\n\t\u003e exit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferpeng%2Fgodis-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferpeng%2Fgodis-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferpeng%2Fgodis-cli/lists"}