goodhosts/cli

Goodhosts check requires a writable hosts file

tomjn opened this issue · 2 comments

tomjn commented

The check subcommand requires a writable hosts file, but it doesn't write to the hosts file. I should be able to use the check subcommand without needing to use sudo or changing the write permissions of the hosts file if it's readable to all users

❯ goodhosts check vvv.test
Host file not writable. Try running with elevated privileges.
❯ sudo goodhosts check vvv.test
vvv.test exists in hosts file
tomjn commented

Likewise with the list debug and backup subcommands

super good suggestion, let me see if i can pull that off