collective.transmute.commands#
The collective.transmute.commands module provides the following interfaces.
collective.transmute.commands.info#
collective.transmute.commands.report#
- collective.transmute.commands.report._create_state(app_layout: ApplicationLayout, files: Iterator) ReportState[source]#
Initialize a ReportState object.
- collective.transmute.commands.report.report(src: ~typing.Annotated[~pathlib.Path, <typer.models.ArgumentInfo object at 0x7f4d6176e930>], dst: ~typing.Annotated[~pathlib.Path | None, <typer.models.ArgumentInfo object at 0x7f4d6176e960>] = None, report_types_: ~typing.Annotated[str, <typer.models.OptionInfo object at 0x7f4d6176e9f0>] = '')[source]#
Generates a JSON file with a report of export data in src directory.
collective.transmute.commands.sanity#
collective.transmute.commands.settings#
- collective.transmute.commands.settings.dump_settings(settings: TransmuteSettings) str[source]#
Dump settings as TOML string.
collective.transmute.commands.transmute#
- collective.transmute.commands.transmute._create_state(app_layout: ApplicationLayout, total: int, metadata: MetadataInfo | None = None, write_report: bool = True) PipelineState[source]#
Initialize a PipelineState object.
- collective.transmute.commands.transmute.run(ctx: ~typer.models.Context, src: ~typing.Annotated[~pathlib.Path, <typer.models.ArgumentInfo object at 0x7f4d6176f410>], dst: ~typing.Annotated[~pathlib.Path, <typer.models.ArgumentInfo object at 0x7f4d6176f4a0>], write_report: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f4d6176f530>] = False, clean_up: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f4d6176f5c0>] = False, ui: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f4d6176f680>] = True)[source]#
Transmutes data from
srcfolder (incollective.exportimportformat) toplone.exportimportformat in thedstfolder.