Skip to content

Commit 73e380f

Browse files
committed
feat: add hostctl
1 parent e2ebbde commit 73e380f

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

macos/hostctl/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# hostctl
2+
3+
## Install
4+
5+
### Homebrew
6+
7+
```sh
8+
brew install guumaster/tap/hostctl
9+
```
10+
11+
## References
12+
13+
- hostctl website: <https://guumaster.github.io/hostctl/>
14+
- hostctl github: <https://github.com/guumaster/hostctl>

macos/hostctl/hostctl-commands.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
######################################################################
2+
3+
hostctl list
4+
### +---------+--------+-----------------+---------------------+
5+
### | PROFILE | STATUS | IP | DOMAIN |
6+
### +---------+--------+-----------------+---------------------+
7+
### | default | on | 127.0.0.1 | localhost |
8+
### | default | on | 255.255.255.255 | broadcasthost |
9+
### | default | on | ::1 | localhost |
10+
### +---------+--------+-----------------+---------------------+
11+
12+
######################################################################
13+
14+
hostctl add k8s < k8s.hosts
15+
hostctl replace k8s < k8s.hosts

macos/hostctl/k8s.hosts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
127.0.0.1 jenkins.example.com

0 commit comments

Comments
 (0)