Go to file
William Melody 9de0edda07 Add `disable` and `enable` commands
These commands make it possible to disable records without fully
removing them. To 'disable' a record, it simply is commented out with
the following pattern `#disabled: ` prepended to the line.
2015-03-18 16:53:03 -07:00
Readme.md Add `disable` and `enable` commands 2015-03-18 16:53:03 -07:00
hosts Add `disable` and `enable` commands 2015-03-18 16:53:03 -07:00

Readme.md

Hosts

A command line program with shortcuts for managing hosts file entries.

Usage

Usage:
  hosts add <ip> <hostname>
  hosts remove <hostname>
  hosts list [<search string>]
  hosts show ( <ip> | <hostname> | <search string> )
  hosts disable ( <ip> | <hostname> | <search term> )
  hosts enable ( <ip> | <hostname> | <search term> )
  hosts edit
  hosts file

For full usage, run:

hosts help

or

hosts help <command name>

Acknowledgements

Based on prior work by:

Original idea and interface (since changed) via:

https://github.com/macmade/host-manager