Skip to content

Commit

Permalink
Update WizardGen.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Mar 11, 2024
1 parent 776ef6e commit 26b4b79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Verify.Tests/Wizard/WizardGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public async Task Run()
repoRoot = Directory.GetParent(solutionDirectory)!.Parent!.FullName;
wizardDir = Path.Combine(repoRoot, "docs", "mdsource", "wiz");
Directory.CreateDirectory(wizardDir);
PurgeDirectory(wizardDir);
//PurgeDirectory(wizardDir);
var wizardRealDir = Path.Combine(repoRoot, "docs", "wiz");
PurgeDirectory(wizardRealDir);
//PurgeDirectory(wizardRealDir);
var sourceFile = Path.Combine(wizardDir, "readme.source.md");
var builder = new StringBuilder(
"""
Expand All @@ -32,6 +32,7 @@ public async Task Run()
await ProcessOs(os, builder);
}

File.Delete(sourceFile);
await File.WriteAllTextAsync(sourceFile, builder.ToString());
Process.Start("mdsnippets", repoRoot);
}
Expand Down

0 comments on commit 26b4b79

Please sign in to comment.