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

update: return non-0 exit code for compare w/changes #591

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maniator
Copy link

@maniator maniator commented Aug 11, 2022

What does this change?

References

Closes #505

@@ -4,7 +4,13 @@ import getRegCore from "../get-reg-core";
async function compare(options: CliOptions) {
const processor = getRegCore(options).createProcessor();
const ctx = await processor.getExpectedKey();
await processor.compare(ctx);
const { comparisonResult } = await processor.compare(ctx);
const numberOfFailed = comparisonResult.failedItems.length;
Copy link
Author

Choose a reason for hiding this comment

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

we may also want to fail if there are new items or deleted, but I did not do that for now

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.

Non-0 exit code when comparison detects changes
1 participant