bjeanes / ghost

Create, list, delete, and modify /etc/hosts entries with ease...
MIT License
732 stars 44 forks source link

www.example.com and example.com #30

Closed deplorableword closed 10 years ago

deplorableword commented 12 years ago

Hi,

Would it be trivial to add a filter so www.example.com and example.com can be added with one command?

something like:

ghost add (www)example.com

bjeanes commented 12 years ago

This should be possible, but definitely shouldn't be default. Perhaps a --www flag or something ...

bjeanes commented 10 years ago

I don't think this is worth the added complexity in the tool. It's not too difficult to script this:

for h in {www.,}example.com; do
  ghost add $h
end