MCPcopy Index your code
hub / github.com/git-bug/git-bug / userJsonFormatter

Function userJsonFormatter

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

Source from the content-addressed store, hash-verified

75}
76
77func userJsonFormatter(env *execenv.Env, users []*cache.IdentityExcerpt) error {
78 jsonUsers := make([]cmdjson.Identity, len(users))
79 for i, user := range users {
80 jsonUsers[i] = cmdjson.NewIdentityFromExcerpt(user)
81 }
82
83 return env.Out.PrintJSON(jsonUsers)
84}

Callers 1

runUserFunction · 0.85

Calls 2

NewIdentityFromExcerptFunction · 0.92
PrintJSONMethod · 0.65

Tested by

no test coverage detected