feat(cli): add gitnexus uninstall command#114
Closed
gentritbiba wants to merge 1 commit into
Closed
Conversation
…d analyze GitNexus had no way to completely remove itself from a repo or system. `gitnexus clean` only deleted the .gitnexus/ index directory but left behind MCP configs, hooks, skills, CLAUDE.md/AGENTS.md sections, and global state across all editors. The new `uninstall` command reverses everything: - Per-repo: .gitnexus/ index, GitNexus sections from AGENTS.md/CLAUDE.md (preserving user content), .claude/skills/gitnexus/, registry entry - Global (--global): Cursor/OpenCode MCP configs, Claude Code MCP, hooks from settings.json and hooks.json, hook scripts, skills across all editors (Claude/Cursor/OpenCode), ~/.gitnexus/ directory - Combined (--all): both per-repo and global Executes by default; use --dry-run for preview. Closes abhigyanpatwari#112
|
@gentritbiba is attempting to deploy a commit to the NexusCore Team on Vercel. A member of the Team first needs to authorize it. |
Collaborator
|
Collaborator
|
Please submit a new PR if this is still relevant |
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
gitnexus uninstallcommand that fully reverses bothsetupandanalyze.gitnexus/index, GitNexus sections from AGENTS.md/CLAUDE.md (preserving user content),.claude/skills/gitnexus/, registry entries--global): Cursor/OpenCode MCP configs, Claude Code MCP (claude mcp remove), hooks from bothsettings.jsonandhooks.json, hook scripts, skills across all editors (Claude/Cursor/OpenCode),~/.gitnexus/directory--all): removes both per-repo and global--dry-runfor preview onlyos.homedir()+path.join()throughout, Windows-awareUsage
Test plan
gitnexus uninstall --helpshows correct optionsgitnexus uninstall --dry-runshows per-repo previewgitnexus uninstall --dry-run --globalshows global previewgitnexus uninstall --dry-run --allshows combined previewtsc)gitnexus uninstallremoves per-repo artifactsgitnexus uninstall --globalremoves global artifactsgitnexus uninstall --allremoves everythingCloses #112