@@ -64,6 +64,7 @@ _devbase() {
6464 'down:Stop containers (shortcut)'
6565 'login:Login to container (shortcut)'
6666 'build:Build container images'
67+ 'rebuild:Rebuild images without cache (shortcut)'
6768 'ps:Show container status (shortcut)'
6869 'scale:Scale containers online (shortcut)'
6970 'list:List projects (shortcut)'
@@ -78,6 +79,7 @@ _devbase() {
7879 'logs:Show container logs'
7980 'scale:Scale containers online'
8081 'build:Build container images'
82+ 'rebuild:Rebuild images without cache (docker compose build --no-cache)'
8183 'list:List projects (NAME / PLUGIN / STATUS)'
8284 )
8385
@@ -89,6 +91,7 @@ _devbase() {
8991 'logs:Show container logs'
9092 'scale:Scale containers online'
9193 'build:Build container images'
94+ 'rebuild:Rebuild images without cache (docker compose build --no-cache)'
9295 )
9396
9497 env_subcommands=(
@@ -134,8 +137,8 @@ _devbase() {
134137 login)
135138 _values 'index' 1 2
136139 ;;
137- # トップレベルシノニム: up/down/ps/scale は [name] を取るためプロジェクト名を補完。
138- up|down)
140+ # トップレベルシノニム: up/down/ps/scale/rebuild は [name] を取るためプロジェクト名を補完。
141+ up|down|rebuild )
139142 _devbase_project_names
140143 ;;
141144 ps)
@@ -158,7 +161,7 @@ _devbase() {
158161 ;;
159162 project)
160163 case "$words[3]" in
161- up|down)
164+ up|down|rebuild )
162165 _devbase_project_names
163166 ;;
164167 login)
0 commit comments