mirror of
https://github.com/goodhosts/cli.git
synced 2026-04-27 07:06:00 +03:00
[GH-ISSUE #21] More clean options #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tomjn on GitHub (Oct 18, 2020).
Original GitHub issue: https://github.com/goodhosts/cli/issues/21
The
cleansubcommand does the following:However, some of these may be undesirable. For example sorting and merging could interfere with other software that relies on modifying the hosts file.
For example:
Here several items the OS added to the hosts file have been merged with entries added by the WP Engine Local software. If that software was lazy it might remove that entire line when removing that site.
Similarly a group of docker domains got smushed together on the same line with several other domains because they all used
127.0.0.1, and the comments surrounding them have vanished.So, it would be good to have separate options/flags for:
@luthermonson commented on GitHub (Oct 18, 2020):
how about a clean -A or --all for doing all the stuff and then ill add --with options for each flavor of cleaning?
@luthermonson commented on GitHub (Oct 18, 2020):
@tomjn can you give me example hosts file so i can check the comment mashing and doman smushing?
@tomjn commented on GitHub (Oct 18, 2020):
This sounds good :)
I did but it got cleaned up, I imagine something like this would face the problem: