Skip to content
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

It doesn't like toml formatted config, or I can't figure out the format. #156

Closed
laduke opened this issue Feb 22, 2022 · 2 comments
Closed

Comments

@laduke
Copy link
Contributor

laduke commented Feb 22, 2022

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


Edit:

Oh sorry! with --config-type=toml, it works.

It seems detect json and yaml automatically without using that flag.

@erikh
Copy link
Contributor

erikh commented Feb 23, 2022

that's because JSON is also valid YAML (honest; look it up). Closing this one as invalid. Ha!

@erikh erikh closed this as completed Feb 23, 2022
@laduke
Copy link
Contributor Author

laduke commented Feb 23, 2022

that's because JSON is also valid YAML (honest; look it up).

good grief!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants