Commit fe1a4ad 1 parent a910e2d commit fe1a4ad Copy full SHA for fe1a4ad
File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ function display_help {
112
112
echo
113
113
echo " ${YELLOW} Binaries:${NC} "
114
114
echo " ${GREEN} sail bin ...${NC} Run Composer binary scripts from the vendor/bin directory"
115
+ echo " ${GREEN} sail run ...${NC} Run a command within the application container"
115
116
echo
116
117
echo " ${YELLOW} Customization:${NC} "
117
118
echo " ${GREEN} sail artisan sail:publish${NC} Publish the Sail configuration files"
@@ -233,6 +234,20 @@ elif [ "$1" == "bin" ]; then
233
234
sail_is_not_running
234
235
fi
235
236
237
+ # Proxy commands on the application container...
238
+ elif [ " $1 " == " run" ]; then
239
+ shift 1
240
+
241
+ if [ " $EXEC " == " yes" ]; then
242
+ CMD=$1
243
+ shift 1
244
+ ARGS+=(exec -u sail)
245
+ [ ! -t 0 ] && ARGS+=(-T)
246
+ ARGS+=(" $APP_SERVICE " " $CMD " )
247
+ else
248
+ sail_is_not_running
249
+ fi
250
+
236
251
# Proxy docker-compose commands to the docker-compose binary on the application container...
237
252
elif [ " $1 " == " docker-compose" ]; then
238
253
shift 1
You can’t perform that action at this time.
0 commit comments