14 lines
287 B
Go
14 lines
287 B
Go
package ckprompt
|
|
|
|
import (
|
|
"bytes"
|
|
|
|
commandkit "go.maximumdirect.net/commandkit"
|
|
)
|
|
|
|
func renderTestYAML(value any) ([]byte, error) {
|
|
var output bytes.Buffer
|
|
err := commandkit.RenderReport(&output, commandkit.Report{Value: value}, commandkit.FormatYAML)
|
|
return output.Bytes(), err
|
|
}
|