aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/CommandLine/VersionCommand.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2020-06-08 16:25:38 -0700
committerRob Mensching <rob@firegiant.com>2020-06-08 16:37:14 -0700
commit04b8976ca565ce95cf32a58c8725843618724383 (patch)
tree72cf07a394f193a49afcba9bac89647e3b0a0922 /src/WixToolset.Core/CommandLine/VersionCommand.cs
parent3fb889ab7aa3cb0dfae23e0379e28552e919ad72 (diff)
downloadwix-04b8976ca565ce95cf32a58c8725843618724383.tar.gz
wix-04b8976ca565ce95cf32a58c8725843618724383.tar.bz2
wix-04b8976ca565ce95cf32a58c8725843618724383.zip
Make commands async and internal processes cancelable
Diffstat (limited to 'src/WixToolset.Core/CommandLine/VersionCommand.cs')
-rw-r--r--src/WixToolset.Core/CommandLine/VersionCommand.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/WixToolset.Core/CommandLine/VersionCommand.cs b/src/WixToolset.Core/CommandLine/VersionCommand.cs
index 50e90a93..6ce2a89d 100644
--- a/src/WixToolset.Core/CommandLine/VersionCommand.cs
+++ b/src/WixToolset.Core/CommandLine/VersionCommand.cs
@@ -3,6 +3,8 @@
3namespace WixToolset.Core.CommandLine 3namespace 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,12 +14,12 @@ 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 cancellationToken)
16 { 18 {
17 Console.WriteLine("wix version {0}", ThisAssembly.AssemblyInformationalVersion); 19 Console.WriteLine("wix version {0}", ThisAssembly.AssemblyInformationalVersion);
18 Console.WriteLine(); 20 Console.WriteLine();
19 21
20 return 0; 22 return Task.FromResult(0);
21 } 23 }
22 24
23 public bool TryParseArgument(ICommandLineParser parseHelper, string argument) => true; // eat any arguments 25 public bool TryParseArgument(ICommandLineParser parseHelper, string argument) => true; // eat any arguments