Repository navigation
feat: add clean --item to clean only the named artifacts without the interactive selector - #59
Merged
Merged
Conversation
…interactive selector Non-interactive clean could only narrow by ecosystem, status, safety, size and path, so one artifact such as ~/.npm could not be cleaned alone without a terminal. --item keeps only the scanned artifacts at the given paths and fails before deleting anything when a path matches no artifact. The --yes safety gate still applies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DKZ2ySvoEcv2ezHfF7YmTY
…mas as part of the path --item now fails before deleting anything when --yes would skip a named caution or protected artifact, listing each with its reason. The flag no longer splits on commas; repeat it for more paths. A "~/" item is left unexpanded when the home directory is unknown, and the no-match error names the filters that narrow the scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DKZ2ySvoEcv2ezHfF7YmTY
… --item matching selectForYes now returns the items it keeps with their reason, so the caution notice and the --item failure read one judgment instead of recomputing it. keepItems tracks matches in one map, and the clean tests share helpers for building trees and checking paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DKZ2ySvoEcv2ezHfF7YmTY
…ew command is unambiguous Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DKZ2ySvoEcv2ezHfF7YmTY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇이 바뀌나
clean --item <path>를 추가합니다. 스캔 결과 중 지정한 경로의 artifact만 남깁니다. 여러 개는 플래그를 반복해 넘기고, 쉼표는 경로의 일부로 취급합니다.--yes가 지정한 항목을 건너뛸 때(caution인데--include-caution이 없거나, protected일 때)--dry-run --yes로 명시합니다.왜
~/.npm처럼 artifact 하나만 지울 방법이 없었습니다.--dry-run만 붙이면 미리보기가 되는 것처럼 읽혔습니다. 실제로는--dry-run만 붙이면 같은 오류로 다시 거부됩니다.SPEC 변경
docs/SPEC.md§ clean: 예시 한 줄을 추가하고#### --item절을 새로 썼습니다. 오류 메시지 예시 2개를 포함합니다.docs/SPEC.md§ clean: 터미널이 없을 때 출력하는 오류 메시지 예시를 바꿨습니다.🤖 Generated with Claude Code
https://claude.ai/code/session_01DKZ2ySvoEcv2ezHfF7YmTY