William Melody
52529dd029
Correct typo in `help` usage + add info about `--force` in Readme
2015-03-19 17:14:04 -07:00
William Melody
e6ee93da47
Add command information to Readme
2015-03-19 14:43:32 -07:00
William Melody
531594f74f
Add 'Why' section to Readme
2015-03-18 18:44:06 -07:00
William Melody
cf56224732
Add installation information to Readme.
2015-03-18 18:35:45 -07:00
William Melody
37e9618359
Clarify help command usage in Readme.
2015-03-18 18:23:59 -07:00
William Melody
5844aa19a3
Use 'search string' consistently instead of mixing with 'search term'
2015-03-18 18:22:37 -07:00
William Melody
4d8c9a3385
Prompt user in `remove`
...
In order to avoid mistakes, prompt the user when removing records. Allow
skipping of the prompt using the --force option.
2015-03-18 18:20:24 -07:00
William Melody
7d8a94d4ca
Add 'enabled' and 'disabled' options to `list`
...
These return records that have the status specified in the option.
2015-03-18 17:05:33 -07:00
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
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
William Melody
cdf7793d7e
Make `list` search terms match anywhere on the line
...
Making list more flexible enables searching for hostnames as well as
partial ip addresses.
2015-03-18 16:01:32 -07:00
William Melody
f7ed234951
Expand Readme slightly.
2015-03-16 20:13:19 -07:00
William Melody
a52020ed40
Add `hosts file` command to Readme.
2015-03-16 19:56:16 -07:00
William Melody
7607dfd262
Add `edit` command
...
`edit` open the hosts file in the editor specified in the $EDITOR
environment variable.
2015-03-16 17:39:50 -07:00
William Melody
fc60f3a0d7
Clarify usage information
2015-03-16 17:26:58 -07:00
William Melody
f714965f0f
Add acknowledgements sections for script and Readme
2015-03-16 17:19:17 -07:00
William Melody
001fcfc959
Add initial Readme with basic information.
2015-03-16 17:08:59 -07:00