-
-
Notifications
You must be signed in to change notification settings - Fork 336
Open
Labels
RFCRequest for commentsRequest for comments
Milestone
Description
[RFC] 3.0 Updates - Friendly Console
The console output and logger is one of the most important components for SPC tool. But currently we have very green output and many redundant terminal shell outputs.
In 3.0, it will be refactored in several ways:
- Deprecate
--debugcommand, use symfony's original-vand-vvfor outputs. (For backward compatibility, it will be equal to-vvvfor the first major version of SPC) - Separate outputs for 4 levels:
- Normal interactive mode: Which only shows
⚙️ Build configuration:the necessary info for current status with some progress bar. -vmode: It shows build time and INFO level like current version, but with colored `[TIME INFO]-vvmode: It shows all level of PSR logs, but without execution output.-vvvmode: It shows all level of PSR logs, and output all console output for executed commands.
- Normal interactive mode: Which only shows
When using -v mode, the interactive message will be shown as INFO level, and the progress indicator will be disabled.
Example of normal mode displays:
⚙️ Build Configuration:
OS: Darwin (arm64)
...
▶ Downloading artifacts... (90.2s)
▶ Extracting sources... (3.2s)
▶ Building libraries...
✓ libiconv (21.5s)
✓ zlib (1.1s) // finished status
• libxml2 ... (6.6s) // wip status
▶ Configuring PHP... (22.0s)
▶ Compiling PHP... (20.3s)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ BUILD SUCCESSFUL (80.2s)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▶ php-cli binary: /path/to/buildroot/bin/php
▶ License: /path/to/buildroot/license
If you have any question or have better suggestions, please leave comment here with quote.
Metadata
Metadata
Assignees
Labels
RFCRequest for commentsRequest for comments