Re:In the Beginning was the Command Line (1999)
by Jtsummers on Thursday November 05, 2020 @11:11AM
(#24999412)
Many CLI tools have a dry run option for expensive (time/resource wise) or risky commands (one way, irreversible or reversible only with a lot of effort). It would be interesting to see this become the default for some of them, with a separate flag `--now-i-mean-it` to actually execute.
[ Parent
| on HN ]
Re:In the Beginning was the Command Line (1999)
by sumtechguy on Thursday November 05, 2020 @01:18PM
(#25000540)
I wish more tools had the option of dry run. Been using it with ansible quite bit in the past few weeks. Look ma I can mess up 50 computers all at once!
Re:In the Beginning was the Command Line (1999)
by vram22 on Friday November 06, 2020 @02:56PM
(#25010585)
Yes, like
make -n
https://man7.org/linux/man-pages/man1/make.1.html
In fact, the above man page shows that one long form of the -n option is named --dry-run :)
Re:In the Beginning was the Command Line (1999)
by prepend on Thursday November 05, 2020 @12:15PM
(#24999935)
I’ve spent so much time with rsync’s -n (I think it supports —-dry-run as well).
Re:In the Beginning was the Command Line (1999)
by stainforth on Thursday November 05, 2020 @03:55PM
(#25001858)
Shouldn't dry run be the default and the "prod" run be requiring adding the switch