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

feat: print warnings before confirm with slogger #3325

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

AustinAbro321
Copy link
Contributor

@AustinAbro321 AustinAbro321 commented Dec 12, 2024

Description

I realized many warnings before confirm actions weren't being printed. We were printing some of the pre-confirm warnings separately which leads to cleaner code, however practically speaking they are almost impossible to notice for users because everything before the p.confirmAction happens quickly and p.confirmAction prints out a yaml file.

Checklist before merging

Signed-off-by: Austin Abro <[email protected]>
Signed-off-by: Austin Abro <[email protected]>
@AustinAbro321 AustinAbro321 requested review from a team as code owners December 12, 2024 19:46
@AustinAbro321 AustinAbro321 changed the title feat: print warning with slogger feat: print warnings before confirm with slogger Dec 12, 2024
Copy link

netlify bot commented Dec 12, 2024

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit f4e4eea
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/675b3db1c411340008c74114

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pkg/packager/interactive.go 0.00% 3 Missing ⚠️
src/pkg/logger/logger.go 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/pkg/packager/create.go 0.00% <ø> (ø)
src/pkg/packager/deploy.go 5.44% <ø> (+0.02%) ⬆️
src/pkg/logger/logger.go 53.78% <0.00%> (ø)
src/pkg/packager/interactive.go 0.00% <0.00%> (ø)

Copy link
Contributor

@mkcp mkcp left a comment

Choose a reason for hiding this comment

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

LGTM

@AustinAbro321 AustinAbro321 added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit ec814ca Dec 12, 2024
26 checks passed
@AustinAbro321 AustinAbro321 deleted the logger-print-warnings branch December 12, 2024 21:12
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