Skip to content

Commit

Permalink
增加使用方式
Browse files Browse the repository at this point in the history
  • Loading branch information
sedationh committed Sep 14, 2023
1 parent a892e0c commit 9d14e55
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# 快速分享剪贴板

## 如何使用

```zsh
➜ ./mac-64-fast-share-clipboard --help
Usage of ./mac-64-fast-share-clipboard:
-h, --host string 主机,非 admin 角色需要指定 host (default "127.0.0.1")
-p, --port string 端口 (default "8899")
-r, --role string 角色 (default "admin")
pflag: help requested


# 一台主机先以 admin 的身份开启
# A computer
➜ ./mac-64-fast-share-clipboard
admin 8899 127.0.0.1
config main.Config{Role:"admin", Port:"8899", Host:"127.0.0.1"}
2023/09/14 09:23:51 admin local host: 192.168.31.35

# 另一台再进行链接,链接 192.168.31.35, -r 的参数可以是任意的,只要不是 admin 就好
./mac-64-fast-share-clipboard -h 192.168.31.35 -r xxx
```

## 设计思路

管理端
Expand Down

0 comments on commit 9d14e55

Please sign in to comment.