From 6ff28396bd501cdd3af2c6b9a8dfdb4e60618e4f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 4 Jul 2026 21:34:30 +0300 Subject: support files and templates --- cmd/gonf/main.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/gonf/main.go b/cmd/gonf/main.go index 9ce179d..9ac8563 100644 --- a/cmd/gonf/main.go +++ b/cmd/gonf/main.go @@ -5,8 +5,8 @@ import ( "fmt" "os" + "codeberg.org/snonux/gonf/examples" "codeberg.org/snonux/gonf/internal" - "codeberg.org/snonux/gonf/internal/file" "codeberg.org/snonux/gonf/internal/resources" ) @@ -19,5 +19,9 @@ func main() { } resources.Init() - file.HaveString("/tmp/foo.txt", "hi") + + if err := examples.Run(); err != nil { + fmt.Fprintf(os.Stderr, "example run error: %v\n", err) + os.Exit(1) + } } -- cgit v1.2.3