feat: usage library

This commit is contained in:
Janik von Rotz committed 2026-07-15 21:22:30 +02:00
1 parent fa48eda0c0
commit 2c0a5debfb
4 files changed
+182 -185

No files matched your search

+1 -16
View File
@@ -4,21 +4,6 @@ layout: layouts/base.njk
# Library
The repository of this website provides a library of reusable functions.
Clone the repository into your home folder and ensure it is updated regularly.
```bash
clone-taskfile(){
if [[ ! -d "$HOME/taskfile.build" ]]; then
echo -e '\033[38;5;214mGit\033[0m: Clone taskfile repo'
git clone https://git.taskfile.build "$HOME/taskfile.build"
else
echo -e '\033[38;5;214mGit\033[0m: Pull taskfile repo'
git -C "$HOME/taskfile.build" pull
fi
}
```
In your task file import all commands from the taskfile library.
```bash
@@ -641,4 +626,4 @@ The available roles with scripts are listed here: <https://ansible.build/scripts
```bash
rows+=("install-ansible-build-scripts|[role]|Install scripts of the specified Ansbile role.")
```
<!-- ===Docker=== -->
<!-- ===Docker=== -->