//! `doido destroy <generator> <name>` — undo a generator by removing the files
//! it created. Shared/injected files (`mod.rs`/`routes.rs`/`lib.rs`) are left in
//! place because they hold other registrations.
use crateGeneratedFile;
use Path;
/// Whether `path` is a shared/injected file that destroy must not delete.
/// The paths destroy would remove for `files`: the standalone generated files.
/// Run the named generator to learn its files, then delete the destroyable ones
/// under the current directory. Returns the paths actually removed.