API reference
Render Click commands from parsed CWL tools.
get_base_command(clt)
Return the executable name from a CWL tool.
| Raises: |
|
|---|
Source code in src/cwl2click/__init__.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | |
get_command_name(clt)
Return the subcommand name, or None when no string name is defined.
Source code in src/cwl2click/__init__.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | |
is_flag(type_)
Indicate whether a CWL type includes a boolean flag.
Source code in src/cwl2click/__init__.py
94 95 96 | |
is_multiple(type_)
Indicate whether a CWL input accepts multiple values.
Source code in src/cwl2click/__init__.py
83 84 85 86 87 88 89 90 91 | |
to_click(command_line_tools, module_name, output_stream, bundle=True)
Write generated Click command source to the supplied output stream.
Source code in src/cwl2click/__init__.py
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | |
to_click_type(type_)
Map a parsed CWL type to a Click parameter type expression.
Source code in src/cwl2click/__init__.py
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | |
to_python_type(type_)
Map a parsed CWL type to its Python type name.
Source code in src/cwl2click/__init__.py
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | |
Plugin registration
Serialize the resolved CWL document to options.output.
Source code in src/cwl2click/plugin.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
Options
Bases: BaseModel
Options accepted by the cwl2click plugin.
Source code in src/cwl2click/plugin.py
33 34 35 36 37 38 39 40 41 42 43 | |