| 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 WixToolset.Extensibility.Data; |
| 6 | using WixToolset.Extensibility.Services; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// Base class for extensions to be able to parse the command-line. |
| 10 | /// </summary> |
| 11 | public abstract class BaseExtensionCommandLine : IExtensionCommandLine |
| 12 | { |
| 13 | /// <summary> |
| 14 | /// See <see cref="IExtensionCommandLine.GetCommandLineHelp" /> |
| 15 | /// </summary> |
| 16 | public virtual CommandLineHelp GetCommandLineHelp() |
| 17 | { |
| 18 | return null; |
| 19 | } |
| 20 | |
| 21 | /// <summary> |
| 22 | /// See <see cref="IExtensionCommandLine.PostParse" /> |
| 23 | /// </summary> |
| 24 | public virtual void PostParse() |
| 25 | { |
| 26 | } |
| 27 | |
| 28 | /// <summary> |
| 29 | /// See <see cref="IExtensionCommandLine.PreParse" /> |
| 30 | /// </summary> |
| 31 | public virtual void PreParse(ICommandLineContext context) |
| 32 | { |
| 33 | } |
| 34 | |
| 35 | /// <summary> |
| 36 | /// See <see cref="IExtensionCommandLine.TryParseArgument" /> |
| 37 | /// </summary> |
| 38 | public virtual bool TryParseArgument(ICommandLineParser parser, string argument) |
| 39 | { |
| 40 | return false; |
| 41 | } |
| 42 | |
| 43 | /// <summary> |
| 44 | /// See <see cref="IExtensionCommandLine.TryParseCommand" /> |
| 45 | /// </summary> |
| 46 | public virtual bool TryParseCommand(ICommandLineParser parser, string argument, out ICommandLineCommand command) |
| 47 | { |
| 48 | command = null; |
| 49 | return false; |
| 50 | } |
| 51 | } |
| 52 | } |