summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-04 21:34:30 +0300
committerPaul Buetow <paul@buetow.org>2026-07-04 21:34:30 +0300
commit6ff28396bd501cdd3af2c6b9a8dfdb4e60618e4f (patch)
tree77801f9a29be1d7b4ff2b8283e56a2f4976c302d /cmd
parent31c7a348184872a05bb5c130c09b91c44fc0e52d (diff)
support files and templates
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gonf/main.go8
1 files changed, 6 insertions, 2 deletions
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)
+ }
}