MCPcopy Index your code
hub / github.com/docker/docker-agent / renderJSON

Method renderJSON

cmd/root/models.go:386–390  ·  view source on GitHub ↗
(cmd *cobra.Command, rows []modelRow)

Source from the content-addressed store, hash-verified

384}
385
386func (f *modelsListFlags) renderJSON(cmd *cobra.Command, rows []modelRow) error {
387 enc := json.NewEncoder(cmd.OutOrStdout())
388 enc.SetIndent("", " ")
389 return enc.Encode(rows)
390}

Callers 1

runModelsListCommandMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected