Skip to content

Conversation

AustinAbro321
Copy link
Contributor

@AustinAbro321 AustinAbro321 commented Aug 13, 2025

Description

This allows users to preform an interactive remove when --confirm is not set. I also added the package yaml print as I feel it could be a useful debugging tool if something went wrong during a confirmed remove. It's also consistent with our other interactive option, deploy. I don't feel super strongly either way here though.

Related Issue

Fixes #3239

Checklist before merging

Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Copy link

netlify bot commented Aug 13, 2025

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 1ecba6b
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/689ce03ee769120008c69646

Copy link

codecov bot commented Aug 13, 2025

Codecov Report

❌ Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/cmd/package.go 0.00% 14 Missing ⚠️
src/cmd/crane.go 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/cmd/crane.go 29.82% <0.00%> (ø)
src/cmd/package.go 38.25% <0.00%> (-0.49%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Austin Abro <austinabro321@gmail.com>
@AustinAbro321 AustinAbro321 marked this pull request as ready for review August 13, 2025 18:48
@AustinAbro321 AustinAbro321 requested review from a team as code owners August 13, 2025 18:48
mkcp
mkcp previously approved these changes Aug 13, 2025
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 with style nit to match other prompt text.

Co-authored-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Copy link
Member

@brandtkeller brandtkeller left a comment

Choose a reason for hiding this comment

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

Changes look good. Noticed an odd behavior in testing - where an invalid component name used with --components on remove resulted in the full package being removed - we should open a new issue for this.

@AustinAbro321 AustinAbro321 added this pull request to the merge queue Aug 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 13, 2025
@AustinAbro321 AustinAbro321 added this pull request to the merge queue Aug 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 13, 2025
@AustinAbro321 AustinAbro321 added this pull request to the merge queue Aug 13, 2025
Merged via the queue into main with commit 3ad0647 Aug 13, 2025
39 checks passed
@AustinAbro321 AustinAbro321 deleted the make-remove-interactive branch August 13, 2025 20:41
@rodneyxr
Copy link
Contributor

Changes look good. Noticed an odd behavior in testing - where an invalid component name used with --components on remove resulted in the full package being removed - we should open a new issue for this.

Just chiming in here but we also experienced this issue as well using zarf v0.58.0 while trying to remove a component within a uds core package. We thought it was expected behavior so I never reported this but it did cause some issues and broke our core deployment putting it in a funky state...

Ansible-man pushed a commit to Ansible-man/zarf that referenced this pull request Sep 6, 2025
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
Co-authored-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Cade Thomas <cadethomas23@gmail.com>
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.

Re-do --confirm flag related interaction behavior
4 participants