blob: 234662ab70710d8dfacea06dfef91824ecce0db6 [file] [log] [blame]
cue cmd gengithub
-- x.cue --
package x
test: #Workflow & {
}
#Workflow: {
#: "working-directory": string
}
-- x_tool.cue --
package x
import (
"tool/file"
"encoding/yaml"
)
command: gengithub: {
write: file.Create & {
filename: "test.yml"
contents: """
# Generated by ci_tool.cue; do not edit
\(yaml.Marshal(test))
"""
}
}