@joebigelow / wix-1 / commits / fbf986eb

Rename ICommand to ICommandLineCommand

Removes conflicts with existing ICommand. More refactoring coming.

Rob Mensching committed Oct 7, 2017 at 15:07 UTC fbf986eb97f68396797a89fc7d40dec07b775440
6 files changed +7 -7
src/WixToolset.Core/CommandLine/BuildCommand.cs
+1 -1
@@ -9,7 +9,7 @@ namespace WixToolset.Core
9 using WixToolset.Data;
10 using WixToolset.Extensibility;
11
12 - internal class BuildCommand : ICommand
12 + internal class BuildCommand : ICommandLineCommand
13 {
14 public BuildCommand(ExtensionManager extensions, IEnumerable<SourceFile> sources, IDictionary<string, string> preprocessorVariables, IEnumerable<string> locFiles, IEnumerable<string> libraryFiles, string outputPath, OutputType outputType, IEnumerable<string> cultures, bool bindFiles, IEnumerable<BindPath> bindPaths, string intermediateFolder, string contentsFile, string outputsFile, string builtOutputsFile, string wixProjectFile)
15 {
src/WixToolset.Core/CommandLine/CommandLine.cs
+2 -2
@@ -41,14 +41,14 @@ namespace WixToolset.Core
41
42 public bool ShowHelp { get; set; }
43
44 - public static ICommand ParseStandardCommandLine(string commandLineString)
44 + public static ICommandLineCommand ParseStandardCommandLine(string commandLineString)
45 {
46 var args = CommandLine.ParseArgumentsToArray(commandLineString).ToArray();
47
48 return ParseStandardCommandLine(args);
49 }
50
51 - public static ICommand ParseStandardCommandLine(string[] args)
51 + public static ICommandLineCommand ParseStandardCommandLine(string[] args)
52 {
53 var next = String.Empty;
54
src/WixToolset.Core/CommandLine/CompileCommand.cs
+1 -1
@@ -6,7 +6,7 @@ namespace WixToolset.Core
6 using System.Collections.Generic;
7 using WixToolset.Data;
8
9 - internal class CompileCommand : ICommand
9 + internal class CompileCommand : ICommandLineCommand
10 {
11 public CompileCommand(IEnumerable<SourceFile> sources, IDictionary<string, string> preprocessorVariables)
12 {
src/WixToolset.Core/CommandLine/HelpCommand.cs
+1 -1
@@ -4,7 +4,7 @@ namespace WixToolset.Core
4 {
5 using System;
6
7 - internal class HelpCommand : ICommand
7 + internal class HelpCommand : ICommandLineCommand
8 {
9 public HelpCommand(Commands command)
10 {
src/WixToolset.Core/CommandLine/ICommandLineCommand.cs renamed
+1 -1
@@ -2,7 +2,7 @@
2
3 namespace WixToolset.Core
4 {
5 - public interface ICommand
5 + public interface ICommandLineCommand
6 {
7 int Execute();
8 }
src/WixToolset.Core/CommandLine/VersionCommand.cs
+1 -1
@@ -4,7 +4,7 @@ using System;
4
5 namespace WixToolset.Core
6 {
7 - internal class VersionCommand : ICommand
7 + internal class VersionCommand : ICommandLineCommand
8 {
9 public int Execute()
10 {