1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 15:04:42 +00:00

feat: add interactive purge command with comprehensive tests

This commit is contained in:
Tw93
2025-12-18 14:16:56 +08:00
parent df7e5c8a04
commit 9d72eab95a
10 changed files with 628 additions and 194 deletions

View File

@@ -445,14 +445,12 @@ main() {
local key
if ! key=$(read_key); then
echo -e " ${GRAY}Cancelled${NC}"
exit 0
fi
if [[ "$key" == "ENTER" ]]; then
printf "\r\033[K"
else
echo -e " ${GRAY}Cancelled${NC}"
exit 0
fi