github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/doc/tutorial/kubernetes/manual/services/ls_tool.cue (about)

     1  package kube
     2  
     3  import "strings"
     4  
     5  command: ls: {
     6  	task: print: {
     7  		kind: "print"
     8  		let Lines = [
     9  			for x in objects {
    10  				"\(x.kind)  \t\(x.metadata.labels.component)   \t\(x.metadata.name)"
    11  			}
    12  		]
    13  		text: strings.Join(Lines, "\n")
    14  	}
    15  }