summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
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)
+ }
}