Soft-delete and trash management CLI for the Amadla ecosystem.
Files and directories are moved to a restorable trash directory (~/.local/amadla/trash/) with metadata tracked in a shared SQLite database (~/.local/amadla/db.sqlite).
make buildRequires CGO (for SQLite via mattn/go-sqlite3).
garbage rm /path/to/file.txt
garbage rm /path/to/directory /path/to/another-file.txtgarbage list
garbage list --type=file
garbage list --type=directorygarbage info <id>garbage restore <id> # Restore to original location
garbage restore <id> --to=/new/path
garbage restore myfile.txt # Restore by namegarbage empty --force # Delete all
garbage empty --older-than=30d --force # Delete items older than 30 daysgarbage settings| Flag | Description |
|---|---|
--json |
Output in JSON format |
--quiet |
Suppress non-error output |
--verbose |
Show detailed output |
--dry-run |
Show what would be done without making changes |
make test # Run tests
make lint # Run linter
make build # Build for current platform
make build-all # Build for all platforms