Skip to content

Commit 3e438e7

Browse files
committed
Amen PR comment, name the padding
1 parent 5fd8657 commit 3e438e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/develop.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,17 @@ CODER_DEV_SHIM="${PROJECT_ROOT}/scripts/coder-dev.sh"
118118
interfaces+=($(ifconfig | awk '/inet / {print $2}'))
119119
fi
120120

121+
# Space padding used after the URLs to align "==".
122+
space_padding=26
121123
log
122124
log "===================================================================="
123125
log "== =="
124126
log "== Coder is now running in development mode. =="
125127
for iface in "${interfaces[@]}"; do
126-
log "$(printf "== API: http://%s:3000%$((26 - ${#iface}))s==" "$iface" "")"
128+
log "$(printf "== API: http://%s:3000%$((space_padding - ${#iface}))s==" "$iface" "")"
127129
done
128130
for iface in "${interfaces[@]}"; do
129-
log "$(printf "== Web UI: http://%s:8080%$((26 - ${#iface}))s==" "$iface" "")"
131+
log "$(printf "== Web UI: http://%s:8080%$((space_padding - ${#iface}))s==" "$iface" "")"
130132
done
131133
log "== =="
132134
log "== Use ./scripts/coder-dev.sh to talk to this instance! =="

0 commit comments

Comments
 (0)