增加交互式配置支持
parent
92c92e67e1
commit
8d4273df77
|
@ -13,6 +13,8 @@
|
|||
* [x] Hex断帧设置
|
||||
* [x] UDP数据转发
|
||||
* [x] TCP数据转发
|
||||
* [x] 参数交互配置
|
||||
* [x] Ctrl组合键
|
||||
* [ ] 文件接收发送
|
||||
|
||||
## 运行示例
|
||||
|
@ -34,3 +36,9 @@
|
|||
5. Hex发送 `./COM -p COM8 -b 115200`
|
||||
|
||||

|
||||
6. 交互配置 `./COM`
|
||||
|
||||

|
||||
7. Ctrl组合键发送指令.ctrl `.ctrl c`
|
||||
|
||||

|
||||
|
|
1
flag.go
1
flag.go
|
@ -180,7 +180,6 @@ func getCliFlag() {
|
|||
config.inputCode = "hex"
|
||||
}
|
||||
v, _ = inf.NewConfirmWithSelection(
|
||||
confirm.WithDefaultYes(),
|
||||
confirm.WithPrompt("启用高级配置"),
|
||||
).Display()
|
||||
if v {
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 633 KiB |
Binary file not shown.
After Width: | Height: | Size: 55 KiB |
Loading…
Reference in New Issue