...

Text file src/cuelang.org/go/doc/tutorial/kubernetes/manual/services/ls_tool.cue

Documentation: cuelang.org/go/doc/tutorial/kubernetes/manual/services

     1package kube
     2
     3import "strings"
     4
     5command: 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}

View as plain text