diff options
Diffstat (limited to 'src/WixToolset.Extensibility/Services/ICommandLine.cs')
-rw-r--r-- | src/WixToolset.Extensibility/Services/ICommandLine.cs | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/WixToolset.Extensibility/Services/ICommandLine.cs b/src/WixToolset.Extensibility/Services/ICommandLine.cs index 48f3620f..2b841af0 100644 --- a/src/WixToolset.Extensibility/Services/ICommandLine.cs +++ b/src/WixToolset.Extensibility/Services/ICommandLine.cs | |||
@@ -1,15 +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. | 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.Extensibility.Services | 3 | namespace WixToolset.Extensibility.Services |
4 | { | 4 | { |
5 | using WixToolset.Extensibility.Data; | 5 | using WixToolset.Extensibility.Data; |
6 | 6 | ||
7 | /// <summary> | ||
8 | /// Command-line parsing mechanism. | ||
9 | /// </summary> | ||
7 | public interface ICommandLine | 10 | public interface ICommandLine |
8 | { | 11 | { |
9 | IExtensionManager ExtensionManager { get; set; } | 12 | /// <summary> |
13 | /// Simple way to parse arguments and create a command. | ||
14 | /// </summary> | ||
15 | /// <param name="args">Unparsed arguments.</param> | ||
16 | /// <returns>Command if the command-line arguments can be parsed, otherwise null.</returns> | ||
17 | ICommandLineCommand CreateCommand(string[] args); | ||
10 | 18 | ||
11 | ICommandLineArguments Arguments { get; set; } | 19 | /// <summary> |
20 | /// Simple way to parse arguments and create a command. | ||
21 | /// </summary> | ||
22 | /// <param name="commandLine">Unparsed arguments.</param> | ||
23 | /// <returns>Command if the command-line arguments can be parsed, otherwise null.</returns> | ||
24 | ICommandLineCommand CreateCommand(string commandLine); | ||
12 | 25 | ||
13 | ICommandLineCommand ParseStandardCommandLine(); | 26 | /// <summary> |
27 | /// Creates a command from populated arguments. | ||
28 | /// </summary> | ||
29 | /// <param name="arguments">Parsed arguments.</param> | ||
30 | /// <returns>Command if the command-line arguments can be parsed, otherwise null.</returns> | ||
31 | ICommandLineCommand ParseStandardCommandLine(ICommandLineArguments arguments); | ||
14 | } | 32 | } |
15 | } | 33 | } |