Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional capture-output writer to run_app() #1889

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

th1000s
Copy link
Collaborator

@th1000s th1000s commented Nov 4, 2024

The output and exit code of run_app() are now testable, used for diff test.


For librarification, and generalized subcommands

@th1000s th1000s requested a review from dandavison November 4, 2024 21:02
The output and exit code of run_app() are now testable, used for diff test.
);
let mut runargs = vec![OsString::from(file_a), OsString::from(file_b)];
runargs.extend(args.iter().map(OsString::from));
let exit_code = crate::run_app(runargs, Some(&mut writer));
Copy link
Owner

Choose a reason for hiding this comment

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

This is a nice improvement; I like that it is now more end-to-end.

Copy link
Owner

@dandavison dandavison left a comment

Choose a reason for hiding this comment

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

Looks great.

@dandavison
Copy link
Owner

[I'll leave you to merge]

@th1000s th1000s merged commit 4e3702c into dandavison:main Nov 5, 2024
13 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.

2 participants