diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-06 15:24:04 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-08 16:34:16 -0700 |
| commit | de389d8c8803c3d2fbbf65620695be30fa24754e (patch) | |
| tree | 88740a12432eb641e3e9199cb8dce93e1c32398e /src/WixToolset.Extensibility/Data/ICommandLineCommand.cs | |
| parent | 59e358df2f15d478e5bd9f48e3e0824d8a59d7f4 (diff) | |
| download | wix-de389d8c8803c3d2fbbf65620695be30fa24754e.tar.gz wix-de389d8c8803c3d2fbbf65620695be30fa24754e.tar.bz2 wix-de389d8c8803c3d2fbbf65620695be30fa24754e.zip | |
Add the argument to command command-line processing and add xmldoc
Diffstat (limited to 'src/WixToolset.Extensibility/Data/ICommandLineCommand.cs')
| -rw-r--r-- | src/WixToolset.Extensibility/Data/ICommandLineCommand.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/WixToolset.Extensibility/Data/ICommandLineCommand.cs b/src/WixToolset.Extensibility/Data/ICommandLineCommand.cs index 1c6de205..a0fc9454 100644 --- a/src/WixToolset.Extensibility/Data/ICommandLineCommand.cs +++ b/src/WixToolset.Extensibility/Data/ICommandLineCommand.cs | |||
| @@ -4,14 +4,33 @@ namespace WixToolset.Extensibility.Data | |||
| 4 | { | 4 | { |
| 5 | using WixToolset.Extensibility.Services; | 5 | using WixToolset.Extensibility.Services; |
| 6 | 6 | ||
| 7 | /// <summary> | ||
| 8 | /// Custom command. | ||
| 9 | /// </summary> | ||
| 7 | public interface ICommandLineCommand | 10 | public interface ICommandLineCommand |
| 8 | { | 11 | { |
| 12 | /// <summary> | ||
| 13 | /// Indicates the command-line should show the command-line logo. | ||
| 14 | /// </summary> | ||
| 9 | bool ShowLogo { get; } | 15 | bool ShowLogo { get; } |
| 10 | 16 | ||
| 17 | /// <summary> | ||
| 18 | /// Indicates the command-line parsing can stop. | ||
| 19 | /// </summary> | ||
| 11 | bool StopParsing { get; } | 20 | bool StopParsing { get; } |
| 12 | 21 | ||
| 22 | /// <summary> | ||
| 23 | /// Executes the command. | ||
| 24 | /// </summary> | ||
| 25 | /// <returns>Exit code for the command.</returns> | ||
| 13 | int Execute(); | 26 | int Execute(); |
| 14 | 27 | ||
| 28 | /// <summary> | ||
| 29 | /// Allows the command to parse command-line arguments. | ||
| 30 | /// </summary> | ||
| 31 | /// <param name="parser">Parser to help parse the argument and additional arguments.</param> | ||
| 32 | /// <param name="argument">Argument to parse.</param> | ||
| 33 | /// <returns>True if the argument is recognized; otherwise false to allow another extension to process it.</returns> | ||
| 15 | bool TryParseArgument(ICommandLineParser parser, string argument); | 34 | bool TryParseArgument(ICommandLineParser parser, string argument); |
| 16 | } | 35 | } |
| 17 | } | 36 | } |
