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

--checkconfig doesn't check config #1

Closed
Michad opened this issue Jul 1, 2023 · 1 comment
Closed

--checkconfig doesn't check config #1

Michad opened this issue Jul 1, 2023 · 1 comment

Comments

@Michad
Copy link

Michad commented Jul 1, 2023

Expected Behavior

Running jard --checkconfig should validate the configuration is valid and output any issues that would occur when running the same config file through jard --config

Actual Behavior

jard outputs Ok and exits regardless of contents of config file

Steps to Reproduce the Problem

$ cat test.yml
asklfjas
fsa
fasg
jas
jg
asg
sag
asg
asjgn
ewy
weeyw
yeew
$ go-jar/cmd/jard/jard --checkconfig test.yml
Ok
$ go-jar/cmd/jard/jard --config test.yml
2023/07/01 17:47:45 jard.go:27: Error loading config 'test.yml': While parsing config: yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `asklfja...` into map[string]interface {}

Specifications

  • Version: JARD 1.1.0+git
  • Platform: CentOS
  • Subsystem: go1.20.5
@cognusion
Copy link
Owner

Hello! --checkconfig is a boolean, so --checkconfig --config whatever.yml is what you/re looking for!

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