Files
Memoh/scripts/db-drop.sh
T
晨苒 d2449cd345 reactor(cli): move memoh cli to tui
1. Split the oversized `cmd/agent` entrypoint into a multi-file package and update dev/build scripts to use the package path instead of compiling `main.go` directly.
2. Add a new `memoh` terminal UI for local bot chat, with Bubble Tea
2026-04-14 01:21:03 +08:00

15 lines
316 B
Bash
Executable File

#!/bin/bash
set -e
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
echo "WARNING: This will roll back all database migrations!"
read -p "Type 'yes' to confirm: " confirmation
if [ "$confirmation" != "yes" ]; then
echo "Cancelled"
exit 0
fi
go run "${PROJECT_ROOT}/cmd/agent" migrate down