From 371889d244a7a80c45d609a0bd6b5b0bc39e8315 Mon Sep 17 00:00:00 2001 From: UtkarshBhardwaj007 Date: Mon, 1 Jun 2026 12:33:00 +0100 Subject: [PATCH] chore: refine post-install next-step prompt Surface a single canonical command (playground init) and note the pg alias once on a dimmed tip line, instead of presenting playground init and pg init as co-equal commands followed by a "both work the same" line. Mirrors the npm/gh/cargo convention. Also drops the alias parenthetical from the dependency-setup failure message. --- .changeset/clean-install-next-step.md | 5 +++++ install.sh | 18 ++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 .changeset/clean-install-next-step.md diff --git a/.changeset/clean-install-next-step.md b/.changeset/clean-install-next-step.md new file mode 100644 index 0000000..84e0c8f --- /dev/null +++ b/.changeset/clean-install-next-step.md @@ -0,0 +1,5 @@ +--- +"playground-cli": patch +--- + +Refine the post-install prompt: the "next step" box now surfaces a single canonical command (`playground init`) and notes the `pg` alias once on a dimmed tip line, instead of presenting `playground init` and `pg init` as co-equal commands with a "both work the same" line. diff --git a/install.sh b/install.sh index e553208..93acaf8 100755 --- a/install.sh +++ b/install.sh @@ -85,18 +85,20 @@ echo -e "$CMD is ready! Setting up dependencies…" echo "" if ! "$INSTALL_DIR/bin/$CMD" init --yes; then INIT_EXIT=$? - echo -e "\n\033[33mDependency setup failed. Run \033[1m$CMD init\033[0;33m (or \033[1m$ALIAS init\033[0;33m) when ready.\033[0m" >&2 + echo -e "\n\033[33mDependency setup failed. Run \033[1m$CMD init\033[0;33m when ready.\033[0m" >&2 exit "$INIT_EXIT" fi # Final "what to run next" prompt, styled to match the yellow rounded-border # Callout the TUI uses for phone-signing notifications (see # src/utils/ui/theme/Callout.tsx). Mirrored in bash so it shows the moment the -# curl install finishes. -Y='\033[33m'; B='\033[1m'; R='\033[0m' +# curl install finishes. Like npm/gh/cargo, we surface a single canonical +# command and note the alias once, dimmed — not two commands billed as equals. +Y='\033[33m'; B='\033[1m'; D='\033[2m'; R='\033[0m' echo "" -echo -e "${Y}╭─ ${B}next step${R}${Y} ──────────────────────────────╮${R}" -echo -e "${Y}│${R} Run ${B}$CMD init${R} or ${B}$ALIAS init${R} to log in ${Y}│${R}" -echo -e "${Y}│${R} with the Polkadot mobile app. ${Y}│${R}" -echo -e "${Y}│${R} Both commands work the same. ${Y}│${R}" -echo -e "${Y}╰──────────────────────────────────────────╯${R}" +echo -e "${Y}╭─ ${B}Next step${R}${Y} ────────────────────────────╮${R}" +echo -e "${Y}│${R} Log in with the Polkadot mobile app: ${Y}│${R}" +echo -e "${Y}│${R} ${Y}│${R}" +echo -e "${Y}│${R} ${B}$CMD init${R} ${Y}│${R}" +echo -e "${Y}╰────────────────────────────────────────╯${R}" +echo -e "${D} Tip: ${ALIAS} is a short alias for ${CMD}.${R}"