Skip to content

Commit f2bdce1

Browse files
committed
chore: add alias helper to develop.sh
1 parent 77fd34b commit f2bdce1

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

scripts/develop.sh

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -181,21 +181,22 @@ fatal() {
181181
fi
182182

183183
# Space padding used after the URLs to align "==".
184-
space_padding=26
185-
log
186-
log "===================================================================="
187-
log "== =="
188-
log "== Coder is now running in development mode. =="
189-
for iface in "${interfaces[@]}"; do
190-
log "$(printf "== API: http://%s:3000%$((space_padding - ${#iface}))s==" "$iface" "")"
191-
done
192-
for iface in "${interfaces[@]}"; do
193-
log "$(printf "== Web UI: http://%s:8080%$((space_padding - ${#iface}))s==" "$iface" "")"
194-
done
195-
log "== =="
196-
log "== Use ./scripts/coder-dev.sh to talk to this instance! =="
197-
log "===================================================================="
198-
log
184+
space_padding=26
185+
log
186+
log "===================================================================="
187+
log "== =="
188+
log "== Coder is now running in development mode. =="
189+
for iface in "${interfaces[@]}"; do
190+
log "$(printf "== API: http://%s:3000%$((space_padding - ${#iface}))s==" "$iface" "")"
191+
done
192+
for iface in "${interfaces[@]}"; do
193+
log "$(printf "== Web UI: http://%s:8080%$((space_padding - ${#iface}))s==" "$iface" "")"
194+
done
195+
log "== =="
196+
log "== Use ./scripts/coder-dev.sh to talk to this instance! =="
197+
log "$(printf "== alias coder=%s/scripts/coder-dev.sh%$((space_padding - ${#PWD} - 2))s==" "$PWD" "")"
198+
log "===================================================================="
199+
log
199200

200201
# Wait for both frontend and backend to exit.
201202
wait_cmds

0 commit comments

Comments
 (0)