INNER CODE UNIT · Go
run
theopenlane/core · cmd/catalog/reconcile/main.go:219
func run(ctx context.Context, c *cli.Command) error {
recon, err := createReconcilerWithDB(c)
if err != nil {
return err
}
orgIDs := c.Root().StringSlice("org-ids")
result, err := recon.Reconcile(ctx, orgIDs)
if err != nil {
return err
}
if len(result.Actions) == 0 {
fmt.Println("No organizations require reconciliation actions")
return nil
}