Repository navigation
Conversation
andeart
marked this pull request as ready for review
April 4, 2026 17:52
Collaborator
|
Thanks @andeart — #1014 is real and still present on |
Contributor
|
This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet. |
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.
Summary
Fixes #1014.
rtk init -g --uninstallnow removes the RTK data directory (~/.local/share/rtk/on Linux,~/Library/Application Support/rtk/on macOS) - covers history.db, trusted_filters.json, .hook_warn_last, .telemetry_last_ping, .device_salt, and tee/~/.config/rtk/on Linux) - covers config.toml and filters.tomlrtk gain --historyfirst). In non-interactive mode (piped stdin), skips data directory removal entirely to avoid silent data loss.Test plan
cargo fmt --all && cargo clippy --all-targets && cargo test. 1348 tests pass, 0 failures. Clippy warnings are all pre-existing in unrelated files.interactive: falseto bypass the stdin prompt; production call site passesinteractive: true.cargo build --releasetarget/release/rtk init -gto install, thentarget/release/rtk init -g --uninstall[y/N]prompt appears before deleting history.db. AnsweringNskips data dir removal, answeringyremoves it. Hooks are removed in either case (I felt this was okay given the user explicitly started thisuninstallcommand anyhow).echo "" | rtk init -g --uninstall) skips data directory removal with a message.rtk init -gafter uninstall works cleanly (no leftover state interference).