github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/doc/tutorial/kubernetes/manual/services/create_tool.cue (about) 1 package kube 2 3 import "encoding/yaml" 4 5 command: create: { 6 task: kube: { 7 kind: "exec" 8 cmd: "kubectl create --dry-run -f -" 9 stdin: yaml.MarshalStream(objects) 10 stdout: string 11 } 12 task: display: { 13 kind: "print" 14 text: task.kube.stdout 15 } 16 }