diff options
| author | Paul Buetow <paul@buetow.org> | 2024-06-15 22:17:22 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-06-15 22:17:22 +0300 |
| commit | 4867c040ffddfc18b235e1950f44870c99acf096 (patch) | |
| tree | 8e630647fdcd71870bda3f5c62fe63dc8803523a /cmd | |
| parent | 5722509b4c05a26b029a1c053d25571beabcc29c (diff) | |
add client main.go
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gos/main.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/gos/main.go b/cmd/gos/main.go new file mode 100644 index 0000000..2f2ac89 --- /dev/null +++ b/cmd/gos/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "flag" + "log" + + config "codeberg.org/snonux/gos/internal/config/client" +) + +func main() { + configFile := flag.String("cfg", "/etc/gos.json", "The configuration file") + + conf, err := config.New(*configFile) + if err != nil { + log.Fatal("error building config:", err) + } + + log.Println(conf) +} |
