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 | |
} | |
} |