blob: b0d471831f22ac177011c4fda21d93ef6dcaeceb [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
}
}