kcm/bin/scripts/clean.sh
Menno van Leeuwen 1dad8ca69b
feat: Implement clipboard manager commands and history management
- Added command to clear clipboard history (`cmd_clear.go`).
- Implemented command to copy a history item back to the clipboard (`cmd_copy.go`).
- Created command to list clipboard history (`cmd_list.go`).
- Developed command to watch clipboard changes and store history (`cmd_watch.go`).
- Introduced configuration loading for logging and clipboard settings (`config.go`).
- Established main application logic with command registration and configuration handling (`main.go`).
- Implemented history management with loading, saving, and clearing functionality (`history.go`).
- Defined history item structure to store clipboard data (`history_item.go`).
- Added utility functions for hashing data and summarizing clipboard content (`hash.go`, `summary.go`).
- Updated dependencies in `go.sum`.
2025-05-20 17:52:58 +02:00

20 lines
450 B
Bash
Executable File

#!/usr/bin/env bash
source bin/helpers/func.sh
# $1 should be binary path
BINARY_PATH=$1
# $2 should be completion script path
COMPLETION_SCRIPT=$2
# Confirm these are paths
if [ -z "$BINARY_PATH" ] || [ -z "$COMPLETION_SCRIPT" ]; then
printfe "%s\n" "red" "Usage: $0 <binary_path> <completion_script_path>"
exit 1
fi
printfe "%s\n" "cyan" "Cleaning up old binaries and completion scripts..."
rm -f $BINARY_PATH
rm -f $COMPLETION_SCRIPT