can
is a macOS command-line utility that provides an alternative to the rm
command. Instead of permanently deleting files and directories, can
moves them to the user's Trash, allowing for easy recovery if needed.
usage: can [-h | -V] file ...
The package for macOS which installs a universal binary can be downloaded from the releases page.
Alternatively, run the following commands using Homebrew.
brew tap tshakalekholoane/taps
brew install can
The application can also be built from source by cloning the repository and running the following command which requires working versions of Make and Clang both of which come bundled with most macOS installations.
git clone https://github.com/tshakalekholoane/can && cd can
make