We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a json config that works:
{ "domain": "tarv.xyz", "token": "/etc/zeronsd/token", "hosts": "/etc/zeronsd/hosts", "wildcard": true }
If I convert that to toml through some website that does json to toml:
domain = "tarv.xyz" token = "/etc/zeronsd/token" hosts = "/etc/zeronsd/hosts" wildcard = false
I get an error: [2022-02-22T22:26:05Z ERROR zeronsd::cli] invalid type: string "domain = \"tarv.xyz\" token = \"/etc/zeronsd/token\" hosts = \"/etc/zeronsd/hosts\" wildcard = false", expected struct Launcher at line 1 column 1
[2022-02-22T22:26:05Z ERROR zeronsd::cli] invalid type: string "domain = \"tarv.xyz\" token = \"/etc/zeronsd/token\" hosts = \"/etc/zeronsd/hosts\" wildcard = false", expected struct Launcher at line 1 column 1
Edit:
Oh sorry! with --config-type=toml, it works.
--config-type=toml
It seems detect json and yaml automatically without using that flag.
The text was updated successfully, but these errors were encountered:
that's because JSON is also valid YAML (honest; look it up). Closing this one as invalid. Ha!
Sorry, something went wrong.
that's because JSON is also valid YAML (honest; look it up).
good grief!
No branches or pull requests
I have a json config that works:
{ "domain": "tarv.xyz", "token": "/etc/zeronsd/token", "hosts": "/etc/zeronsd/hosts", "wildcard": true }
If I convert that to toml through some website that does json to toml:
I get an error:
[2022-02-22T22:26:05Z ERROR zeronsd::cli] invalid type: string "domain = \"tarv.xyz\" token = \"/etc/zeronsd/token\" hosts = \"/etc/zeronsd/hosts\" wildcard = false", expected struct Launcher at line 1 column 1
Edit:
Oh sorry! with
--config-type=toml
, it works.It seems detect json and yaml automatically without using that flag.
The text was updated successfully, but these errors were encountered: