Skip to content

feat(forge): migrate forge init to output channel contract#14958

Open
stevencartavia wants to merge 2 commits into
masterfrom
steven/init-output-channel
Open

feat(forge): migrate forge init to output channel contract#14958
stevencartavia wants to merge 2 commits into
masterfrom
steven/init-output-channel

Conversation

@stevencartavia
Copy link
Copy Markdown
Collaborator

Migrates forge init per docs/dev/output-channels.md: status prose ("Initializing …", "Initialized forge project") moves from stdout to stderr via sh_status!. forge init produces no machine-readable data, so stdout is now empty.

  • crates/forge/src/cmd/init.rs: three sh_println!sh_status!.
  • docs/dev/output-channels.md: row flipped to migrated.
  • Tests in cmd.rs, debug.rs, script.rs: init prose snapshots relocated from .stdout_eq to .stderr_eq (with ... between Initializing/Initialized to tolerate git's clone output on the same channel). fail_init_nonexistent_template updated to include the new stderr line. Added focused lock-in test init_status_on_stderr.

@stevencartavia stevencartavia marked this pull request as ready for review May 28, 2026 18:49
Copy link
Copy Markdown
Collaborator

@mablr mablr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants