a73x

cmd/eitri-smoke/main.go

Ref:   Size: 649 B   History

// eitri-smoke: the deploy boot-gate harness. It signs in through the real OIDC
// flow, then creates a throwaway VM, proves it boots and is reachable through
// the SSH-CA gate, and reaps it — failing the deploy on any error. All behavior
// lives in internal/smoke (Run); this package is wiring only (arch R14).
package main

import (
	"fmt"
	"os"

	"github.com/a73x/eitri/internal/smoke"
	"github.com/a73x/eitri/internal/version"
)

func main() {
	if len(os.Args) > 1 && os.Args[1] == "--version" {
		fmt.Println(version.Version)
		return
	}
	if err := smoke.Run(); err != nil {
		fmt.Fprintln(os.Stderr, "eitri-smoke:", err)
		os.Exit(1)
	}
}