refactor(util): Use YAML parser for both JSON & YAML files
JSON is a subset of YAML and the previous detection logic is unnecessary.
This commit is contained in:
parent
b33c353233
commit
141355f350
2 changed files with 8 additions and 13 deletions
4
main.go
4
main.go
|
|
@ -35,8 +35,8 @@ var (
|
|||
app = kingpin.New("kontemplate", "simple Kubernetes resource templating")
|
||||
|
||||
// Global flags
|
||||
includes = app.Flag("include", "Resource sets to include explicitly").Short('i').Strings()
|
||||
excludes = app.Flag("exclude", "Resource sets to exclude explicitly").Short('e').Strings()
|
||||
includes = app.Flag("include", "Resource sets to include explicitly").Short('i').Strings()
|
||||
excludes = app.Flag("exclude", "Resource sets to exclude explicitly").Short('e').Strings()
|
||||
variables = app.Flag("var", "Provide variables to templates explicitly").Strings()
|
||||
|
||||
// Commands
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue