Skip to content

Commit f714fa4

Browse files
pRizzclaude
andcommitted
feat(quick-deploy): add IOTP management commands to status banners
When displaying the "already configured" or "setup complete" banners, include an IOTP management section with commands to check bootstrap status and reset the IOTP. Mirrors the helper hints shown by `occ status`, adapted for direct docker exec usage. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 60f1b72 commit f714fa4

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

scripts/quick-deploy.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,14 @@ check_status_and_iotp() {
493493
# Display banners
494494
# ---------------------------------------------------------------------------
495495

496+
display_iotp_management() {
497+
local exec_prefix="docker exec $CONTAINER_NAME"
498+
printf ' %sIOTP management:%s\n' "$COLOR_BOLD" "$COLOR_RESET"
499+
printf ' Check status: %s%s /usr/local/bin/opencode-cloud-bootstrap status%s\n' "$COLOR_CYAN" "$exec_prefix" "$COLOR_RESET"
500+
printf ' Reset IOTP: %s%s /usr/local/bin/opencode-cloud-bootstrap reset%s\n' "$COLOR_CYAN" "$exec_prefix" "$COLOR_RESET"
501+
printf '\n'
502+
}
503+
496504
display_useful_commands() {
497505
printf ' %sUseful commands:%s\n' "$COLOR_BOLD" "$COLOR_RESET"
498506
printf ' View logs: docker logs -f %s\n' "$CONTAINER_NAME"
@@ -540,6 +548,7 @@ display_already_configured() {
540548
printf '\n'
541549
printf ' Open %s%s%s and sign in with your existing credentials.\n' "$COLOR_CYAN" "$SERVICE_URL" "$COLOR_RESET"
542550
printf '\n'
551+
display_iotp_management
543552
display_useful_commands
544553
}
545554

@@ -556,9 +565,7 @@ display_setup_complete() {
556565
printf '\n'
557566
printf ' Open %s%s%s and sign in with your credentials.\n' "$COLOR_CYAN" "$SERVICE_URL" "$COLOR_RESET"
558567
printf '\n'
559-
printf ' To reset and generate a new IOTP:\n'
560-
printf ' docker exec %s /usr/local/bin/opencode-cloud-bootstrap reset\n' "$CONTAINER_NAME"
561-
printf '\n'
568+
display_iotp_management
562569
display_useful_commands
563570
}
564571

0 commit comments

Comments
 (0)