voidzero-dev / voidzero-dev/vite-plus

vp run: add --silent option like npm/pnpm/yarn/bun/etc.

Offen
#1,768 2 Kommentare 1 Reaktion 1 zugewiesene Person Beansprucht von @zmwangx Auf GitHub ansehen
contribution welcome enhancement good first issue
Vorherrschende Sprache
Rust
Sterne
5.8k
Forks
261
Ø Merge
1 T. 34 Min.
Gemergte PRs (30 T.)
135

Beschreibung

### Description

Currently `vp run` doesn't seem to have a way to suppress the script command line and other vp diagnostic info, e.g.

```console
$ vp run --cache check
~/cmd/admin-web$ vp check ◉ cache hit, replaying
pass: All 162 files are correctly formatted (331ms, 14 threads)
pass: Found no warnings, lint errors, or type errors in 77 files (1.4s, 14 threads)

---
vp run: cache hit, 1.96s saved.
```

The command line and diagnostics info is sometimes pure noise and in agentic settings only waste tokens when shown repeatedly in verification gates.

Other major JS toolchains all have `--silent` option in their `run` command, but AFAICT `vp run` only has `--verbose` adding more output, not less.

### Suggested solution

Simply add a `-s, --silent` option like other toolchains (npm/pnpm/yarn/bun/etc.):

```console
$ vp run --silent --cache check
pass: All 162 files are correctly formatted (331ms, 14 threads)
pass: Found no warnings, lint errors, or type errors in 77 files (1.4s, 14 threads)
```

### Alternative

_No response_

### Additional context

_No response_

### Validations

- [x] Read the [Contributing Guidelines](https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md).
- [x] Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- [x] Check that there isn't already an issue requesting the same feature.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.