MCPcopy Index your code
hub / github.com/jetify-com/devbox / LogValue

Method LogValue

internal/shellgen/flake_plan.go:319–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317}
318
319func (g *glibcPatchFlake) LogValue() slog.Value {
320 inputs := make([]slog.Attr, 0, 2+len(g.Inputs))
321 inputs = append(inputs,
322 slog.String("devbox", g.DevboxFlake.String()),
323 slog.String("nixpkgs-glibc", g.NixpkgsGlibcFlakeRef),
324 )
325 for k, v := range g.Inputs {
326 inputs = append(inputs, slog.String(k, v))
327 }
328
329 var outputs []string
330 for _, pkg := range g.Outputs.Packages {
331 for attrPath := range pkg {
332 outputs = append(outputs, attrPath)
333 }
334 }
335 return slog.GroupValue(
336 slog.Attr{Key: "inputs", Value: slog.GroupValue(inputs...)},
337 slog.Attr{Key: "outputs", Value: slog.AnyValue(outputs)},
338 )
339}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected