mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 06:23:17 -10:00
A global -v/--verbose (persistent on the root, the only one with --help): each line the run log gets, numbered steps, the redacted command lines and the commands' output, also goes to stderr as it's written, without control characters (a C1 control split across writes too) and dim where stderr is colored, with no status line. The run log is still written. A logged failure while verbose names the log (log_details) instead of printing its end again. DEVVM_VERBOSE is gone. ui: SetVerbose; stream (printable, dim) and logTo tee LoggedCmd's and LogWriter's output; a streamed command's pipe gets WaitDelay (streamWait, 2s) so a process it leaves running can't hold devvm, and ErrWaitDelay alone isn't a failure. --version stays root-only, and version.txtar checks -v isn't it. Tests: TestStreamIsPrintable, TestDieLoggedVerbose, the logged-command and status tests; build.txtar streams a build with -v. Docs: troubleshooting (A command fails), settings (colors, environment), commands (Flags and values), contributing (styles); CLI reference. Co-Authored-By: Claude Opus 5.5 <[email protected]>
19 lines
419 B
Plaintext
19 lines
419 B
Plaintext
# devvm --version prints the version alone, and devvm version the same.
|
|
exec devvm --version
|
|
stdout '^(\(devel\)|[0-9]\S*)$'
|
|
! stdout '\n.'
|
|
! stderr .
|
|
cp stdout version.txt
|
|
exec devvm version
|
|
cmp stdout version.txt
|
|
! stderr .
|
|
|
|
# Neither reaches up, whatever else is given.
|
|
exec devvm --version node
|
|
cmp stdout version.txt
|
|
! stub_calls
|
|
|
|
# -v is --verbose, never --version.
|
|
exec devvm -v --version
|
|
cmp stdout version.txt
|