Skip to content

Commit

Permalink
docs: add bashdep to installation page
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Oct 5, 2024
1 parent 551ce54 commit a2c6ec3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,37 @@ We try to keep it stable, but there is no promise that we won't change functions
Committing (or not) this file to your project it's up to you. In the end, it is a dev dependency.
:::

## bashdep

You can manage your dependencies using [bashdep](https://github.com/Chemaclass/bashdep),
a simple dependency manager for bash.

::: code-group
```bash-vue [install-dependencies.sh]
# Ensure bashdep is installed
[ ! -f lib/bashdep ] && {
mkdir -p lib
curl -sLo lib/bashdep \
https://github.com/Chemaclass/bashdep/releases/download/0.1/bashdep
chmod +x lib/bashdep
}
# Add latest bashunit release to your dependencies
DEPENDENCIES=(
"https://github.com/TypedDevs/bashunit/releases/download/{{ pkg.version }}/bashunit"
)
# Load, configure and run bashdep
source lib/bashdep
bashdep::setup dir="lib" silent=false
bashdep::install "${DEPENDENCIES[@]}"
```
```[Output]
Downloading 'bashunit' to 'lib'...
> bashunit installed successfully in 'lib'
```
:::

## Brew

You can install **bashunit** globally in your macOS (or Linux) using brew.
Expand Down

0 comments on commit a2c6ec3

Please sign in to comment.