Skip to content

Commit 5719656

Browse files
committed
(new-cli) - add notes for dotnet-suggest
1 parent 51cc5a1 commit 5719656

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

new-cli/GitVersion.Cli/GitVersionApp.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ public Task<int> RunAsync(string[] args) =>
2020
EnrichLogger(context);
2121
await next(context);
2222
})
23-
.UseDefaults()
23+
.UseDefaults() // this will also register for dotnet-suggest
2424
.Build()
2525
.InvokeAsync(args);
2626

27+
// Note: there are 2 locations to watch for dotnet-suggest
28+
// - sentinel file: $env:TEMP\system-commandline-sentinel-files\ and
29+
// - registration file: $env:LOCALAPPDATA\.dotnet-suggest-registration.txt
30+
2731
private static void EnrichLogger(InvocationContext context)
2832
{
2933
Option<T>? GetOption<T>(string alias)

0 commit comments

Comments
 (0)