From 1f1d0a4d9fa087e03264e25a12e27c6684b45d03 Mon Sep 17 00:00:00 2001 From: "Dylan R. E. Moonfire" Date: Mon, 29 Nov 2021 22:46:03 -0600 Subject: [PATCH] feat: provide the names via the tool builder BREAKING CHANGE: Changed the API. --- CHANGELOG.md | 2 +- src/MfGames.ToolBuilder/FakedRootCommand.cs | 2 +- src/MfGames.ToolBuilder/ToolService.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca48e2c..3c538aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ### Bug Fixes -* switch from RootCommand to Command to handle stripped executables ([e5e8777](https://gitlab.com/mfgames-cil/mfgames-toolbuilder-cil/commit/e5e87770f9cab293befb40a21bfef6d52022224b)) +* switch from RootCommand to FakedRootCommand to handle stripped executables ([e5e8777](https://gitlab.com/mfgames-cil/mfgames-toolbuilder-cil/commit/e5e87770f9cab293befb40a21bfef6d52022224b)) ## [1.0.2](https://gitlab.com/mfgames-cil/mfgames-toolbuilder-cil/compare/v1.0.1...v1.0.2) (2021-09-12) diff --git a/src/MfGames.ToolBuilder/FakedRootCommand.cs b/src/MfGames.ToolBuilder/FakedRootCommand.cs index 6cfdac8..a51dc5c 100644 --- a/src/MfGames.ToolBuilder/FakedRootCommand.cs +++ b/src/MfGames.ToolBuilder/FakedRootCommand.cs @@ -18,7 +18,7 @@ namespace MfGames.ToolBuilder { } - public string[] GetArguments() + public static string[] GetArguments() { string[] args = Environment.GetCommandLineArgs(); diff --git a/src/MfGames.ToolBuilder/ToolService.cs b/src/MfGames.ToolBuilder/ToolService.cs index 1630ba5..44cb8dd 100644 --- a/src/MfGames.ToolBuilder/ToolService.cs +++ b/src/MfGames.ToolBuilder/ToolService.cs @@ -127,7 +127,7 @@ namespace MfGames.ToolBuilder { // Build the command tree. FakedRootCommand root = this.CreateRootCommand(); - string[] args = root.GetArguments(); + string[] args = FakedRootCommand.GetArguments(); // Execute the command. this.logger.Verbose(