Files
portfolio-hub/bootstrap/install.sh
T
genichin 4919b1d130 Squashed '.vendor/myagent-kit/' content from commit 3e45f3f
git-subtree-dir: .vendor/myagent-kit
git-subtree-split: 3e45f3fb102e71d5127366f2fc675eaadc3927da
2026-04-10 14:28:54 +00:00

20 lines
815 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
KIT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
PROJECT_ROOT="${1:-$(pwd)}"
mkdir -p "$PROJECT_ROOT/.github/prompts" \
"$PROJECT_ROOT/.github/instructions" \
"$PROJECT_ROOT/.github/ISSUE_TEMPLATE"
cp "$KIT_ROOT/base/.github/prompts/"*.prompt.md "$PROJECT_ROOT/.github/prompts/"
cp "$KIT_ROOT/base/.github/instructions/"*.instructions.md "$PROJECT_ROOT/.github/instructions/"
cp "$KIT_ROOT/base/.github/ISSUE_TEMPLATE/"*.md "$PROJECT_ROOT/.github/ISSUE_TEMPLATE/"
if [[ -f "$KIT_ROOT/base/.github/pull_request_template.md" ]]; then
cp "$KIT_ROOT/base/.github/pull_request_template.md" "$PROJECT_ROOT/.github/pull_request_template.md"
fi
echo "Installed myagent-kit assets into $PROJECT_ROOT/.github"