Adding convenience shell wrappers and tweaking composer post update cmd
This commit is contained in:
parent
85d6434afe
commit
717651edbe
|
@ -8,6 +8,9 @@
|
|||
"post-install-cmd": [
|
||||
"taskman\\DotnetSupport::install"
|
||||
],
|
||||
"post-update-cmd": [
|
||||
"taskman\\DotnetSupport::install"
|
||||
],
|
||||
"autoload": {
|
||||
"classmap": ["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;
|
||||
|
|
Loading…
Reference in New Issue