blob: 2efaed2fed7044bc49b905f767f0d5bdbfbd0b17 [file] [log] [blame]
cue cmd -t prod -t name=bar tag tags.cue tags_tool.cue
cmp stdout expect-stdout
-- expect-stdout --
prod: bar
-- tags.cue --
package tags
var: env: "prod" | "staging" @tag(env,short=prod|staging)
var: name: string @tag(name)
-- tags_tool.cue --
package tags
import "tool/cli"
command: tag: cli.Print & {
text: "\(var.env): \(var.name)"
}