Skip to content

Commit

Permalink
feat: at command
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante committed Dec 4, 2023
1 parent c9ac181 commit 0cd14cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ composer() {
server() {
port=${1:-80}
dir=${2:-.}
run "-p$port:$port" php -S 0.0.0.0:"$port" -t "$dir"
at "$port" php -S 0.0.0.0:"$port" -t "$dir"
}

at() {
port=${1:-80}
# shellcheck disable=SC2068
run "-it -p$port:$port" ${@:2}
}

0 comments on commit 0cd14cf

Please sign in to comment.