cnoe-io / idpbuilder

Spin up a complete internal developer platform with only Docker required as a dependency.
https://cloud-native.slack.com/archives/C05TN9WFN5S
Apache License 2.0
194 stars 59 forks source link

Relax the `-p` flag requirement #375

Open nabuskey opened 2 months ago

nabuskey commented 2 months ago

Currently, the -p flag fails if you specify a file. Since we changed the name of the flag to no longer reference a directory, we can probably change it so it does not fail.

./idpbuilder create -p /tmp/minio.yaml
Error: given path is not a directory. /tmp/minio.yaml

https://github.com/cnoe-io/idpbuilder/blob/4f602a458567acf847d06807f1cc5764086ee50b/pkg/cmd/helpers/validation.go#L69