feat: lazysecrets list marks expiring and expired secrets, and its JSON has expires and enabled

This commit is contained in:
keb committed 2026-10-14 21:24:01 +02:00
1 parent 33fa064104
commit b4e4c1515b
5 files changed
+80 -37

No files matched your search

+1 -1
View File
@@ -389,7 +389,7 @@ Flags:
if d, err := config.CacheDir(); err == nil && !*demo && config.On(cfg.Storage.Cache) {
cachePath = filepath.Join(d, "cache.json")
}
return listCmd(providers, st, cachePath, timeoutFor, theme, *icons, recentIcon, listArgs, os.Stdout)
return listCmd(providers, st, cachePath, timeoutFor, theme, *icons, recentIcon, time.Duration(expiryDays)*24*time.Hour, listArgs, os.Stdout)
}
if shareArgs != nil {
// The files from a repo, the key from whichever provider it's