Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e438e7

Browse files
committed
Amen PR comment, name the padding
1 parent5fd8657 commit3e438e7

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
forifacein"${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
forifacein"${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)

[8]ページ先頭

©2009-2025 Movatter.jp