guumaster / hostctl

Your dev tool to manage /etc/hosts like a pro!
http://guumaster.github.io/hostctl
MIT License
1.04k stars 45 forks source link

`--only` for `disable` #55

Closed smhmd closed 4 years ago

smhmd commented 4 years ago

for my use case, I find myself wanting to enable all profiles except one. Could we have a hostctl disable awesome --only?

guumaster commented 4 years ago

I'll add it, although I'm not too happy with the semantics of --only, but I can't come up with better options.

smhmd commented 4 years ago

What is it that you don't like about it? Would you go for --exact or --one?

What about hostctl enable --all [profiles] to enable all profiles except [profiles]? Doing away with --only in the process?

$ hostctl enable awesome --all # enable all but awesome? 
guumaster commented 4 years ago

added on v1.0.8

smhmd commented 4 years ago

@guumaster out-of-date https://aur.archlinux.org/packages/hostctl-bin/

guumaster commented 4 years ago

fixed on v1.0.9. Thanks for reporting!