-
Ahoi! I want to load a yaml file given via I've got this so far:
The problem is, I'm not able to inject 🐟 ❯ cue cmd -t fname=swae-devops-test.yaml member-imports
no tag for "fname"
I've tried declaring it outside of a struct like so:
And inside of the command like this:
But the error stays the same. Quite confident this is something utterly simple, but I don't see it, afterall you appear to using injection without any issues in the repositories. I've seen various issues dealing with this, and I believe i've tried all their suggested fixes? I've tried this on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The following works for me, ran: import (
"tool/file"
"tool/cli"
"encoding/yaml"
"encoding/json"
"team-config/schema"
)
#args: {
fname: string @tag(fname)
}
command: "member-imports": {
cli.Print & {text: #args.fname}
} Can you get this working as well? (by putting it in an isolated environment / directory / module) Best if we can reduce until it works and then add back to see what is the cause |
Beta Was this translation helpful? Give feedback.
The following works for me, ran:
cue cmd -t fname=tony member-imports foo_tool.cue
Can you get this working as well? (by putting it in an isolated environment / directory / module)
Best if we can reduce until it works and then add back to see what is the cause