Change name so it's more clear that it does double duty

pull/13/head
Chris Bednarski 9 years ago
parent 434b1db36d
commit 7fb619ef83

@ -81,13 +81,13 @@ func main() {
{
Name: "on",
Usage: "enable a hosts entry (if if exists)",
Action: hostess.On,
Action: hostess.OnOff,
Flags: app.Flags,
},
{
Name: "off",
Usage: "disable a hosts entry (don't delete it)",
Action: hostess.On,
Action: hostess.OnOff,
Flags: app.Flags,
},
{

@ -152,7 +152,7 @@ func Has(c *cli.Context) {
// On (and off) command enables (uncomments) or disables (comments) the
// specified hostname in the hosts file
func On(c *cli.Context) {
func OnOff(c *cli.Context) {
if len(c.Args()) != 1 {
MaybeError(c, "expected <hostname>")
}

Loading…
Cancel
Save