| 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.BootstrapperApplicationApi |
| 4 | { |
| 5 | using System.Collections.Generic; |
| 6 | |
| 7 | /// <summary> |
| 8 | /// Command information parsed from the command line. |
| 9 | /// </summary> |
| 10 | public interface IMbaCommand |
| 11 | { |
| 12 | /// <summary> |
| 13 | /// Gets the action to perform if a reboot is required. |
| 14 | /// </summary> |
| 15 | Restart Restart { get; } |
| 16 | |
| 17 | /// <summary> |
| 18 | /// The command line arguments not parsed into <see cref="IBootstrapperCommand"/> or <see cref="IMbaCommand"/>. |
| 19 | /// </summary> |
| 20 | string[] UnknownCommandLineArgs { get; } |
| 21 | |
| 22 | /// <summary> |
| 23 | /// The variables that were parsed from the command line. |
| 24 | /// Key = variable name, Value = variable value. |
| 25 | /// </summary> |
| 26 | KeyValuePair<string, string>[] Variables { get; } |
| 27 | |
| 28 | /// <summary> |
| 29 | /// Sets overridable variables from the command line. |
| 30 | /// </summary> |
| 31 | /// <param name="overridableVariables">The overridable variable information from <see cref="IBootstrapperApplicationData"/>.</param> |
| 32 | /// <param name="engine">The engine.</param> |
| 33 | void SetOverridableVariables(IOverridableVariables overridableVariables, IEngine engine); |
| 34 | } |
| 35 | } |