#!/usr/bin/env bash set -e repository=https://taskfile.build scripts=( activate-venv backup-env-files build-image clean-git-folder commit-git-folder commit-with-llm copy-dotenv copy-to-clipboard create-dotenv create-prompt create-symlink create-symlink-files edit-dotenv ensure-directory get-pass-from-keepass init-dotenv-dir init-project list-dotenv list-prompts load-dotenv load-dotenv-from-keepass load-dotenv-from-pass load-kubeconfig-from-keepass load-kubeconfig-from-pass log-error login-docker log-success log-warning ls-git-folder open-url-with-delay open-with-os pull-all-repos push-git-folder remove-dotenv remove-venv rename-dotenv reset-git-folder restore-dotenv-files save-dotenv-to-keepass save-dotenv-to-pass save-kubeconfig-to-keepass save-kubeconfig-to-pass save-pass-to-keepass show-dotenv show-dotenv-setup stage-git-folder status-all-repos status-git-folder template-dotenv unshallow-git-folder update-changelog-with-llm update-submodule update-with-llm ) install_dir='/usr/local/bin' if [[ "$1" == '--user' ]]; then install_dir="$HOME/.local/bin" mkdir -p "$install_dir" echo "Installing scripts in $install_dir" fi for script in "${scripts[@]}"; do echo "Installing $script ..." curl -L "$repository/bin/$script" -o "$install_dir/$script" chmod +x "$install_dir/$script" done