Skip to content

Commit

Permalink
Documentation: Ip flag usage (#19)
Browse files Browse the repository at this point in the history
* Update documentation
  • Loading branch information
BarbUk committed Mar 28, 2020
1 parent 93ad59b commit 412d4f3
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Use "hostctl [command] --help" for more information about a command.
+---------+--------+----------------+----------------------------+
```

### Add new profile
### Add new profile from a file

You can store routing as a separate file and add it to the global hosts file when you need.

Expand Down Expand Up @@ -166,6 +166,28 @@ You can add that content as a profile with this command:
+---------+--------+----------------+------------------------------+
```

### Add new profile from cli

You can add a new profile or add new domain to a specific profile directly from the cli:

You can add that content as a profile with this command:

`$>hostctl -p test add domains test.com --ip 123.123.123.123 `

```
// Output:
+---------+--------+-----------------+------------------------------+
| PROFILE | STATUS | IP | DOMAIN |
+---------+--------+-----------------+------------------------------+
| default | on | 127.0.0.1 | localhost |
| default | on | 127.0.1.1 | some-existing.local |
| default | on | ::1 | ip6-localhost |
+---------+--------+-----------------+------------------------------+
| another | on | 192.168.1.51 | jupyter.toolkit-lite.local |
+---------+--------+-----------------+------------------------------+
| test | on | 123.123.123.123 | test.com |
+---------+--------+-----------------+------------------------------+
```

### Enable/Disable profile

Expand Down

0 comments on commit 412d4f3

Please sign in to comment.