Skip to content

fix(install): suppress banner/tips and improve post-install messages#768

Merged
fengmk2 merged 5 commits intomainfrom
install-feedback
Mar 10, 2026
Merged

fix(install): suppress banner/tips and improve post-install messages#768
fengmk2 merged 5 commits intomainfrom
install-feedback

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Mar 10, 2026

Summary

  • Suppress VITE+ header banner when --silent is passed to vp install
  • Suppress tips (e.g. "Available short aliases") when CI env var is set, since tips are for interactive users
  • Replace vp dev with vp migrate in post-install "Get started" section (dev is a project command, not available after fresh global install)
  • Change "Run vp help for more information" to "Run vp help to see available commands"

Test plan

  • cargo test -p vite_global_cli — 294 passed
  • Verify snap test diffs are correct (banner lines removed from --silent output)
  • CI: install.ps1 on PowerShell 5.1 no longer leaks tips/banner
  • CI: install.sh no longer leaks tips/banner

🤖 Generated with Claude Code

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 10, 2026

Deploy Preview for viteplus-staging canceled.

Name Link
🔨 Latest commit 827eddf
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-staging/deploys/69b04452f6cfea0008cf5e74

@fengmk2 fengmk2 self-assigned this Mar 10, 2026
Copy link
Copy Markdown
Member Author

fengmk2 commented Mar 10, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fengmk2 fengmk2 marked this pull request as ready for review March 10, 2026 15:34
@fengmk2 fengmk2 changed the title fix(install): suppress leaked output and improve post-install messages fix(install): suppress banner/tips and improve post-install messages Mar 10, 2026
fengmk2 added 5 commits March 10, 2026 16:18
Redirect both stdout and stderr from `vp install --silent` during
installation to prevent the VITE+ banner and tip text from leaking.
Replace `vp dev` with `vp migrate` in the get-started section since
dev is a project command unavailable after a fresh global install.
Clarify the help hint to say "to see available commands".
…tput

`| Out-Null 2>&1` doesn't suppress stderr in PowerShell since `2>&1`
is not valid shell redirection syntax there. Use `*>$null` which
redirects all PowerShell output streams (stdout, stderr, verbose, etc.).
`*>$null` is not supported in PowerShell 5.1. Use `2>&1 | Out-Null`
which merges stderr into stdout then discards both, and works across
PS 5.1 and PS 7+.
PowerShell 5.1 with `$ErrorActionPreference = "Stop"` converts native
command stderr output into terminating NativeCommandError exceptions
before the pipe to Out-Null can suppress it. Temporarily set
ErrorActionPreference to SilentlyContinue around the vp install call.
…ecting output

Suppress the VITE+ header when `--silent` is passed to `vp install`,
and suppress tips when `CI` env var is set. This removes the need for
fragile output redirection in install scripts, which was especially
problematic on PowerShell 5.1 where stderr handling differs.
Copy link
Copy Markdown
Member Author

fengmk2 commented Mar 10, 2026

Merge activity

  • Mar 10, 4:18 PM UTC: Graphite rebased this pull request as part of a merge.
  • Mar 10, 4:30 PM UTC: @fengmk2 merged this pull request with Graphite.

@fengmk2 fengmk2 merged commit 3c2c73c into main Mar 10, 2026
29 checks passed
@fengmk2 fengmk2 deleted the install-feedback branch March 10, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants