mirror of
https://github.com/MillironX/nfdocs-parser.git
synced 2024-11-24 17:59:54 +00:00
Add regular input/output parsing to parameter parsing function
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
33489aa277
commit
5c1bd1cb14
1 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import sys
|
import sys
|
||||||
import yaml
|
import yaml
|
||||||
|
from docutils import nodes
|
||||||
|
|
||||||
# Declare the docstring starting characters
|
# Declare the docstring starting characters
|
||||||
DOC_STARTER = "/// "
|
DOC_STARTER = "/// "
|
||||||
|
@ -37,8 +38,13 @@ def params_to_list(params):
|
||||||
tuple_item += tuple_list
|
tuple_item += tuple_list
|
||||||
return tuple_item
|
return tuple_item
|
||||||
else:
|
else:
|
||||||
return nodes.list_item(text="not tuple")
|
print(params)
|
||||||
print("not yet implemented")
|
io_item = nodes.list_item()
|
||||||
|
if "name" in params.keys():
|
||||||
|
io_item += nodes.paragraph(text=params["name"])
|
||||||
|
io_item += nodes.paragraph(text=f"Type: {params['type']}")
|
||||||
|
io_item += nodes.paragraph(text=params["description"])
|
||||||
|
return io_item
|
||||||
|
|
||||||
# Take path as single argument for now
|
# Take path as single argument for now
|
||||||
nextflow_path = sys.argv[1]
|
nextflow_path = sys.argv[1]
|
||||||
|
|
Loading…
Reference in a new issue