KAOS/code/cmd/kaos-supervisor/main.go
djuka f001c53ca1 T01: Inicijalizacija Go projekta
- go mod init github.com/dal/kaos
- Config paket sa .env učitavanjem i validacijom
- Supervisor skeleton paket
- Entry point (cmd/kaos-supervisor/main.go)
- Makefile (build, test, vet, clean, all)
- .env.example, .gitignore
- 6 config testova — svi prolaze

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 11:21:06 +00:00

23 lines
478 B
Go

// Package main is the entry point for the KAOS supervisor process.
// It loads configuration and starts the supervisor.
package main
import (
"fmt"
"log"
"os"
"github.com/dal/kaos/internal/config"
_ "github.com/dal/kaos/internal/supervisor"
)
func main() {
cfg, err := config.Load()
if err != nil {
log.Fatalf("Failed to load config: %v", err)
}
fmt.Fprintf(os.Stdout, "KAOS Supervisor started (timeout=%s, project_path=%s)\n",
cfg.Timeout, cfg.ProjectPath)
}