This commit is contained in:
2023-08-13 23:45:57 +08:00
parent ce67343cdf
commit eff78bcf21
4 changed files with 4 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -741,7 +741,7 @@ checksum = "57bcfdad1b858c2db7c38303a6d2ad4dfaf5eb53dfeb0910128b2c26d6158503"
[[package]]
name = "local-mini-kms"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"base64",
"clap",

View File

@@ -1,6 +1,6 @@
[package]
name = "local-mini-kms"
version = "0.3.2"
version = "0.3.3"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -35,7 +35,7 @@ local-mini-kms cli --read --name test
```
```shell
local-mini-kms cli --write --name test --value hello [--force-write]
local-mini-kms cli --write --name test --value hello [--force-write] [--comment *comment*]
```
## cURL

View File

@@ -52,6 +52,7 @@ async fn inner_read(req: Request<Body>) -> XResult<(StatusCode, Value)> {
let mut map = byte_to_multi_view_map(&data.0);
map.insert("name".to_string(), Value::String(name.to_string()));
map.insert("comment".to_string(), db_key_value.comment.map(|c| Value::String(c)).unwrap_or(Value::Null));
serve_common::ok(Value::Object(map))
}