Go to file
William Melody 124520efc4 Add `show` command and use that for `list` searches
Displaying a record pair for a hostname or IP address is likely a common
operation, and using the `show` name makes it clear what the primary
function of the command is. Since record pairs are very simple, the
easiest way to allow both hostname and ip address arguments is to use
grep, which also provides general search-like functionality. In order to
avoid doubling this functionality, use the `show` command in the `list`
command for search.
2015-03-18 16:07:49 -07:00
Readme.md Add `show` command and use that for `list` searches 2015-03-18 16:07:49 -07:00
hosts Add `show` command and use that for `list` searches 2015-03-18 16:07:49 -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 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