GetRecursiveLines only when

StartAt and Destination are supplied
nuget-lower
HelperGenealogicalDataCommunication
This commit is contained in:
2023-08-31 08:31:10 -07:00
parent 096262b2eb
commit 84cda2e57f
7 changed files with 98 additions and 73 deletions

View File

@ -1155,12 +1155,11 @@ internal static partial class HelperMarkdown
relativeToCollection = GetRelativeToCollection(appSettings, input);
logger.LogInformation("{updated} Markdown file(s) were updated", updated);
}
if (!string.IsNullOrEmpty(input.StartAt))
if (!string.IsNullOrEmpty(input.StartAt) && !string.IsNullOrEmpty(input.Destination))
{
relativeToCollection = GetRelativeToCollection(appSettings, input, force: true);
List<MarkdownFileAndLines> markdownFileAndLinesCollection = GetRecursiveLines(appSettings, input, logger, relativeToCollection);
if (!string.IsNullOrEmpty(input.Destination))
Write(input, markdownFileAndLinesCollection);
Write(input, markdownFileAndLinesCollection);
}
string directory = Path.Combine(Environment.CurrentDirectory, ".vscode");
if (!Directory.Exists(directory))