{"id":16854633,"url":"https://github.com/philpennock/cdbtools","last_synced_at":"2025-09-19T10:52:45.214Z","repository":{"id":57640754,"uuid":"90412514","full_name":"philpennock/cdbtools","owner":"philpennock","description":"clones of DJB cdb shell tools, using colinmarc/cdb","archived":false,"fork":false,"pushed_at":"2020-06-14T08:53:44.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T10:47:57.060Z","etag":null,"topics":["cdb","shell-scripting"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philpennock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-05T20:08:21.000Z","updated_at":"2021-04-30T02:36:56.000Z","dependencies_parsed_at":"2022-09-05T07:40:50.916Z","dependency_job_id":null,"html_url":"https://github.com/philpennock/cdbtools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/philpennock/cdbtools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philpennock%2Fcdbtools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philpennock%2Fcdbtools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philpennock%2Fcdbtools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philpennock%2Fcdbtools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philpennock","download_url":"https://codeload.github.com/philpennock/cdbtools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philpennock%2Fcdbtools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271657790,"owners_count":24797935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cdb","shell-scripting"],"created_at":"2024-10-13T13:56:11.159Z","updated_at":"2025-09-19T10:52:40.136Z","avatar_url":"https://github.com/philpennock.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"cdbtools\n========\n\nTrivial wrapper programs around \u003chttps://github.com/colinmarc/cdb\u003e to\nimplement `cdbdump`, `cdbmake` and `cdbget` as documented at\n\u003chttps://cr.yp.to/cdb.html\u003e.\n\nDiagnostic messages do not attempt to match, but exit codes from `cdbget`\nshould conform.\n\nThere's no attempt to implement `cdbtest` or `cdbstats`.\n\n## Installation\n\n`go get github.com/philpennock/cdbtools/...`\n\n## Usage\n\nUse as command-line tools as drop-in replacements for the original native C\nprograms.\n\nIf any variances in output cause problems, please open an Issue on GitHub.\nPull Requests likely accepted.\n\nFor anything more than \"getting a shell tool using the same lib as our Golang\ncode is using\", please don't use these tools.  The underlying Go library\nshould be directly used.\n\n## Ambiguity\n\nFor `cdbget`, [the documentation](https://cr.yp.to/cdb/cdbget.html) of the\nskip-count optional second parameter is:\n\u003e Given a numeric `s` argument, cdbget skips past the first `s` records with\n\u003e key `k`, and prints the data in the next record.\n\nTaken literally, that's \"look linearly for the first `s` instances of the key\n`k` and then print the entire key/value record of whatever follows after it in\nthe CDB file, no matter what the key is\".\n\nI've chosen to interpret it a little less literally but more reasonably as\n\"look for a record with key `k`, skipping past the first `s` instances, and on\nthe next such record found, print the stored value\".\n\n## Issues\n\nNo attempts made to handle byte sequences which don't make cleanly to a string\nin Golang.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilpennock%2Fcdbtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilpennock%2Fcdbtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilpennock%2Fcdbtools/lists"}