migrate_iris
cli.migrate_iris
tvbo migrate-iris — rewrite the curated-record IRIs specs name into their tvbo:<folder>/<file stem> form.
Functions
| Name | Description |
|---|---|
| migrate_iris | Rewrite every singular-scope (tvbo:observation/bold_tvb) and unscoped (tvbo:Linear) curated-record IRI under paths. |
migrate_iris
cli.migrate_iris.migrate_iris(
paths=typer.Argument(..., exists=True, help='YAML, Markdown or Quarto files, or directories to search for them.'),
check=typer.Option(False, '--check', help='Report what would change and exit 1 if anything would, writing nothing.'),
)Rewrite every singular-scope (tvbo:observation/bold_tvb) and unscoped (tvbo:Linear) curated-record IRI under paths.
Each rewrite is printed as path:line: old -> new, and each IRI that names a curated record but could not be placed as path:line: old: reason, for a person to settle by hand. YAML blocks a page fences that do not parse are reported and left alone.