Skip to content

Allow overwriting existing files with crossplane xrd generate #216

Description

@BigGold1310

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions