From 5e54c204e26063287699364c2687487d37bb4fd8 Mon Sep 17 00:00:00 2001 From: Roman Sharkov Date: Mon, 10 Jun 2024 22:44:56 +0200 Subject: [PATCH] fix: Invalid example config --- config_test.go | 11 +++++++++++ example-config.yml | 8 ++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/config_test.go b/config_test.go index ac2f9f9..fe0309c 100644 --- a/config_test.go +++ b/config_test.go @@ -1,6 +1,7 @@ package main import ( + _ "embed" "testing" "github.com/romshark/yamagiconf" @@ -56,3 +57,13 @@ func TestSpaceSeparatedList(t *testing.T) { }) } } + +//go:embed example-config.yml +var exampleConfig string + +func TestExampleConfig(t *testing.T) { + var c Config + + err := yamagiconf.Load(exampleConfig, &c) + require.NoError(t, err) +} diff --git a/example-config.yml b/example-config.yml index 81c0f23..fc910cf 100644 --- a/example-config.yml +++ b/example-config.yml @@ -6,10 +6,10 @@ proxy-timeout: 10s # lint enables golangci-lint when true lint: true -# host defines what host address to run Templier on. -host: "your-application:11000" +# templier-host defines what host address to run TempliƩr on. +templier-host: "your-application:11000" -# print-js-debug-logs enables Templier debug logs in the browser. +# print-js-debug-logs enables TempliƩr debug logs in the browser. print-js-debug-logs: true debounce: @@ -35,7 +35,7 @@ app: # app.dir-cmd defines the path to the main package directory # within the app source directory. - dir-cmd: ./cmd/server + dir-cmd: ./cmd/server/ # app.dir-work defines the path to the workspace directory # to run the application server executable in.