Add ability to read json/yaml/jsonnet input files
File format is recognised via simple file extension check. Any "List" objects found will be expanded into their constituent items, so single-element formats like json and jsonnet can use a v1.List to capture multiple resource objects.
Showing
- cmd/root.go 17 additions, 17 deletionscmd/root.go
- cmd/show.go 27 additions, 13 deletionscmd/show.go
- cmd/show_test.go 3 additions, 1 deletioncmd/show_test.go
- main.go 0 additions, 1 deletionmain.go
- testdata/lib/test.libsonnet 3 additions, 0 deletionstestdata/lib/test.libsonnet
- testdata/simple.json 5 additions, 0 deletionstestdata/simple.json
- testdata/test.jsonnet 8 additions, 2 deletionstestdata/test.jsonnet
- testdata/test.yaml 3 additions, 0 deletionstestdata/test.yaml
- utils/acquire.go 110 additions, 0 deletionsutils/acquire.go
testdata/simple.json
0 → 100644
testdata/test.yaml
0 → 100644
utils/acquire.go
0 → 100644
Please register or sign in to comment