|
9 | 9 | app.Add<CleanupCommands>(); |
10 | 10 | await app.RunAsync(GoArgs.Normalize(args)); |
11 | 11 |
|
12 | | -/// <summary> |
13 | | -/// Runs a file-based .NET app from a .cs entrypoint. |
14 | | -/// </summary> |
| 12 | +/// <summary>Runs a file-based .NET app from a .cs entrypoint.</summary> |
15 | 13 | /// <param name="input">Path to an existing .cs file or remote ref (owner/repo[@ref][:path]).</param> |
16 | 14 | /// <param name="r2r">Publish with ReadyToRun instead of native AOT; supports more dynamic .NET features while keeping most publish optimizations. </param> |
17 | | -/// <param name="goDebug">Launch debugger before executing.</param> |
| 15 | +/// <param name="gdbg">Launch debugger before executing.</param> |
18 | 16 | /// <param name="extraArgs">Arguments before '--' are passed to 'dotnet publish'; arguments after '--' are forwarded to the published app. Without '--', all extra arguments are forwarded to the published app. |
19 | 17 | /// </param> |
20 | | -static async Task<int> RunAsync([Argument] string input, bool r2r = false, [Hidden] bool goDebug = false, [Argument] params string[] extraArgs) |
| 18 | +static async Task<int> RunAsync([Argument] string input, bool r2r = false, [Hidden] bool gdbg = false, [Argument] params string[] extraArgs) |
21 | 19 | { |
22 | | - if (goDebug) |
| 20 | + if (gdbg) |
23 | 21 | System.Diagnostics.Debugger.Launch(); |
24 | 22 |
|
25 | 23 | var source = await GetEffectiveSourceAsync(input); |
@@ -52,15 +50,13 @@ state.App is not null && |
52 | 50 | return await ExecuteAppAsync(publishDir, () => ProcessRunner.RunAsync(state.App, appArgs)); |
53 | 51 | } |
54 | 52 |
|
55 | | -/// <summary> |
56 | | -/// Deletes cached publish artifacts for a file-based .NET app, or for a remote ref: deletes the bundle and also its associated publish artifacts for every previously-used path recorded in the bundle's ETags/Entry (:path on the ref is ignored). |
57 | | -/// </summary> |
| 53 | +/// <summary>Deletes cached publish artifacts for a file-based .NET app, or for a remote ref.</summary> |
58 | 54 | /// <param name="input">Path to an existing .cs file or remote ref (owner/repo[@ref][:path]).</param> |
59 | 55 | /// <param name="all">Delete cached artifacts for all apps instead.</param> |
60 | | -/// <param name="goDebug">Launch debugger before executing.</param> |
61 | | -static int CleanAsync([Argument] string? input = null, [Hidden] bool all = false, [Hidden] bool goDebug = false) |
| 56 | +/// <param name="gdbg">Launch debugger before executing.</param> |
| 57 | +static int CleanAsync([Argument] string? input = null, bool all = false, [Hidden] bool gdbg = false) |
62 | 58 | { |
63 | | - if (goDebug) |
| 59 | + if (gdbg) |
64 | 60 | System.Diagnostics.Debugger.Launch(); |
65 | 61 |
|
66 | 62 | if (all) |
@@ -144,17 +140,15 @@ static int CleanAsync([Argument] string? input = null, [Hidden] bool all = false |
144 | 140 | return AppCleaner.Clean(pdir, stmp); |
145 | 141 | } |
146 | 142 |
|
147 | | -/// <summary> |
148 | | -/// Runs a file-based .NET app from a .cs entrypoint using dotnet run for fast iteration. |
149 | | -/// </summary> |
| 143 | +/// <summary>Runs a file-based .NET app from a .cs entrypoint using dotnet run for fast iteration.</summary> |
150 | 144 | /// <param name="input">Path to an existing .cs file or remote ref (owner/repo[@ref][:path]).</param> |
151 | 145 | /// <param name="r2r">Accepted for consistency (ignored for dev which uses dotnet run).</param> |
152 | | -/// <param name="goDebug">Launch debugger before executing.</param> |
| 146 | +/// <param name="gdbg">Launch debugger before executing.</param> |
153 | 147 | /// <param name="extraArgs">Arguments before '--' are passed to 'dotnet run'; arguments after '--' are forwarded to the app. Without '--', all extra arguments are forwarded to the app. |
154 | 148 | /// </param> |
155 | | -static async Task<int> DevAsync([Argument] string input, [Hidden] bool r2r = false, [Hidden] bool goDebug = false, [Argument] params string[] extraArgs) |
| 149 | +static async Task<int> DevAsync([Argument] string input, [Hidden] bool r2r = false, [Hidden] bool gdbg = false, [Argument] params string[] extraArgs) |
156 | 150 | { |
157 | | - if (goDebug) |
| 151 | + if (gdbg) |
158 | 152 | System.Diagnostics.Debugger.Launch(); |
159 | 153 |
|
160 | 154 | var source = await GetEffectiveSourceAsync(input); |
|
0 commit comments