{"id":16866989,"url":"https://github.com/webern/cmdgen","last_synced_at":"2025-03-18T17:49:55.176Z","repository":{"id":88144026,"uuid":"204306858","full_name":"webern/cmdgen","owner":"webern","description":"Generate Command Line Argument Parsers in Multiple Languages","archived":false,"fork":false,"pushed_at":"2019-09-20T02:47:40.000Z","size":395,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T21:25:11.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/webern.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":"2019-08-25T14:38:48.000Z","updated_at":"2019-09-08T00:33:48.000Z","dependencies_parsed_at":"2023-07-23T19:45:40.175Z","dependency_job_id":null,"html_url":"https://github.com/webern/cmdgen","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/webern%2Fcmdgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webern%2Fcmdgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webern%2Fcmdgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webern%2Fcmdgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webern","download_url":"https://codeload.github.com/webern/cmdgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244274012,"owners_count":20427035,"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":[],"created_at":"2024-10-13T14:52:19.803Z","updated_at":"2025-03-18T17:49:55.156Z","avatar_url":"https://github.com/webern.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"cmdgen\n======\n\n[![CircleCI](https://circleci.com/gh/webern/cmdgen/tree/master.svg?style=svg)](https://circleci.com/gh/webern/cmdgen/tree/master)\n[![CircleCI](https://circleci.com/gh/webern/cmdgen/tree/develop.svg?style=svg)](https://circleci.com/gh/webern/cmdgen/tree/develop)\n\ncmdgen is a command line program which reads a definition of commands and arguments, provided by an xml file, and generates the necessary code to stub out CLI program that takes those commands and arguments.\n\nCommands form a tree-like structure, and should be familiar to most from git. For example this:\n\n```\ngit remote add origin https://github.com/webern/cmdgen.git\n^   ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nprogram   commands                argument(s)\n```\n\nThis can be specified and generated with xml that looks like this:\n\n```xml\n\u003ccmdgen\u003e\n  \u003cprogram\u003egit\u003c/program\u003e\n  \u003ccommands\u003e\n    \u003ccommand\u003e\n      \u003cname\u003eremote\u003c/name\u003e\n      \u003ccommands\u003e\n        \u003cname\u003eorigin\u003c/name\u003e\n        \u003carguments\u003e\n          \u003cunnamed\u003e\n            \u003cmin-occurs\u003e1\u003c/min-occurs\u003e\n            \u003cmax-occurs\u003e1\u003c/max-occurs\u003e\n            \u003ctype\u003estring\u003c/type\u003e\n          \u003c/unnamed\u003e\n        \u003c/arguments\u003e\n      \u003c/commands\u003e\n    \u003c/command\u003e\n  \u003c/commands\u003e\n\u003c/cmdgen\u003e\n```\n\nYou can then stub out the program with `cmdgen -i config.xml`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebern%2Fcmdgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebern%2Fcmdgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebern%2Fcmdgen/lists"}