diff options
| author | Paul Buetow <paul@buetow.org> | 2026-07-04 20:42:03 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-07-04 20:42:03 +0300 |
| commit | 702f05865895e36c6e5e490886a641873d8adc4e (patch) | |
| tree | c2be076712164e316a339d5b7da4957d0871cf82 /cmd | |
initial version
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gonf/main.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cmd/gonf/main.go b/cmd/gonf/main.go new file mode 100644 index 0000000..9ce179d --- /dev/null +++ b/cmd/gonf/main.go @@ -0,0 +1,23 @@ +package main + +import ( + "flag" + "fmt" + "os" + + "codeberg.org/snonux/gonf/internal" + "codeberg.org/snonux/gonf/internal/file" + "codeberg.org/snonux/gonf/internal/resources" +) + +func main() { + version := flag.Bool("version", false, "Print version") + + if *version { + fmt.Println(internal.Version) + os.Exit(0) + } + + resources.Init() + file.HaveString("/tmp/foo.txt", "hi") +} |
