write_workflow

function of dascore.workflow.serialize source

write_workflow(
    document: Mapping ,
    path: Path ,
)-> ‘Path’

Write a workflow document to a file, in the format its suffix names.

.yaml and .yml write YAML, .json and a bare name write JSON, and anything else is refused.