v0.3.3
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -741,7 +741,7 @@ checksum = "57bcfdad1b858c2db7c38303a6d2ad4dfaf5eb53dfeb0910128b2c26d6158503"
|
||||
|
||||
[[package]]
|
||||
name = "local-mini-kms"
|
||||
version = "0.3.2"
|
||||
version = "0.3.3"
|
||||
dependencies = [
|
||||
"base64",
|
||||
"clap",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user