diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-08 16:25:38 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-08 16:37:14 -0700 |
| commit | 04b8976ca565ce95cf32a58c8725843618724383 (patch) | |
| tree | 72cf07a394f193a49afcba9bac89647e3b0a0922 /src/WixToolset.Core/CommandLine/HelpCommand.cs | |
| parent | 3fb889ab7aa3cb0dfae23e0379e28552e919ad72 (diff) | |
| download | wix-04b8976ca565ce95cf32a58c8725843618724383.tar.gz wix-04b8976ca565ce95cf32a58c8725843618724383.tar.bz2 wix-04b8976ca565ce95cf32a58c8725843618724383.zip | |
Make commands async and internal processes cancelable
Diffstat (limited to 'src/WixToolset.Core/CommandLine/HelpCommand.cs')
| -rw-r--r-- | src/WixToolset.Core/CommandLine/HelpCommand.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/WixToolset.Core/CommandLine/HelpCommand.cs b/src/WixToolset.Core/CommandLine/HelpCommand.cs index 224b154c..78845189 100644 --- a/src/WixToolset.Core/CommandLine/HelpCommand.cs +++ b/src/WixToolset.Core/CommandLine/HelpCommand.cs | |||
| @@ -1,8 +1,10 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | 2 | ||
| 3 | namespace WixToolset.Core.CommandLine | 3 | namespace WixToolset.Core.CommandLine |
| 4 | { | 4 | { |
| 5 | using System; | 5 | using System; |
| 6 | using System.Threading; | ||
| 7 | using System.Threading.Tasks; | ||
| 6 | using WixToolset.Extensibility.Data; | 8 | using WixToolset.Extensibility.Data; |
| 7 | using WixToolset.Extensibility.Services; | 9 | using WixToolset.Extensibility.Services; |
| 8 | 10 | ||
| @@ -12,11 +14,11 @@ namespace WixToolset.Core.CommandLine | |||
| 12 | 14 | ||
| 13 | public bool StopParsing => true; | 15 | public bool StopParsing => true; |
| 14 | 16 | ||
| 15 | public int Execute() | 17 | public Task<int> ExecuteAsync(CancellationToken _) |
| 16 | { | 18 | { |
| 17 | Console.WriteLine("TODO: Show list of available commands"); | 19 | Console.WriteLine("TODO: Show list of available commands"); |
| 18 | 20 | ||
| 19 | return -1; | 21 | return Task.FromResult(-1); |
| 20 | } | 22 | } |
| 21 | 23 | ||
| 22 | public bool TryParseArgument(ICommandLineParser parseHelper, string argument) | 24 | public bool TryParseArgument(ICommandLineParser parseHelper, string argument) |
