What problem are you facing?
I use SimpleSchema as the source of truth for my XRD API, so I run crossplane xrd generate frequently during development. Today, this is a challenge because generation fails if the output file already exists. I currently work around it like this:
rm -rf apis/applications/definition.yaml
crossplane xrd generate --from simpleschema apis/applications/schema.yaml
How could Crossplane help solve your problem?
Add a --force or --replace flag to crossplane xrd generate that overwrites the existing output file instead of failing.
What problem are you facing?
I use SimpleSchema as the source of truth for my XRD API, so I run
crossplane xrd generatefrequently during development. Today, this is a challenge because generation fails if the output file already exists. I currently work around it like this:How could Crossplane help solve your problem?
Add a
--forceor--replaceflag tocrossplane xrd generatethat overwrites the existing output file instead of failing.