feat: lazysecrets list's JSON says when an entry was last used, and how often
This commit is contained in:
3 files changed
+23
-11
No files matched your search
@@ -115,9 +115,9 @@ func listCmd(providers []provider.Provider, st *store.Store, cachePath string, t
|
||||
}
|
||||
f = listing.Run(context.Background(), listing.Options{
|
||||
Providers: providers, Cache: f, MaxAge: *maxAge, Cached: *cached, Kinds: only, Timeout: timeout,
|
||||
Mark: func(link, account string) (bool, bool) {
|
||||
Mark: func(link, account string) (bool, time.Time, int) {
|
||||
n := st.Node(link)
|
||||
return n.StarredFor(account), !n.LastUsed.IsZero()
|
||||
return n.StarredFor(account), n.LastUsed, n.Uses
|
||||
},
|
||||
}, emit)
|
||||
if cachePath != "" && !*cached {
|
||||
|
||||
Reference in new issue
Block a user