cmd/eitri-oidc/main.go
Ref: Size: 675 B History
// eitri-oidc: the bundled OIDC issuer. It runs as a sibling process to
// eitri-server with its own systemd unit and release tarball, so "with/without
// local OIDC" is a pure deployment choice. All behavior lives in
// internal/oidcprovider (RunCLI); this package is wiring only (arch R14).
package main
import (
"fmt"
"os"
"github.com/a73x/eitri/internal/oidcprovider"
"github.com/a73x/eitri/internal/version"
)
func main() {
if len(os.Args) > 1 && os.Args[1] == "--version" {
fmt.Println(version.Version)
return
}
if err := oidcprovider.RunCLI(os.Args[1:], os.Stdout, os.Stderr); err != nil {
fmt.Fprintln(os.Stderr, "eitri-oidc:", err)
os.Exit(1)
}
}