Skip to content

Reset

FieldValue
TypeSkill Resource
Source~/.copilot/skills/go-task/templates/scripts/reset.sh
DescriptionNot specified

Source Content

#!/usr/bin/env bash
#
# reset.sh — the DESTRUCTIVE half of `task reset`: remove build artifacts and the
# Task cache so the next bootstrap starts from nothing. Idempotent: safe to run
# repeatedly. The `task reset` task runs this and then `bootstrap.sh`, so this
# script intentionally does NOT reinstall or restore .env — keep each script
# single-purpose.
#
# Wired to `task reset` (which gates it behind a prompt).
set -euo pipefail
log() { printf '\033[36m▸ %s\033[0m\n' "$*"; }
log "Removing build artifacts and the Task cache"
rm -rf bin dist .task
log "Clean baseline reached — run bootstrap to reinstall (task reset does this next)"