INNER CODE UNIT · Go

main

theopenlane/core · cmd/catalog/main.go:63

func main() {
	if err := catalogApp().Run(context.Background(), os.Args); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}

// catalogApp creates a CLI application for reconciling a catalog with Stripe
func catalogApp() *cli.Command {
	app := &cli.Command{
		Name:  "catalog",
		Usage: "reconcile catalog with Stripe",
		Flags: []cli.Flag{
			&cli.StringFlag{
				Name:  "catalog",
				Usage: "catalog file path",
				Value: "./pkg/catalog/catalog_sandbox.yaml", // set the value to sandbox catalog by default to avoid disasters
			},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…