Skip to content

Conversation

@domenkozar
Copy link
Member

Introduces task output control with a new showOutput configuration option and --show-output CLI flag. Also fixes task output appearing red in terminals by routing stdout to println! instead of eprintln!.

Changes:

  • Add showOutput boolean to task configuration (Nix, config, types)
  • Add --show-output CLI flag to devenv tasks run
  • Route task stdout to println! for better terminal appearance
  • Maintain stderr output (errors) using eprintln!
  • Add comprehensive tests for output visibility behavior

Fixes #2116

🤖 Generated with Claude Code

@domenkozar domenkozar requested a review from sandydoo October 21, 2025 00:50
@github-actions
Copy link
Contributor

github-actions bot commented Oct 21, 2025

🔍 Suggested Reviewers

Based on git blame analysis of the changed lines, the following contributors have significant experience with the modified code:

  • @sandydoo - 100.0% of changed lines (8 lines)

Please consider reviewing this PR as you have authored significant portions of the code being modified. Your expertise would be valuable! 🙏

This comment was automatically generated by git-blame-auto-reviewer

Last updated: 2025-10-24T20:57:28.366Z

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 21, 2025

Deploying devenv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 68d870c
Status: ✅  Deploy successful!
Preview URL: https://41e1055d.devenv.pages.dev
Branch Preview URL: https://tasks-show-output.devenv.pages.dev

View logs

Introduces task output control with a new `showOutput` configuration option
and `--show-output` CLI flag. Also fixes task output appearing red in terminals
by routing stdout to println! instead of eprintln!.

Changes:
- Add `showOutput` boolean to task configuration (Nix, config, types)
- Add `--show-output` CLI flag to `devenv tasks run`
- Route task stdout to println! for better terminal appearance
- Maintain stderr output (errors) using eprintln!
- Add comprehensive tests for output visibility behavior

Fixes #2116

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@domenkozar domenkozar merged commit 679d295 into main Oct 24, 2025
4 checks passed
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.

[Feature Request] add option to print task(s) output on success

2 participants