mirror of
https://github.com/MillironX/nfdocs-parser.git
synced 2024-11-24 17:59:54 +00:00
Add comments to parser
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
fc4c536ab6
commit
4f6fc88e40
1 changed files with 5 additions and 0 deletions
|
@ -1,8 +1,13 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
# Take path as single argument for now
|
||||||
nextflow_path = sys.argv[1]
|
nextflow_path = sys.argv[1]
|
||||||
with open(nextflow_path) as nextflow_file:
|
with open(nextflow_path) as nextflow_file:
|
||||||
|
|
||||||
|
# Split by lines
|
||||||
nextflow_lines = nextflow_file.readlines()
|
nextflow_lines = nextflow_file.readlines()
|
||||||
|
|
||||||
|
# Print the first few lines
|
||||||
for i in range(1, 10):
|
for i in range(1, 10):
|
||||||
print(nextflow_lines[i])
|
print(nextflow_lines[i])
|
||||||
|
|
Loading…
Reference in a new issue