diff --git a/composer.json b/composer.json index 8da4bc1..b849217 100644 --- a/composer.json +++ b/composer.json @@ -8,6 +8,9 @@ "post-install-cmd": [ "taskman\\DotnetSupport::install" ], + "post-update-cmd": [ + "taskman\\DotnetSupport::install" + ], "autoload": { "classmap": ["dotnet.inc.php"] } diff --git a/dotnet.inc.php b/dotnet.inc.php index 9dc4df2..d80037a 100644 --- a/dotnet.inc.php +++ b/dotnet.inc.php @@ -17,6 +17,16 @@ task('dotnet_install', function() { DotnetSupport::install(); }); +function dotnet_shell($cmd) +{ + shell('dotnet ' . $cmd); +} + +function dotnet_shell_get($cmd) +{ + return shell_get('dotnet ' . $cmd); +} + function dotnet_install(string $version) { $has_dotnet = true;