mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-10-08 20:41:29 +07:00
Scope binary tools installed using composer
This commit is contained in:
@ -5,7 +5,7 @@ Function Add-ToolsHelper() {
|
||||
$tool
|
||||
)
|
||||
if($tool -eq "codeception") {
|
||||
Copy-Item $composer_bin\codecept.bat -Destination $composer_bin\codeception.bat
|
||||
Copy-Item $codeception_bin\codecept.bat -Destination $codeception_bin\codeception.bat
|
||||
} elseif($tool -eq "composer") {
|
||||
Edit-ComposerConfig $bin_dir\$tool
|
||||
} elseif($tool -eq "cs2pr") {
|
||||
@ -22,7 +22,7 @@ Function Add-ToolsHelper() {
|
||||
Add-ToProfile $current_profile "symfony" "New-Alias symfony $bin_dir\symfony-cli.exe"
|
||||
Add-ToProfile $current_profile "symfony_cli" "New-Alias symfony-cli $bin_dir\symfony-cli.exe"
|
||||
} elseif($tool -match "vapor-cli") {
|
||||
Copy-Item $composer_bin\vapor.bat -Destination $composer_bin\vapor-cli.bat
|
||||
Copy-Item $vapor_cli_bin\vapor.bat -Destination $vapor_cli_bin\vapor-cli.bat
|
||||
} elseif($tool -eq "wp-cli") {
|
||||
Copy-Item $bin_dir\wp-cli.bat -Destination $bin_dir\wp.bat
|
||||
}
|
||||
|
@ -1,7 +1,8 @@
|
||||
add_tools_helper() {
|
||||
tool=$1
|
||||
if [ "$tool" = "codeception" ]; then
|
||||
sudo ln -s "${composer_bin:?}"/codecept "${composer_bin:?}"/codeception
|
||||
codeception_bin=$(grep codeception_bin "${GITHUB_ENV:?}" | cut -d '=' -f 2)
|
||||
sudo ln -s "${codeception_bin:?}"/codecept "${codeception_bin:?}"/codeception
|
||||
elif [ "$tool" = "composer" ]; then
|
||||
configure_composer "${tool_path:?}"
|
||||
elif [ "$tool" = "cs2pr" ]; then
|
||||
|
Reference in New Issue
Block a user