We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c41848 commit d75b33aCopy full SHA for d75b33a
core/config.go
@@ -64,7 +64,11 @@ func GetMergedConfig(args cmdarg.Arg) (string, error) {
64
var files []*ConfigSource
65
supported := []string{"json", "yaml", "toml"}
66
for _, file := range args {
67
- format := GetFormat(file)
+ format := "json"
68
+ if file != "stdin:" {
69
+ format = GetFormat(file)
70
+ }
71
+
72
if slices.Contains(supported, format) {
73
files = append(files, &ConfigSource{
74
Name: file,
0 commit comments