{"id":20620624,"url":"https://github.com/wwerner/bashplate","last_synced_at":"2025-08-01T00:04:20.227Z","repository":{"id":40314224,"uuid":"153960389","full_name":"wwerner/bashplate","owner":"wwerner","description":"Bashplate generates bash script boilerplate code for option parsing and validation","archived":false,"fork":false,"pushed_at":"2024-09-10T10:11:35.000Z","size":3717,"stargazers_count":17,"open_issues_count":6,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-20T21:24:03.841Z","etag":null,"topics":["bash","generator","getopt","option-parsing"],"latest_commit_sha":null,"homepage":"https://bashplate.wolfgang-werner.net","language":"TypeScript","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/wwerner.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}},"created_at":"2018-10-21T00:31:41.000Z","updated_at":"2025-05-14T04:44:09.000Z","dependencies_parsed_at":"2025-04-15T12:14:34.473Z","dependency_job_id":"13f87ad5-83b8-41f1-95b8-5725162795fb","html_url":"https://github.com/wwerner/bashplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wwerner/bashplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwerner%2Fbashplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwerner%2Fbashplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwerner%2Fbashplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwerner%2Fbashplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wwerner","download_url":"https://codeload.github.com/wwerner/bashplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwerner%2Fbashplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261686439,"owners_count":23194290,"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":["bash","generator","getopt","option-parsing"],"created_at":"2024-11-16T12:15:00.382Z","updated_at":"2025-06-24T13:37:14.913Z","avatar_url":"https://github.com/wwerner.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![setup automated](https://img.shields.io/badge/Gitpod-ready_to_code-blue?logo=gitpod)](https://gitpod.io/from-referrer/)\n\n# Bashplate\n\nBashplate generates bash boilerplate code for option parsing and validation.\n\nCurrently deployed here: https://bashplate.wolfgang-werner.net\n\nWhy? Each time (long enough to forget all the details after writing the last one) I need to write a shell script:\n* 🧐 \"I want this to be reuseable, so I'll use proper options \u0026 help messages\"\n* 🤔 \"Hmmm, was it getopt or getopts? Which was the GNU and which the POSIX one? Shouldn't I use argbash?\" \n* 😤 \"So how does the option spec need to look like? Why is that colon at the start again? Does the following option take an argument?\" and so on.\n* 😩 \"How to I test if an argument was set? Reliably and portably?\"\n\nNow, I either:\n* Copy an old script and fiddle around in it - bad, since there is stuff to remove, I could break things and I still need to think\n* Read up on option parsing - bad, as it takes time and I have to decide between getopt, getopts and argbash\n* Just skip parameterizing the script and hard code everything - bad, obviously\n\nSo basically, I try to hack myself into writing better scripts.\n\nIf you can relate, give it a spin.\n\n## Requirements\n\n* POSIX compliance flavor, as I want to run in stripped down Docker containers\n* GNU flavor with long opts support, as I like short opts for one offs when typing, long opts in scripts for readability.\n* Minimum / No dependencies\n* Easy to put on the web, so I cannot lose it \u0026 don't have to install anything.\n\n## Development\n\nContributions welcome.\n\n* `yarn install` - Project setup\n* `yarn dev` - Compiles and hot-reloads for development\n* `yarn build` - Compiles and minifies for production\n* `yarn lint` - Lints code style issues (\u0026 fixes them where possible)\n\nPushing to master deploys to https://bashplate.wolfgang-werner.net and https://bashplate.now.sh (until vercel decides to turn off now.sh).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwerner%2Fbashplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwwerner%2Fbashplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwerner%2Fbashplate/lists"}