3 Commits

Author SHA1 Message Date
6597a72eab add warning about multiline values 2026-04-29 08:28:18 +02:00
2d8d046687 recreate man 2026-04-29 08:12:56 +02:00
dcec41dd10 clarify template use of .Value 2026-04-29 08:12:00 +02:00
3 changed files with 1 additions and 17 deletions

View File

@@ -91,14 +91,6 @@ func New(file string, bucket string, debug bool) (*DB, error) {
return &DB{Debug: debug, Dbfile: file, Bucket: bucket}, nil
}
func (db *DB) Exists() error {
if !common.FileExists(db.Dbfile) {
return fmt.Errorf("db file %s doesn't exist", db.Dbfile)
}
return nil
}
func (db *DB) Open() error {
slog.Debug("opening DB", "dbfile", db.Dbfile)

View File

@@ -30,7 +30,7 @@ import (
"github.com/tlinden/yadu"
)
var Version string = "v0.3.2"
var Version string = "v0.3.1"
type BucketConfig struct {
Encrypt bool

View File

@@ -107,10 +107,6 @@ func Get(conf *cfg.Config) *cobra.Command {
attr.Key = args[0]
}
if err := conf.DB.Exists(); err != nil {
return err
}
entry, err := conf.DB.Get(&attr)
if err != nil {
return err
@@ -211,10 +207,6 @@ func List(conf *cfg.Config) *cobra.Command {
conf.Mode = "wide"
}
if err := conf.DB.Exists(); err != nil {
return err
}
entries, err := conf.DB.List(&attr, conf.Fulltext)
if err != nil {
return err