From 717651edbe6d5418a164437b998a0f9852c8dccc Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Mon, 23 Sep 2024 19:05:41 +0300 Subject: [PATCH] Adding convenience shell wrappers and tweaking composer post update cmd --- composer.json | 3 +++ dotnet.inc.php | 10 ++++++++++ 2 files changed, 13 insertions(+) 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;