cmd/eitri-agent/main.go
Ref: Size: 571 B History
// eitri-agent: BYO-hardware agent. Enrolls the host via "join <blob>" and then
// runs the reconcile + sync loop indefinitely. All behavior lives in
// internal/agent/run (RunCLI); this package is wiring only (arch R14).
package main
import (
"fmt"
"os"
"github.com/a73x/eitri/internal/agent/run"
"github.com/a73x/eitri/internal/version"
)
func main() {
if len(os.Args) > 1 && os.Args[1] == "--version" {
fmt.Println(version.Version)
return
}
if err := run.RunCLI(os.Args[1:]); err != nil {
fmt.Fprintln(os.Stderr, "eitri-agent:", err)
os.Exit(1)
}
}