From dcec41dd10923e3c13bee952fbae40a038183e28 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 29 Apr 2026 08:12:00 +0200 Subject: [PATCH] clarify template use of .Value --- anydb.pod | 8 ++++++++ cfg/config.go | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/anydb.pod b/anydb.pod index 836585e..ed65d98 100644 --- a/anydb.pod +++ b/anydb.pod @@ -452,6 +452,14 @@ The following template variables can be used: =item B<.Value> - string +To be able to use the value in a template, you'll need to add the +C<-s> flag so that values are included in output data +stream. Otherwise you can only use `.Preview`. + +=item B<.Preview> string + +First line of entry value (if it is a string). + =item B<.Bin> - []byte =item B<.Created> - timestamp.Time diff --git a/cfg/config.go b/cfg/config.go index f860ffe..bbfa6df 100644 --- a/cfg/config.go +++ b/cfg/config.go @@ -30,7 +30,7 @@ import ( "github.com/tlinden/yadu" ) -var Version string = "v0.3.0" +var Version string = "v0.3.1" type BucketConfig struct { Encrypt bool