tomb: remove |rm prompt

if you're trying to tombstone at the head of the desk, you probably
don't know what you're doing. so we abort.

we keep the option to `|rm` any matching hashes in other desks since
this is something the tombstoner might not know exists in advance and is
actively blocking them from completing the desired tombstone operation.
This commit is contained in:
ryjm 2023-02-27 12:25:29 -05:00
parent 47ab7efb27
commit f218327986

View File

@ -57,19 +57,6 @@
:: print out the paths blocking the tomb :: print out the paths blocking the tomb
%+ prints (snoc prat leaf+"tomb blocked by:") %+ prints (snoc prat leaf+"tomb blocked by:")
:: prompt for deletion using |rm :: prompt for deletion using |rm
%+ prompt
(prom %m "|rm {<pax>} from head ({<let.do>}) of {<dusk>} instead? (y/N)")
|= rm-hed=tape
?: |(=("y" rm-hed) =("Y" rm-hed) =("yes" rm-hed))
=/ paz=path (en-beam hed)
?: dry
(print (crip "dry run: would remove {<paths>} from {<dusk>}") no-product)
%+ produce %helm-pans
~[(rm paz)]
:: abort if no other desks using target
?~ used
(print (crip "aborting") no-product)
::
%+ prompt (prom %r "|rm from head of each desk instead (DANGER)? (y/N)") %+ prompt (prom %r "|rm from head of each desk instead (DANGER)? (y/N)")
|= rm-all=tape |= rm-all=tape
?. |(=("y" rm-all) =("Y" rm-all) =("yes" rm-all)) ?. |(=("y" rm-all) =("Y" rm-all) =("yes" rm-all))