feat(cmd/ry): add output package with raw format fix
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package output
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
func printYAML(w io.Writer, data any) error {
|
||||
enc := yaml.NewEncoder(w)
|
||||
enc.SetIndent(2)
|
||||
return enc.Encode(data)
|
||||
}
|
||||
Reference in New Issue
Block a user