Skip to content

feat(cli): add cleanup command - #8018

Merged
viceice merged 1 commit into
viceice/feat/cleanup-toolfrom
viceice/feat/cleanup-all
Oct 27, 2026
Merged

viceice merged 1 commit into
viceice/feat/cleanup-toolfrom
viceice/feat/cleanup-all

Conversation

@viceice

@viceice viceice commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Changes

  • New containerbase-cli cleanup [--dry-run] command: runs cleanup tool, cleanup cache and cleanup downloads in this order.
  • A failing step doesn't stop the others; the command fails at the end.
  • When the tools can't be loaded (eg. the containerbase folders aren't writable), it fails before running any step.
  • Closes feature request: Integrate cleanup into the install-tool #4362

Context

Please select one of the following:

  • This closes an existing Issue, Closes: cleanup: add cleanup command #8013
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Code, tests and docs by Claude Code (Claude Opus 5.5), reviewed by @viceice.

Use of AI in replying to PR comments

Who answers review comments:

  • @viceice will read and reply directly. Name the account.
  • An agent will draft replies and @username will read them before they are posted. Name the account.
  • An agent will draft replies and reply autonomously. This is heavily discouraged, and we prefer that there are humans in the loop
  • Nobody has explicitly committed to replying.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified tests

🤖 Generated with Claude Code

@viceice
viceice added this pull request to stack #8019 October 26, 2026 13:05
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8eb1569b-135d-43f2-a21b-65ca96b4cf47
Commits

Reviewing files that changed from the base of the PR and between a9c4e8d and a66c200.

Files selected for processing: 7
  • docs/tools.md
  • src/cli/cleanup/index.spec.ts
  • src/cli/cleanup/index.ts
  • src/cli/command/cleanup.spec.ts
  • src/cli/command/cleanup.ts
  • src/cli/command/index.ts
  • test/node/Dockerfile
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@viceice
viceice force-pushed the viceice/feat/cleanup-all branch from b7fb4d9 to 4052828 Compare October 26, 2026 13:37
@viceice
viceice force-pushed the viceice/feat/cleanup-all branch from 4052828 to c753c46 Compare October 26, 2026 14:19
@viceice
viceice force-pushed the viceice/feat/cleanup-all branch 2 times, most recently from bc2efaf to bf10324 Compare October 26, 2026 16:59
@viceice
viceice marked this pull request as ready for review October 26, 2026 17:05
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing

@viceice
viceice enabled stacked auto-merge October 26, 2026 17:06
Co-Authored-By: Claude Opus 5.5 <michael.kriese+claude-code@mend.io>
@viceice
viceice force-pushed the viceice/feat/cleanup-all branch from bf10324 to a66c200 Compare October 27, 2026 07:08
@viceice
viceice added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 3116c6d Oct 27, 2026
56 of 67 checks passed
@viceice
viceice deleted the viceice/feat/cleanup-all branch October 27, 2026 08:31
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 14.54.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

cleanup: add cleanup command feature request: Integrate cleanup into the install-tool

1 participant