From bad05a4f3d24eb092724f667ee33bb1956457dd3 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 26 Feb 2019 22:25:52 +0100 Subject: cache: better API to access excerpts --- commands/user_list.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'commands/user_list.go') diff --git a/commands/user_list.go b/commands/user_list.go index 19be7628..23ecea73 100644 --- a/commands/user_list.go +++ b/commands/user_list.go @@ -17,7 +17,12 @@ func runUserLs(cmd *cobra.Command, args []string) error { defer backend.Close() interrupt.RegisterCleaner(backend.Close) - for _, i := range backend.AllIdentityExcerpt() { + for _, id := range backend.AllIdentityIds() { + i, err := backend.ResolveIdentityExcerpt(id) + if err != nil { + return err + } + fmt.Printf("%s %s\n", colors.Cyan(i.HumanId()), i.DisplayName(), -- cgit