You've already forked pathsd
Support for comments
This commit is contained in:
@@ -52,6 +52,7 @@ proc readPart(path: Path): seq[string] =
|
|||||||
try:
|
try:
|
||||||
var line: string = readLine(pathFile)
|
var line: string = readLine(pathFile)
|
||||||
while line != "":
|
while line != "":
|
||||||
|
if line.startsWith("#") == false:
|
||||||
result.add(line)
|
result.add(line)
|
||||||
line = readLine(pathFile)
|
line = readLine(pathFile)
|
||||||
except EOFError as exception:
|
except EOFError as exception:
|
||||||
|
|||||||
1
tests/fixtures/paths.d/01-bilbo
vendored
1
tests/fixtures/paths.d/01-bilbo
vendored
@@ -1 +1,2 @@
|
|||||||
/Users/bilbo/opt/bin
|
/Users/bilbo/opt/bin
|
||||||
|
#/Users/bilbo/.local/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user