commit 6132373a8f326a12041d28718959d9ea9d9de920
parent cdccc7f565ed35bf7411dbb2ddefa173e774c00b
Author: Sean Enck <sean@ttypty.com>
Date: Wed, 13 Jul 2022 20:24:59 -0400
bad naming for this
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cmd/lb/main.go b/cmd/lb/main.go
@@ -22,7 +22,7 @@ type (
// Dump represents the output structure from a JSON dump.
Dump struct {
Path string `json:"path,omitempty"`
- Value string `json:"name"`
+ Value string `json:"value"`
}
)
diff --git a/tests/expected.log b/tests/expected.log
@@ -11,12 +11,12 @@ test2
[
{
"path": "keys/one",
- "name": "test"
+ "value": "test"
}
,
{
"path": "keys/one2",
- "name": "test2"
+ "value": "test2"
}
]
@@ -38,7 +38,7 @@ test3
test4
dump data to stdout as plaintext? (y/N) [
{
- "name": "test3\ntest4"
+ "value": "test3\ntest4"
}
]