{"id":22206270,"url":"https://github.com/chemaclass/bashdep","last_synced_at":"2025-07-27T07:32:01.938Z","repository":{"id":265796835,"uuid":"868189246","full_name":"Chemaclass/bashdep","owner":"Chemaclass","description":"A simple dependency manager for bash","archived":false,"fork":false,"pushed_at":"2024-10-05T22:13:46.000Z","size":336,"stargazers_count":18,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T00:50:28.603Z","etag":null,"topics":["bash","bash-script","bashunit","dependency-manager"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Chemaclass.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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},"funding":{"custom":["https://chemaclass.com/sponsor"]}},"created_at":"2024-10-05T17:50:29.000Z","updated_at":"2024-11-06T05:18:33.000Z","dependencies_parsed_at":"2024-12-01T00:50:34.496Z","dependency_job_id":"ec5cf10f-ad62-4884-afd4-b7645a293131","html_url":"https://github.com/Chemaclass/bashdep","commit_stats":null,"previous_names":["chemaclass/bashdep"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chemaclass%2Fbashdep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chemaclass%2Fbashdep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chemaclass%2Fbashdep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chemaclass%2Fbashdep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chemaclass","download_url":"https://codeload.github.com/Chemaclass/bashdep/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227777694,"owners_count":17818455,"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","bash-script","bashunit","dependency-manager"],"created_at":"2024-12-02T18:10:31.189Z","updated_at":"2025-07-27T07:32:01.925Z","avatar_url":"https://github.com/Chemaclass.png","language":"Shell","funding_links":["https://chemaclass.com/sponsor"],"categories":[],"sub_categories":[],"readme":"# bashdep\n\nA minimalistic and straightforward **bash dependency manager**.\n\n---\n\n### Usage\n\n#### bashdep::install\n\nYou can distinguish between regular dependencies and dev-dependencies when defining the URL.\nDev-dependencies ends with `@dev`\n\n```bash\nDEPENDENCIES=(\n  \"https://github.com/[...]/download/0.17.0/bashunit\"\n  \"https://github.com/[...]/download/0.1/dumper.sh@dev\"\n)\n\nbashdep::install \"${DEPENDENCIES[@]}\"\n```\n\n#### bashdep::setup\n\nAlternately, you can configure the default values of bashdep using the setup function.\n\n- `dir=string`: set the default destination directory. Default: `lib`\n- `dev-dir=string`: set the development destination directory. Default: `lib/dev`\n- `silent=bool`: if true, no progress text will be shown during installation. Default: `false`\n\n```bash\nbashdep::setup dir=\"lib\" dev-dir=\"src/dev\" silent=false\nbashdep::install \"${DEPENDENCIES[@]}\"\n```\n\n### Demo\n\nUsage example from\n[Chemaclass/bash-skeleton](https://github.com/Chemaclass/bash-skeleton/blob/main/install-dependencies.sh)\n\n```bash\n#!/bin/bash\n[ ! -f lib/bashdep ] \u0026\u0026 {\n  mkdir -p lib\n  curl -sLo lib/bashdep https://github.com/Chemaclass/bashdep/releases/download/0.1/bashdep\n  chmod +x lib/bashdep\n}\n\nDEPENDENCIES=(\n  \"https://github.com/TypedDevs/bashunit/releases/download/0.17.0/bashunit\"\n  \"https://github.com/Chemaclass/create-pr/releases/download/0.6/create-pr\"\n  \"https://github.com/Chemaclass/bash-dumper/releases/download/0.1/dumper.sh@dev\"\n)\n\nsource lib/bashdep\nbashdep::setup dir=\"lib\" dev-dir=\"src/dev\" silent=false\nbashdep::install \"${DEPENDENCIES[@]}\"\n```\n\n#### Output\n\n```bash\nDownloading 'bashunit' to 'lib'...\n\u003e bashunit installed successfully in 'lib'\nDownloading 'create-pr' to 'lib'...\n\u003e create-pr installed successfully in 'lib'\nDownloading 'dumper.sh' to 'src/dev'...\n\u003e dumper.sh installed successfully in 'src/dev'\n```\n\n### Development\n\nInstall required dependencies to run the tests:\n\n```bash\nmake deps\n```\n\nThen run the test suite and linters:\n\n```bash\nmake test\nmake sa\nmake lint\n```\n\nTo enable automatic checks before each commit install the pre-commit hook:\n\n```bash\nmake pre_commit/install\n```\n\nFor more details see [CONTRIBUTING](.github/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchemaclass%2Fbashdep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchemaclass%2Fbashdep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchemaclass%2Fbashdep/lists"}