swh.scheduler.cli.origin module#
- swh.scheduler.cli.origin.format_origins(ctx: click.Context, origins: List[ListedOrigin], fields: List[str] | None = None, with_header: bool = True) Iterable[str] [source]#
Format a list of origins as CSV.
- Parameters:
origins – list of origins to output
fields – optional list of fields to output (defaults to all fields)
with_header – if True, output a CSV header.