protected boolean canProceed()

in iceberg-catalog-migrator/cli/src/main/java/org/apache/polaris/iceberg/catalog/migrator/cli/RegisterCommand.java [55:77]


  protected boolean canProceed(Catalog sourceCatalog) {
    consoleLog.warn(
        "{}"
            + "\ta) Executing catalog migration when the source catalog has some in-progress commits "
            + "{}\tcan lead to a data loss as the in-progress commits will not be considered for migration. "
            + "{}\tSo, while using this tool please make sure there are no in-progress commits for the source "
            + "catalog.{}"
            + "{}"
            + "\tb) After the registration, successfully registered tables will be present in both source and target "
            + "catalog. "
            + "{}\tHaving the same metadata.json registered in more than one catalog can lead to missing updates, "
            + "loss of data, and table corruption. "
            + "{}\tUse `migrate` command to automatically delete the table from source catalog after "
            + "migration.",
        newLine,
        newLine,
        newLine,
        newLine,
        newLine,
        newLine,
        newLine);
    return proceed();
  }