{"id":36698586,"url":"https://github.com/voomdoon/vd-cli-util","last_synced_at":"2026-01-12T11:36:07.651Z","repository":{"id":186581029,"uuid":"476077805","full_name":"voomdoon/vd-cli-util","owner":"voomdoon","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-20T17:17:02.000Z","size":122,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-22T09:33:02.461Z","etag":null,"topics":["cli","cli-framework","command-line-interface","java","maven","option-parsing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voomdoon.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-03-30T23:00:37.000Z","updated_at":"2025-12-20T17:17:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"ade5978f-d633-448f-8041-79b2e7f55718","html_url":"https://github.com/voomdoon/vd-cli-util","commit_stats":null,"previous_names":["voomdoon/vd-cli-util"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/voomdoon/vd-cli-util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voomdoon%2Fvd-cli-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voomdoon%2Fvd-cli-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voomdoon%2Fvd-cli-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voomdoon%2Fvd-cli-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voomdoon","download_url":"https://codeload.github.com/voomdoon/vd-cli-util/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voomdoon%2Fvd-cli-util/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"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":["cli","cli-framework","command-line-interface","java","maven","option-parsing"],"created_at":"2026-01-12T11:36:04.965Z","updated_at":"2026-01-12T11:36:07.639Z","avatar_url":"https://github.com/voomdoon.png","language":"Java","readme":"# vd-cli-util\n\nA lightweight Java framework for building command-line tools with structured option parsing, help generation, and testable execution.\n\n---\n\n## ✨ Features\n\n- Structured argument and option parsing  \n- Auto-generated help output  \n- Layered error handling  \n- Fully testable CLI programs (no `System.exit()` in tests)  \n- Modular design for reusability and extension  \n\n---\n\n## 📦 Maven Dependency\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ede.voomdoon.util\u003c/groupId\u003e\n    \u003cartifactId\u003evd-cli-util\u003c/artifactId\u003e\n    \u003cversion\u003e0.2.0-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n---\n\n## 🚀 Getting Started\n\n### 1. Extend the `Program` class\n\n```java\npublic class HelloWorldProgram extends Program {\n\n\tpublic static void main(String[] args) {\n\t\tProgram.run(args);\n\t}\n\n\tprivate Option nameOption;\n\n\tprotected void initOptions() {\n\t\tnameOption = addOption().longName(\"name\").hasValue(\"username\").build();\n\t}\n\n\tprotected void run() {\n\t\tString name = getOptionValue(nameOption).orElse(\"World\");\n\t\tSystem.out.println(\"Hello, \" + name + \"!\");\n\t}\n}\n```\n\n---\n\n## 🧪 Testing\n\nUse `ProgramTestingUtil` to enable test mode and prevent `System.exit()` during unit tests.\n\n```java\n@BeforeEach\nvoid setup() {\n    ProgramTestingUtil.enableTestingMode();\n}\n```\n\n---\n\n## 🛠 Packages Overview\n\n| Package | Purpose |\n|--------|---------|\n| `cli` | Main CLI lifecycle (Program, runner, execution) |\n| `cli.args` | Option and argument parsing |\n| `cli.args.exception` | Argument validation exceptions |\n| `cli.testing` | Test support utilities |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoomdoon%2Fvd-cli-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoomdoon%2Fvd-cli-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoomdoon%2Fvd-cli-util/lists"}