{"id":23213730,"url":"https://github.com/stefafafan/closure2wbs","last_synced_at":"2026-02-13T22:09:27.210Z","repository":{"id":261599414,"uuid":"884131029","full_name":"stefafafan/closure2wbs","owner":"stefafafan","description":"A cli tool to convert closure tables to a WBS representation (PlantUML or Mermaid).","archived":false,"fork":false,"pushed_at":"2025-03-31T06:04:08.000Z","size":84,"stargazers_count":2,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T19:05:50.108Z","etag":null,"topics":["cli","closure-table","mermaid","plantuml","wbs"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/stefafafan.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":"2024-11-06T07:44:23.000Z","updated_at":"2025-01-26T12:27:55.000Z","dependencies_parsed_at":"2024-11-07T12:40:37.102Z","dependency_job_id":"995f7bbd-b171-4d35-b34d-bca000601f18","html_url":"https://github.com/stefafafan/closure2wbs","commit_stats":null,"previous_names":["stefafafan/closure2wbs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stefafafan/closure2wbs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefafafan%2Fclosure2wbs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefafafan%2Fclosure2wbs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefafafan%2Fclosure2wbs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefafafan%2Fclosure2wbs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefafafan","download_url":"https://codeload.github.com/stefafafan/closure2wbs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefafafan%2Fclosure2wbs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266586905,"owners_count":23952205,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["cli","closure-table","mermaid","plantuml","wbs"],"created_at":"2024-12-18T19:19:01.876Z","updated_at":"2026-02-13T22:09:22.174Z","avatar_url":"https://github.com/stefafafan.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# closure2wbs\n\nclosure2wbs is a cli tool for converting a list of closure tables to a WBS structure for PlantUML or Mermaid.\nCurrently, the tool assumes a JSON file input, and outputs to file.\n\n\u003e [!WARNING]\n\u003e This cli tool is not thoroughly tested! \n\n## Installation\nAssuming you have `cargo` setup:\n\n```sh\ncargo install --git https://github.com/stefafafan/closure2wbs\n```\n\n## Usage\nTry `--help`\n\n```sh\n$ closurewbs --help\n\nA cli tool to convert closure tables to a WBS representation.\n\nUsage: closure2wbs [OPTIONS]\n\nOptions:\n  -f, --format \u003cFORMAT\u003e  [default: plantuml]\n  -i, --input \u003cINPUT\u003e    [default: input.json]\n  -o, --output \u003cOUTPUT\u003e  [default: output.txt]\n  -h, --help             Print help\n  -V, --version          Print version\n  ```\n\n### Example\n\nPrepare a json file like following:\n\n```json\n[\n\t{\n\t\t\"ancestor\": \"A\",\n\t\t\"descendant\": \"A\",\n\t\t\"depth\": 0\n\t},\n\t{\n\t\t\"ancestor\": \"A\",\n\t\t\"descendant\": \"B\",\n\t\t\"depth\": 1\n\t},\n\t{\n\t\t\"ancestor\": \"A\",\n\t\t\"descendant\": \"C\",\n\t\t\"depth\": 1\n\t},\n\t{\n\t\t\"ancestor\": \"A\",\n\t\t\"descendant\": \"D\",\n\t\t\"depth\": 2\n\t},\n\t{\n\t\t\"ancestor\": \"A\",\n\t\t\"descendant\": \"E\",\n\t\t\"depth\": 2\n\t},\n\t{\n\t\t\"ancestor\": \"B\",\n\t\t\"descendant\": \"B\",\n\t\t\"depth\": 0\n\t},\n\t{\n\t\t\"ancestor\": \"B\",\n\t\t\"descendant\": \"D\",\n\t\t\"depth\": 1\n\t},\n\t{\n\t\t\"ancestor\": \"B\",\n\t\t\"descendant\": \"E\",\n\t\t\"depth\": 1\n\t},\n\t{\n\t\t\"ancestor\": \"C\",\n\t\t\"descendant\": \"C\",\n\t\t\"depth\": 0\n\t}\n]\n```\n\nRun the cli tool.\n\n```sh\nclosure2wbs --input input.json --output out.puml --format plantuml\n```\n\n`out.puml` contents will be like as the following.\n\n```pml\n@startwbs\n* A\n** B\n*** D\n*** E\n** C\n@endwbs\n```\n\nMermaid output is supported as well:\n\n```sh\nclosure2wbs --input input.json --output out.mmd --format mermaid\n```\n\n```mermaid\nflowchart TD\nA --\u003e B\nB --\u003e D\nB --\u003e E\nA --\u003e C\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefafafan%2Fclosure2wbs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefafafan%2Fclosure2wbs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefafafan%2Fclosure2wbs/lists"}