v0.29.0 the configuration engine, and lw --schema
Package / arch (push) Canceled after 0s
Package / user (push) Canceled after 0s
Package / deb (push) Canceled after 0s
Package / freebsd (push) Canceled after 0s
Package / image (push) Canceled after 0s
Test / test (push) Canceled after 0s
Test / e2e (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-10-09 18:34:45 -04:00
1 parent e8e5f05e47
commit dfd8a68988
28 files changed
+1381 -240

No files matched your search

+10
View File
@@ -2,6 +2,7 @@ package main
import (
"context"
"encoding/json"
"errors"
"fmt"
"os"
@@ -9,6 +10,7 @@ import (
"reflect"
"syscall"
"github.com/lixenwraith/logwisp/internal/compose"
"github.com/lixenwraith/logwisp/internal/config"
"github.com/lixenwraith/logwisp/internal/core"
"github.com/lixenwraith/logwisp/internal/version"
@@ -33,6 +35,14 @@ func main() {
case inv.on["version"]:
fmt.Println(version.String())
os.Exit(0)
case inv.on["schema"]:
out := json.NewEncoder(os.Stdout)
out.SetIndent("", " ")
if err := out.Encode(compose.NewSchema()); err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
os.Exit(0)
}
// --- 1. Initial setup ---