Add fileshare and web setting on bin/run
This commit is contained in:
parent
baea21807a
commit
ae447a7a60
20
bin/run
20
bin/run
|
@ -1,5 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
FILESHARE=false
|
||||||
|
WEB=false
|
||||||
|
|
||||||
|
while getopts f opt; do
|
||||||
|
case $opt in
|
||||||
|
f) FILESHARE=true ;;
|
||||||
|
w) WEB=true ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
tmux new-session -d -s test
|
tmux new-session -d -s test
|
||||||
tmux send-keys -t test "a serve" Enter
|
tmux send-keys -t test "a serve" Enter
|
||||||
|
|
||||||
|
@ -12,11 +24,11 @@ tmux send-keys -t test "SS start docker && duu socketi" Enter
|
||||||
tmux new-window -t test
|
tmux new-window -t test
|
||||||
tmux send-keys -t test "nrh" Enter
|
tmux send-keys -t test "nrh" Enter
|
||||||
|
|
||||||
tmux new-window -t test
|
$WEB && tmux new-window -t test
|
||||||
tmux send-keys -t test "ggwdk && cd plugins/silva/adrema/assets/vendor/adrema-form && nrd" Enter
|
$WEB && tmux send-keys -t test "ggwdk && cd plugins/silva/adrema/assets/vendor/adrema-form && nrd" Enter
|
||||||
|
|
||||||
tmux new-window -t test
|
$FILESHARE && tmux new-window -t test
|
||||||
tmux send-keys -t test "cd tests/Fileshare && docker compose up" Enter
|
$FILESHARE && tmux send-keys -t test "cd tests/Fileshare && docker compose up" Enter
|
||||||
|
|
||||||
tmux attach-session -t test
|
tmux attach-session -t test
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue