Closed olorin37 closed 2 months ago
Hello,
There is absolutely no good reason behind Nickel not accepting a yaml, json or toml file as a single input indeed, nor there is any technical limitation. It's sensible and is easy to implement, so we'll definitely do that :slightly_smiling_face:
Fixed in #1902.
Problem
I found inconsistency, while loading two or more files any importable (json, yaml, toml) can be used otherwise only nickel file is allowed (examples works both for eval or export sub-commands):
It works, does merge of two imported objects underneath as
(import "my.yaml") & (import "my.ncl")
. It is also works even there is no nickel file for example:But if we use only one file, it doesn't as it expects nickel syntax:
Solution?
nickel export -f toml my.yaml -o my.toml
.What you think?