[chore] refactor test/cliparsing.sh into a go test below internal/config (#1036)

Also adds AddGlobalFlags and AddServerFlags as methods on ConfigState,
very useful for testing.
This commit is contained in:
Mara Sophie Grosch 2022-11-15 16:53:19 +01:00 committed by GitHub
commit 1f256e288b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 222 additions and 126 deletions

2
internal/config/testdata/test2.yaml vendored Normal file
View file

@ -0,0 +1,2 @@
log-level: "trace"
account-domain: "peepee.poopoo"