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

Print verbose output in HRX format #95

Merged
merged 2 commits into from
Sep 30, 2019
Merged

Print verbose output in HRX format #95

merged 2 commits into from
Sep 30, 2019

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Sep 30, 2019

Eventually we want to print this in diff format (see #27), but there's
not an up-to-date diff library in Dart at the moment so this is a
stop-gap measure for better output.

Eventually we want to print this in diff format (see #27), but there's
not an up-to-date diff library in Dart at the moment so this is a
stop-gap measure for better output.
@nex3 nex3 requested a review from jathak September 30, 2019 19:13
@@ -106,12 +106,16 @@ class MigratorRunner extends CommandRunner<Map<Uri, String>> {

if (argResults['dry-run']) {
print('Dry run. Logging migrated files instead of overwriting...\n');
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to remove this line or make it log to stderr so that the HRX output could be piped somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we actually don't want people piping the output, since we plan to change the format to a diff at some point in the future anyway so it won't be reliably forwards-compatible.

@nex3 nex3 merged commit 789313a into master Sep 30, 2019
@nex3 nex3 deleted the hrx-verbose branch September 30, 2019 23:16
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