package cli

import (
	"encoding/json"
	"io"
)

// printJSONFiltered is the OLD novel form: takes a cobra-shaped interface.
// Collides with the new templated helpers.go printJSONFiltered.
// This file is novel (no "Generated by" marker).
func novelPrintHelper(cmd interface{ OutOrStdout() io.Writer }, v any) error {
	return json.NewEncoder(cmd.OutOrStdout()).Encode(v)
}
