guumaster / hostctl

Your dev tool to manage /etc/hosts like a pro!

Home Page:http://guumaster.github.io/hostctl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`--only` for `disable`

smhmd opened this issue · comments

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

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

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? 

added on v1.0.8

fixed on v1.0.9. Thanks for reporting!