1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-11 12:10:30 +08:00

增加配置文件

This commit is contained in:
fumiama
2021-05-17 18:30:26 +08:00
parent 84987babb1
commit fa8b2b5fcc
5 changed files with 81 additions and 21 deletions

View File

@@ -24,10 +24,11 @@ make
## 0. 启动程序
```bash
./simple-kanban [-d] 7777 1 ./kanban.txt ./data.bin
./simple-kanban [-d] 7777 1 ./kanban.txt ./data.bin ./cfg.sp
```
其中-d为可选项如果添加程序将以daemon状态运行。
1. -d为可选项如果添加程序将以daemon状态运行。
2. `cfg.sp`为配置文件,通过编译生成的`cfgwriter`生成
## 1. 建立连接
@@ -49,18 +50,18 @@ make
## 4. 设置看板
- 发送:set
- 返回:set
- 发送ver+`SETPASS`
- 发送:`SETPASS`
- 返回:`SETPASS`
- 发送ver
- 返回data
- 发送:头+新的看板
- 返回succ
## 5. 设置数据
- 发送:set
- 返回:set
- 发送dat+`SETPASS`
- 发送:`SETPASS`
- 返回:`SETPASS`
- 发送dat
- 返回data
- 发送:头+新的数据
- 返回succ