{"id":18293766,"url":"https://github.com/withfig/cli-help-parser","last_synced_at":"2025-08-10T08:12:23.787Z","repository":{"id":103798931,"uuid":"323984507","full_name":"withfig/cli-help-parser","owner":"withfig","description":"Generate completion specs based on --help text","archived":false,"fork":false,"pushed_at":"2021-02-19T02:15:35.000Z","size":22,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T11:34:27.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/withfig.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":"2020-12-23T19:23:20.000Z","updated_at":"2024-08-24T23:48:56.000Z","dependencies_parsed_at":"2023-05-12T02:31:09.137Z","dependency_job_id":null,"html_url":"https://github.com/withfig/cli-help-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/withfig/cli-help-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Fcli-help-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Fcli-help-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Fcli-help-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Fcli-help-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/withfig","download_url":"https://codeload.github.com/withfig/cli-help-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Fcli-help-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269693593,"owners_count":24460248,"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-08-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2024-11-05T14:26:04.321Z","updated_at":"2025-08-10T08:12:23.760Z","avatar_url":"https://github.com/withfig.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-help-parser\n\n\n### Legacy script usage:\n\nThe scripts need to be tweaked and modified in order to work with new CLI tools.\n\nSteps:\n\n1. Update `root` or `rootName` variable in each script to the name of the CLI tool (eg. docker)\n\n2. Create a folder with the same name as the CLI tool / `root`\n\n\n3. `node scraper.js`\n\t\n\tAttempts to scrape help text for all subcommands - there can be false positive. Will create a new file for each subcommand in the `root` folder.\n\n\tFormat is `command.subcommand1.subcommand2.txt`\n\n\tYou can set the recursion depth by updating the `maxDepth` variable.\n\n\n4. `node parser.js`\n\t\n\tLooks in the `root` folder and builds a file named `root`-master.json. This is where the regexes are defined; they may need to be tweaked based on --help format.\n\n5. `node converter.js` \n\t\n\tTakes the `root`-master.json and converts it into the final `root`.js file.\n\n\n----\n\nI am planning on bundling these into a single tool and parameterizing the settings. This is temporary! ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithfig%2Fcli-help-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwithfig%2Fcli-help-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithfig%2Fcli-help-parser/lists"}