yuuan
Follow
Pinned Loading
-
Zsh で Laravel の artisan コマンドを補完
Zsh で Laravel の artisan コマンドを補完 1#compdef artisan
23function __older_than_laravel54() {
4local version=$(cat composer.lock | jq '.packages[] | select(.name == "laravel/framework").version')
5echo $version | grep -e 'v5\.[0-3]\.' &> /dev/null
-
Zsh で composer コマンドを補完
Zsh で composer コマンドを補完 1#compdef composer
23function __composer_get_command_list() {
4if which composer &> /dev/null && which perl &> /dev/null; then
5composer list --raw | perl -pe 's/:/\\:/g;s/([a-z\\:-]+)(?:\s+(.*))?/$1:$2/ig;'
-
-
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.