Skip to content

Tui fixed - #3

Merged
VinayIN merged 2 commits into
mainfrom
tui-fix
Jul 15, 2026
Merged

VinayIN merged 2 commits into
mainfrom
tui-fix

Conversation

@VinayIN

@VinayIN VinayIN commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

This pull request refactors how user-facing messages are handled across the CLI, compiler, deploy, and doctor modules. It replaces the previous custom styled/Style formatting and direct eprintln!/println! calls with structured logging using the tracing crate and selectively uses colored output for final user messages. The changes also improve consistency and testability by centralizing message emission, and streamline the CLI output logic.

CLI Output and Logging Refactor

  • Replaced most direct eprintln!/println! and custom styled formatting with tracing macros (info!, warn!, error!) for structured logging throughout src/cli.rs, src/core/compiler.rs, src/core/deploy.rs, and src/core/doctor.rs. Success messages at the end of commands now use colored output with the colored crate for better user visibility. [1] [2] [3] [4]

  • Centralized result reporting in the compiler and doctor modules by replacing .print() and .to_lines() with .emit(), which logs information and errors instead of printing directly. This makes it easier to test and maintain output logic. [1] [2]

CLI Command Behavior Changes

  • Improved CLI user experience by providing clear, colored completion messages (e.g., "Build complete", "Deploy complete", "Status complete") and using info! for status and result reporting. Project initialization, build, deploy, doctor, login, upgrade, and rollback commands now have more consistent and visible output. [1] [2] [3] [4] [5] [6] [7] [8]

  • Simplified status reporting by delegating to a new project::print_status function and using logging for status headers, instead of printing each field individually with custom formatting.

User Input Handling Improvements

  • Ensured prompts for user input (e.g., email, password) use print! and flush stdout to display prompts correctly, rather than eprint!, which could be hidden in some environments. [1] [2] [3]

Error and Warning Reporting

  • All errors and warnings found during doctor and validation routines are now logged with error! and warn!, improving visibility and consistency in both interactive and log-based usage. [1] [2] [3]

Miscellaneous

  • Minor code cleanups, such as removing unused imports and updating function signatures to reflect the new output handling. [1] [2]

These changes make the CLI output more consistent, user-friendly, and suitable for both interactive use and automated logging.

@VinayIN
VinayIN merged commit 3dea56e into main Jul 15, 2026
9 checks passed
@VinayIN
VinayIN deleted the tui-fix branch July 15, 2026 23:46
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.

1 participant