Expand description
Side-effecting operations: rm, rc-file edits, Windows PATH, self-delete.
Structs§
- Noop
Self Delete - Test stub strategy used by integration tests to avoid actually self-deleting.
- Path
Cleanup Result - Platform
Self Delete - Process
Info
Traits§
- Self
Delete Strategy - Strategy abstraction so tests can override the actual self-delete step.
Functions§
- apply_
unix_ path_ cleanup - Read an rc file, strip the AtomCode installer block targeting
prefix, write a.atomcode-uninstall.baknext to it, then write the cleaned file. No-op (returnsmodified=false) if the file is missing or no block found. - kill_
process - Best-effort kill (SIGTERM on Unix, TerminateProcess on Windows) by PID.
- list_
atomcode_ processes - List all atomcode-family processes excluding the calling process.
- matches_
atomcode_ name - remove_
path - Remove a file or directory. If
needs_privilegeis true on Unix, shells out tosudo rm -rf <path>; otherwise uses Rust stdlib. - strip_
atomcode_ path_ block - Remove the canonical
# Added by AtomCode installer\nexport PATH="<prefix>:$PATH"block(s) from a shell rc file’s content. Strict matching: requires both the comment and the export line targetingprefix. User-written PATH lines without the comment are left alone. - strip_
path_ entry - Remove an entry equal to
target_literal(e.g.%LOCALAPPDATA%\AtomCode) ortarget_expanded(e.g.C:\Users\theo\AppData\Local\AtomCode) from a Windows PATH-style string. Comparison is case-insensitive and ignores trailing slashes. ReturnsNoneif no entry matched. - sudo_rm