From e737a1bcc582fdcd6c8eb3d6fb01dab09817804d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 7 Jun 2021 14:25:53 +0800 Subject: [PATCH] Update README.md --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a171d70..baeedf6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ 您需要首先安装[simple-protobuf](https://github.com/fumiama/simple-protobuf),并记住安装路径。如果安装路径不是`/usr/local`,需要手动更改`CMakeLists.txt`的路径指向正确位置。 ```bash git clone https://github.com/fumiama/simple-protobuf.git -cd simple-protobuf +mkdir build cd build cmake .. make @@ -24,6 +24,7 @@ mkdir build cd build cmake .. make +make install ``` # 数据格式 @@ -36,7 +37,7 @@ make ## 0. 启动程序 ```bash -./simple-kanban [-d] 7777 1 ./kanban.txt ./data.bin ./cfg.sp +simple-kanban [-d] 7777 1 ./kanban.txt ./data.bin ./cfg.sp ``` 1. -d为可选项,如果添加,程序将以daemon状态运行。 @@ -62,8 +63,8 @@ make ## 4. 设置看板 -- 发送:`SETPASS` -- 返回:`SETPASS` +- 发送:set`SETPASS` +- 返回:set`SETPASS` - 发送:ver - 返回:data - 发送:头+新的看板 @@ -71,8 +72,8 @@ make ## 5. 设置数据 -- 发送:`SETPASS` -- 返回:`SETPASS` +- 发送:set`SETPASS` +- 返回:set`SETPASS` - 发送:dat - 返回:data - 发送:头+新的数据 @@ -104,4 +105,4 @@ make 键入:quit -回车即可 \ No newline at end of file +回车即可