Migrate PromptKit reports to shared rendering
This commit is contained in:
13
integrations/ckprompt/render_test.go
Normal file
13
integrations/ckprompt/render_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user