diff options
Diffstat (limited to 'src/WixToolset.Extensibility/BaseExtensionCommandLine.cs')
| -rw-r--r-- | src/WixToolset.Extensibility/BaseExtensionCommandLine.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/WixToolset.Extensibility/BaseExtensionCommandLine.cs b/src/WixToolset.Extensibility/BaseExtensionCommandLine.cs new file mode 100644 index 00000000..77e8a5bd --- /dev/null +++ b/src/WixToolset.Extensibility/BaseExtensionCommandLine.cs | |||
| @@ -0,0 +1,33 @@ | |||
| 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 | |||
| 3 | namespace WixToolset.Extensibility | ||
| 4 | { | ||
| 5 | using System.Collections.Generic; | ||
| 6 | using System.Linq; | ||
| 7 | using WixToolset.Extensibility.Data; | ||
| 8 | using WixToolset.Extensibility.Services; | ||
| 9 | |||
| 10 | public abstract class BaseExtensionCommandLine : IExtensionCommandLine | ||
| 11 | { | ||
| 12 | public IEnumerable<ExtensionCommandLineSwitch> CommandLineSwitches => Enumerable.Empty<ExtensionCommandLineSwitch>(); | ||
| 13 | |||
| 14 | public virtual void PostParse() | ||
| 15 | { | ||
| 16 | } | ||
| 17 | |||
| 18 | public virtual void PreParse(ICommandLineContext context) | ||
| 19 | { | ||
| 20 | } | ||
| 21 | |||
| 22 | public virtual bool TryParseArgument(ICommandLineParser parser, string argument) | ||
| 23 | { | ||
| 24 | return false; | ||
| 25 | } | ||
| 26 | |||
| 27 | public virtual bool TryParseCommand(ICommandLineParser parser, out ICommandLineCommand command) | ||
| 28 | { | ||
| 29 | command = null; | ||
| 30 | return false; | ||
| 31 | } | ||
| 32 | } | ||
| 33 | } | ||
