commensalism1997/prm — reverse-engineered prompt
Reverse engineered prompt
Build me a small Rust command line app called rmprog that works like a nicer rm for deleting files and folders. I want it to accept one or more paths, delete both files and directories, and show a progress bar while it is working through directories. If the target is just a file, it can simply delete it without a progress display. Please add a verbose mode with a v flag so it prints each file or folder as it gets removed, similar to rm v.
I also want the tool to be installable with cargo and feel solid for everyday use. If it makes sense, make the directory deletion asynchronous or at least designed to stay responsive while showing progress. Be careful with symlink behavior and clearly document it. It should not follow symlinks inside directories being deleted or symlinks to files, but if the path passed in is a symlink to a directory, warn that it will delete the linked directory contents. Look up current Rust docs online if you need to.
Want more depth? Deep Reverse