Skip to content

fix: porcelain mode display errors#1769

Merged
tusharmath merged 26 commits intomainfrom
fix/info-operations
Oct 25, 2025
Merged

fix: porcelain mode display errors#1769
tusharmath merged 26 commits intomainfrom
fix/info-operations

Conversation

@amitksingh1490
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the type: fix Iterations on existing features or infrastructure. label Oct 24, 2025
Comment thread crates/forge_main/src/porcelain.rs Outdated
amitksingh1490 and others added 15 commits October 24, 2025 18:46
Updated the porcelain handling in the UI implementation to use `skip_row(1)` instead of `skip(1)` for better clarity and consistency. This change was applied in multiple locations within the `ui.rs` file to ensure uniform behavior when rendering porcelain output.
if porcelain {
println!("{}", Porcelain::from(&info).into_long().skip(1).drop_col(0));
} else {
println!("{}", info);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

need to use self.writeln always to print.

@@ -674,13 +674,7 @@ impl<A: API + 'static, F: Fn() -> A> UI<A, F> {
.map(|m| m.as_str().to_string());
let provider = self.api.get_provider().await.ok().map(|p| p.id.to_string());
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

duplicate logic in handler

@tusharmath tusharmath merged commit 9b3b618 into main Oct 25, 2025
9 checks passed
@tusharmath tusharmath deleted the fix/info-operations branch October 25, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants