INNER CODE UNIT · Go

main

platform-engineering-labs/formae · cmd/bundle-examples/main.go:48

func main() {
	dist := flag.String("dist", "dist/pel/formae/examples", "stage dir")
	manifest := flag.String("manifest", ".out/examples-manifest.json", "staged-member manifest (JSON)")
	formaeVer := flag.String("formae-version", "", "REQUIRED: this build's formae X.Y.Z (Makefile passes $(VERSION))")
	opkgGlob := flag.String("opkg", "", "opkg path or glob for the contents assertion")
	skipStage := flag.Bool("skip-stage", false, "only assert opkg contents against the manifest")
	stdRepo := flag.String("standard-repo", "https://github.com/platform-engineering-labs/formae-plugin-standard.git", "")
	hub := flag.String("hub", "https://hub.platform.engineering", "")
	flag.Parse()

	var err error
	if *skipStage {
		err = assertOpkg(*opkgGlob, *manifest)
	} else {
		err = stage(*dist, *manifest, *formaeVer, *stdRepo, *hub)
	}
	if err != nil {
		fmt.Fprintf(os.Stderr, "bundle-examples: %v\n", err)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…