Skip to content

Commit 3fd5f2c

Browse files
committed
docs: add function docstrings for CodeRabbit coverage threshold
Add shell-style doc comments to all four bash functions (fix_openclaw_config, write_auth_profile, print_dashboard_urls, start_auto_pair) to meet the 80% docstring coverage requirement. Signed-off-by: Brian Taylor <[email protected]>
1 parent 48dc538 commit 3fd5f2c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎scripts/nemoclaw-start.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ NEMOCLAW_CMD=("$@")
1717
CHAT_UI_URL="${CHAT_UI_URL:-http://127.0.0.1:18789}"
1818
PUBLIC_PORT=18789
1919

20+
# Patch the OpenClaw JSON config with sandbox-safe gateway defaults.
2021
fix_openclaw_config() {
2122
python3 - <<'PYCFG'
2223
import json
@@ -57,6 +58,7 @@ os.chmod(config_path, 0o600)
5758
PYCFG
5859
}
5960

61+
# Write an NVIDIA auth-profile if NVIDIA_API_KEY is set.
6062
write_auth_profile() {
6163
if [ -z "${NVIDIA_API_KEY:-}" ]; then
6264
return
@@ -79,6 +81,7 @@ os.chmod(path, 0o600)
7981
PYAUTH
8082
}
8183

84+
# Print the local and remote dashboard URLs, appending the auth token if present.
8285
print_dashboard_urls() {
8386
local token chat_ui_base local_url remote_url
8487

@@ -107,6 +110,7 @@ PYTOKEN
107110
echo "[gateway] Remote UI: ${remote_url}"
108111
}
109112

113+
# Launch a background watcher that auto-approves pending device-pair requests.
110114
start_auto_pair() {
111115
case "${NEMOCLAW_SKIP_AUTO_PAIR:-}" in
112116
1|true|yes|TRUE|YES)

0 commit comments

Comments
 (0)