INNER CODE UNIT · Go

updateCancelBehavior

theopenlane/core · cmd/catalog/reconcile/main.go:253

func updateCancelBehavior(ctx context.Context, c *cli.Command) error {
	recon, err := createReconciler(c)
	if err != nil {
		return err
	}

	orgIDs := c.Root().StringSlice("org-ids")

	result, err := recon.UpdateSubscriptionsCancelBehavior(ctx, orgIDs)
	if err != nil {
		return err
	}

	if len(result.Actions) == 0 {
		fmt.Println("No subscriptions require cancel behavior updates")
		return nil
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…