Laravel 10.xのartisanの「completion」コマンドを解説します。
Description
シェル補完スクリプトをダンプ。
Usage
php artisan completion [--debug] [--] [<shell>]
Arguments
引数 | 必須 | 説明 |
---|---|---|
shell | - |
Options
オプション | 省略形 | 必須 | 説明 |
---|---|---|---|
debug | - | - |
Example
no options
artisanコマンドに対してタブ補完でコマンドが出るようになります。
動作させるには、gawkやbash-complitionを入れる必要があります。
php artisan completion bash > ~/artisan.sh
. ~/artisan.sh
./artisan <tab><tab>
about down make:event make:test queue:flush schedule:clear-cache
auth:clear-resets env make:exception migrate queue:forget schedule:list
cache:clear env:decrypt make:factory migrate:fresh queue:listen schedule:run
cache:forget env:encrypt make:job migrate:install queue:monitor schedule:test
cache:prune-stale-tags event:cache make:listener migrate:refresh queue:prune-batches schedule:work
cache:table event:clear make:mail migrate:reset queue:prune-failed schema:dump
channel:list event:generate make:middleware migrate:rollback queue:restart serve
clear-compiled event:list make:migration migrate:status queue:retry session:table
completion help make:model model:prune queue:retry-batch storage:link
config:cache inspire make:notification model:show queue:table stub:publish
config:clear key:generate make:observer notifications:table queue:work test
db lang:publish make:policy optimize route:cache tinker
db:monitor list make:provider optimize:clear route:clear up
db:seed make:cast make:request package:discover route:list vendor:publish
--More--
コメント