txn2 / txeh

Go library and CLI utility for /etc/hosts management.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comment/Uncomment routines

areYouLazy opened this issue · comments

It would be useful for the library to have Comment() and Uncomment() routines to change the LineType of a HostFileLine without actually remove the ip-fqdn reference

'txehis built around adding and removing hosts to an IP. Since there is one IP per line it would be ambiguous as to what Comment() and Uncomment() would do, since/etc/hosts` does not support inline comments.