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