MCPcopy Create free account
hub / github.com/git-bug/git-bug / userDefaultFormatter

Function userDefaultFormatter

commands/user/user.go:66–75  ·  view source on GitHub ↗
(env *execenv.Env, users []*cache.IdentityExcerpt)

Source from the content-addressed store, hash-verified

64}
65
66func userDefaultFormatter(env *execenv.Env, users []*cache.IdentityExcerpt) error {
67 for _, user := range users {
68 env.Out.Printf("%s %s\n",
69 colors.Cyan(user.Id().Human()),
70 user.DisplayName(),
71 )
72 }
73
74 return nil
75}
76
77func userJsonFormatter(env *execenv.Env, users []*cache.IdentityExcerpt) error {
78 jsonUsers := make([]cmdjson.Identity, len(users))

Callers 1

runUserFunction · 0.85

Calls 4

PrintfMethod · 0.65
IdMethod · 0.65
DisplayNameMethod · 0.65
HumanMethod · 0.45

Tested by

no test coverage detected