add CI
Some checks failed
release / build (amd64, linux) (push) Failing after 1m5s

This commit is contained in:
peio
2026-01-18 17:23:51 +00:00
parent 166db6cbf9
commit a25b3708a2
2 changed files with 60 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"context"
"fmt"
"log"
"os"
"os/signal"
@@ -11,7 +12,14 @@ import (
"kc-policy/internal/kcpolicy"
)
var version = "dev"
func main() {
if len(os.Args) > 1 && os.Args[1] == "--version" {
fmt.Println(version)
return
}
cfgPath := "/etc/kc-policy/config.yaml"
if len(os.Args) >= 2 {
cfgPath = os.Args[1]