{"id":21512934,"url":"https://github.com/hpehl/bash-template","last_synced_at":"2026-05-11T16:37:10.822Z","repository":{"id":147447612,"uuid":"536529640","full_name":"hpehl/bash-template","owner":"hpehl","description":"Bash template heavily inspired by https://betterdev.blog/minimal-safe-bash-script-template/","archived":false,"fork":false,"pushed_at":"2022-09-14T10:41:00.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T15:55:48.751Z","etag":null,"topics":["bash","template"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/hpehl.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":"2022-09-14T10:38:09.000Z","updated_at":"2022-09-14T10:41:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"184486cf-57e0-4bda-9ee5-88adc67d0c45","html_url":"https://github.com/hpehl/bash-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/hpehl/bash-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpehl%2Fbash-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpehl%2Fbash-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpehl%2Fbash-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpehl%2Fbash-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hpehl","download_url":"https://codeload.github.com/hpehl/bash-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpehl%2Fbash-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32903689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":["bash","template"],"created_at":"2024-11-23T22:48:18.254Z","updated_at":"2026-05-11T16:37:10.815Z","avatar_url":"https://github.com/hpehl.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash Template\n\nBash template heavily inspired by https://betterdev.blog/minimal-safe-bash-script-template/\n\n## Basic Features\n\n- fail-safe\n- basic parsing of (required) flags, options and arguments\n- version (-v, --version)\n- usage (-h, --help)\n- colorful / plain text output (--no-color)\n- `cleanup()`, `msg()` and `die()` function\n\n## Get Started\n\nJust copy \u0026 paste `script.sh` and adjust to your needs.\n\n## Resources\n\nThese resources might also help in writing better shell / bash scripts:\n\n- [Command Line Interface Guidelines](https://clig.dev/)\n- [The Art of Command Line](https://github.com/jlevy/the-art-of-command-line)\n- [Shell Scripts Matter](https://blog.thibaut-rousseau.com/2017/12/03/shell-scripts-matter.html)\n- [12 Factor CLI Apps](https://medium.com/@jdxcode/12-factor-cli-apps-dd3c227a0e46)\n- [ShellCheck](https://www.shellcheck.net/)\n- [explainshell.com](https://explainshell.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpehl%2Fbash-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhpehl%2Fbash-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpehl%2Fbash-template/lists"}