{"id":13508983,"url":"https://github.com/olegsu/cli-generator","last_synced_at":"2025-10-10T01:47:52.018Z","repository":{"id":97660944,"uuid":"210679272","full_name":"olegsu/cli-generator","owner":"olegsu","description":"Generate CLI entrypoints from spec file","archived":false,"fork":false,"pushed_at":"2023-03-07T03:23:29.000Z","size":133,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T11:02:29.924Z","etag":null,"topics":["cli","cli-generator","go","golang"],"latest_commit_sha":null,"homepage":"","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/olegsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09-24T19:14:30.000Z","updated_at":"2023-09-27T15:47:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee4c4f5d-2b69-4473-a341-495ec590c358","html_url":"https://github.com/olegsu/cli-generator","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/olegsu/cli-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegsu%2Fcli-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegsu%2Fcli-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegsu%2Fcli-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegsu%2Fcli-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olegsu","download_url":"https://codeload.github.com/olegsu/cli-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegsu%2Fcli-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002402,"owners_count":26083374,"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-10-09T02:00:07.460Z","response_time":59,"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":["cli","cli-generator","go","golang"],"created_at":"2024-08-01T02:01:01.340Z","updated_at":"2025-10-10T01:47:51.989Z","avatar_url":"https://github.com/olegsu.png","language":"Go","funding_links":[],"categories":["Go","cli"],"sub_categories":[],"readme":"\n[![Go Report Card](https://goreportcard.com/badge/github.com/olegsu/cli-generator)](https://goreportcard.com/report/github.com/olegsu/cli-generator)\n\n# CLI-GENERATOR\nGenerate CLI entrypoints from spec file\nAny feedback on the spec is welcome\n\n## Install \n`go get -u github.com/olegsu/cli-generator`\n\n## Run Example\n* `git clone git@github.com:olegsu/cli-generator.git`\n* `cd cli-generator`\n* `make example`\n\n\nThe main idea is to define a spec that can describe a CLI in YAML or JSON format.\nSpec must include:\n1. Name of the application(project)\n    * Example: `docker`, `kubectl`\n2. Global flags the CLI would support\n    * Example: `kubectl --context`\n3. Commands, including nasted sub-commands and aliases\n    * Example: `kubectl get`, `docker system prune`, `kubectl get po`, `kubectl get pods`\n4. Flags per command, including types [array of strings] [enum] definition, default values and environment variables are eqvivalent \n    * Example: `kubectl logs -f [NAME]`\n5. Positional argumens, including multiple arguments\n    * Example: `kubectl delete po [PO_1] [PO_2]`\n6. Auto generate help or provide a way to override help per command\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegsu%2Fcli-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folegsu%2Fcli-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegsu%2Fcli-generator/lists"}