{"id":21261875,"url":"https://github.com/nchern/cap","last_synced_at":"2025-03-15T07:41:04.807Z","repository":{"id":149981387,"uuid":"265861742","full_name":"nchern/cap","owner":"nchern","description":"A command line tool to parse and print out markdown-formatted files","archived":false,"fork":false,"pushed_at":"2022-01-05T01:13:09.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T22:36:30.318Z","etag":null,"topics":["command-line","command-line-tool","unix"],"latest_commit_sha":null,"homepage":null,"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/nchern.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-21T13:55:00.000Z","updated_at":"2022-01-05T01:13:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"b671e4d4-b1c4-4cdb-9103-182d8588a6b7","html_url":"https://github.com/nchern/cap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchern%2Fcap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchern%2Fcap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchern%2Fcap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchern%2Fcap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nchern","download_url":"https://codeload.github.com/nchern/cap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243701312,"owners_count":20333616,"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","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":["command-line","command-line-tool","unix"],"created_at":"2024-11-21T04:56:09.749Z","updated_at":"2025-03-15T07:41:04.783Z","avatar_url":"https://github.com/nchern.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/nchern/cap)](https://goreportcard.com/report/github.com/nchern/cap)\n[![Coverage](https://gocover.io/_badge/github.com/nchern/cap)](https://gocover.io/github.com/nchern/cap)\n\n# cap\nA command line tool to parse markdown-like formatted texts into chapters and print selected chapters out\n\n\u003e cap. - an abbreviation of capitulum (\"chapter\").\n\n## Install\n```bash\nmake install # You need go compiler set up.\n```\n\n## Usage\n```bash\n$ cap -h\nUsage: cap [FLAGS] [pattern]\n  -s\tIf set, all sub-chapters of the matched chapters are also printed out. Subchapter is a chapter with headings of higher levels that the initial one\n\nThis utility scans lines of a given text. If a line is a heading(e.g. '* Header 1'),\nit checks whether it matches against given regex \u003cpattern\u003e.\nIf it matches, the heading along with its contents(i.e. chapter) is printed out.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnchern%2Fcap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnchern%2Fcap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnchern%2Fcap/lists"}