Skip to content

Commit

Permalink
fix: Invalid example config
Browse files Browse the repository at this point in the history
  • Loading branch information
romshark committed Jun 10, 2024
1 parent fedf007 commit 5e54c20
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions config_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
_ "embed"
"testing"

"github.com/romshark/yamagiconf"
Expand Down Expand Up @@ -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)
}
8 changes: 4 additions & 4 deletions example-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand Down

0 comments on commit 5e54c20

Please sign in to comment.