-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent behaviour while loading multiple files vs single file #1901
Labels
Milestone
Comments
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 🙂 |
olorin37
added a commit
to olorin37/nickel
that referenced
this issue
May 3, 2024
Guess input format based on extension similarly like in multiple input case.
olorin37
added a commit
to olorin37/nickel
that referenced
this issue
May 4, 2024
Guess input format based on extension similarly like in multiple input case.
olorin37
added a commit
to olorin37/nickel
that referenced
this issue
May 4, 2024
Guess input format based on extension similarly like in multiple input case.
olorin37
added a commit
to olorin37/nickel
that referenced
this issue
May 5, 2024
Guess input format based on extension similarly like in multiple input case.
olorin37
added a commit
to olorin37/nickel
that referenced
this issue
May 6, 2024
Guess input format based on extension similarly like in multiple input case.
olorin37
added a commit
to olorin37/nickel
that referenced
this issue
May 6, 2024
Guess input format based on extension similarly like in multiple input case.
Fixed in #1902. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
The text was updated successfully, but these errors were encountered: