API reference¶
The installed entry point is cwl2inputs.plugin:cwl2inputs in the
transpiler_mate.plugins group.
| Option | Type | Default | Meaning |
|---|---|---|---|
output / --output |
Path |
inputs.yaml |
Destination YAML file. |
Unknown options are rejected. generate_template(context) returns YAML text;
cwl2inputs.execute(context, options) writes it. Both require a selected process.
The plugin wraps generation and output failures as PluginExecutionError with
the original exception as its cause. Selection errors use the runtime's message.
Generate a YAML input template for the runtime-selected CWL process.
CWL2InputsOptions
¶
Bases: BaseModel
Output options for input template generation.
Source code in src/cwl2inputs/plugin.py
39 40 41 42 43 44 | |
cwl2inputs(context, options)
¶
Write a template, preserving cwltool's defaults and placeholder comments.
Source code in src/cwl2inputs/plugin.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
generate_template(context)
¶
Render cwltool's template from the resolved graph and selected process.
An explicit source fragment is required, following the runtime's
resolved_process contract. No workflow or container is executed.
Source code in src/cwl2inputs/plugin.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |