git clone git@github.com:DavidChevallier/CRDtoKCL.git./ -url <GitHub-URL> -name <Modulname> [-debug]-url: The GitHub URL of the directory.-name: Name of the module.-debug: Enable debugging.
Example:
go run . -name "traefik" -url "https://github.com/traefik/traefik-helm-chart/tree/master/traefik/crds" -debuggo run . -config <Pfad zur JSON config> [-debug]-config-debug
Example:
go run . -config config.json -debug{
"moduleName": "fooobar",
"crds": {
"crd1": "https://raw.githubusercontent.com/DavidChevallier/repo/main/crds/crd1.yaml",
"crd2": "https://raw.githubusercontent.com/DavidChevallier/repo/main/crds/crd2.yaml"
}
}docker buildx build --no-cache --platform linux/amd64,linux/arm64 -t dchevallier/crdtokcl:latest -t dchevallier/crdtokcl:v1.0.0 . --pushfunction crdtokcl() {
docker run --rm -v $(pwd):/app dchevallier/crdtokcl:latest "$@"
}