INNER CODE UNIT · Go

main

LerianStudio/midaz · components/tracer/cmd/migrate-cel-rules/main.go:50

func main() {
	down := flag.Bool("down", false, "refuse and fail loud: the currency->asset rewrite is irreversible (no stored provenance)")
	up := flag.Bool("up", true, "apply the currency->asset rewrite to all stored CEL rules (atomic; rolls back on any recompile failure)")

	flag.Usage = usage

	flag.Parse()

	if err := run(*up, *down); err != nil {
		fmt.Fprintf(os.Stderr, "migrate-cel-rules: fatal: %v\n", err)
		os.Exit(1)
	}
}

func usage() {
	fmt.Fprint(flag.CommandLine.Output(),
		`migrate-cel-rules — one-shot "000023" stored CEL rule migration (currency -> asset).

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…