github.com/solo-io/cue@v0.4.7/doc/tutorial/kubernetes/quick/services/create_tool.cue (about) 1 package kube 2 3 import ( 4 "encoding/yaml" 5 "tool/exec" 6 "tool/cli" 7 ) 8 9 command: create: { 10 task: kube: exec.Run & { 11 cmd: "kubectl create --dry-run -f -" 12 stdin: yaml.MarshalStream(objects) 13 stdout: string 14 } 15 16 task: display: cli.Print & { 17 text: task.kube.stdout 18 } 19 }