feat: lazysecrets list colours names from the theme, with icons

This commit is contained in:
keb committed 2026-10-14 21:24:01 +02:00
1 parent b1455451e6
commit e99462bd21
4 files changed
+83 -10

No files matched your search

+2 -1
View File
@@ -122,6 +122,7 @@ func run() error {
lazysecrets [flags] get <ref> print the value a lazysecrets:// link points at,
for scripts: VAR=$(lazysecrets get <ref>)
lazysecrets [flags] list [--cached] [--max-age 2m] [--format text|json]
[--color always|never] [--icons=false]
print every source, vault and secret it can
find, one per line, for fzf and pickers:
what's cached at once, then what loads
@@ -356,7 +357,7 @@ Flags:
if d, err := config.CacheDir(); err == nil && !*demo && config.On(cfg.Storage.Cache) {
cachePath = filepath.Join(d, "cache.json")
}
return listCmd(providers, cachePath, timeoutFor, listArgs, os.Stdout, os.Stderr)
return listCmd(providers, cachePath, timeoutFor, theme, *icons, listArgs, os.Stdout, os.Stderr)
}
if shareArgs != nil {
// The files from a repo, the key from whichever provider it's