Commit 087d166 1 parent b69e7bc commit 087d166 Copy full SHA for 087d166
File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ function display_help {
82
82
echo " ${YELLOW} Running Tests:${NC} "
83
83
echo " ${GREEN} sail test${NC} Run the PHPUnit tests via the Artisan test command"
84
84
echo " ${GREEN} sail phpunit ...${NC} Run PHPUnit"
85
+ echo " ${GREEN} sail pint ...${NC} Run Pint"
85
86
echo " ${GREEN} sail dusk${NC} Run the Dusk tests (Requires the laravel/dusk package)"
86
87
echo " ${GREEN} sail dusk:fails${NC} Re-run previously failed Dusk tests (Requires the laravel/dusk package)"
87
88
echo
@@ -284,6 +285,18 @@ elif [ "$1" == "phpunit" ]; then
284
285
sail_is_not_running
285
286
fi
286
287
288
+ # Proxy the "pint" command to "php vendor/bin/pint"...
289
+ elif [ " $1 " == " pint" ]; then
290
+ shift 1
291
+
292
+ if [ " $EXEC " == " yes" ]; then
293
+ ARGS+=(exec -u sail)
294
+ [ ! -t 0 ] && ARGS+=(-T)
295
+ ARGS+=(" $APP_SERVICE " php vendor/bin/pint " $@ " )
296
+ else
297
+ sail_is_not_running
298
+ fi
299
+
287
300
# Proxy the "dusk" command to the "php artisan dusk" Artisan command...
288
301
elif [ " $1 " == " dusk" ]; then
289
302
shift 1
You can’t perform that action at this time.
0 commit comments