From 00cdfdc811dd73d7e8962d1fbb86730c6c43cc55 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Sat, 9 Oct 2021 02:03:24 -0700 Subject: [PATCH] feat: Allow adding comments within the outputed text for a deployment --- src/util.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util.nim b/src/util.nim index 8631744..7a43152 100755 --- a/src/util.nim +++ b/src/util.nim @@ -96,6 +96,9 @@ proc getDotfileList*(options: Options): seq[array[2, string]] = var dotfiles = newSeq[array[2, string]]() for line in filter(cmdResult.output.split('\n'), proc(line: string): bool = not isEmptyOrWhitespace(line)): + if line[0] == '#': + continue + let lineParts = line.split(':') if len(lineParts) < 1: die fmt"Line '{line}' must have one colon, but none were found"