This repository has been archived by the owner on Mar 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(GH-2) Allow changing of requested tool version
Previously, the Module wouldn't check to see what version of a Tool was installed. As a result, when a tool was already installed, even if a newer version was requested, it wouldn't be installed. This is really down to the underlying tool and how it works, but smarts have now been put into the module, to check installed version, against what is requested, so that an uninstall is first executed, and then the requested version is installed.
- Loading branch information
Showing
3 changed files
with
120 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Cake.DotNetTool.Module | ||
{ | ||
public enum DotNetToolOperation | ||
{ | ||
Install, | ||
Uninstall, | ||
Update | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Cake.DotNetTool.Module | ||
{ | ||
public sealed class DotNetToolPackage | ||
{ | ||
public string Id { get; set; } | ||
public string Version { get; set; } | ||
public string ShortCode { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters