Add configuration loading with defaults and environment variable support

This commit is contained in:
2025-07-19 19:38:47 +02:00
parent 604d7ebcc8
commit 3428089bec
3 changed files with 239 additions and 1 deletions

View File

@@ -14,6 +14,12 @@ import (
// @basePath /api/v1
func main() {
config, err := llamactl.LoadConfig("")
if err != nil {
fmt.Printf("Error loading config: %v\n", err)
fmt.Println("Using default configuration.")
}
// Initialize the instance manager
instanceManager := llamactl.NewInstanceManager()