blob: 1c73beba2c1488666656ca92ce81b7099ebffc4d [file] [log] [blame]
package kube
import (
"text/tabwriter"
"tool/cli"
"tool/file"
)
command: ls: {
task: print: cli.Print & {
text: tabwriter.Write([
"\(x.kind) \t\(x.metadata.labels.component) \t\(x.metadata.name)"
for x in objects
])
}
task: write: file.Create & {
filename: "foo.txt"
contents: task.print.text
}
}