pub fn kill_ghost_process(port: u16, pid: u32) -> FixExpand description
Builds the kill-ghost-process fix for a blocked port.
The kill command itself is chosen at execution time per platform
(taskkill on Windows, kill elsewhere), so this factory is
platform-agnostic.
use limitless_cli::modules::fixes::{kill_ghost_process, FixCommand};
let fix = kill_ghost_process(3000, 9921);
assert_eq!(fix.reversible, false);
assert_eq!(fix.requires_approval, true);
assert!(matches!(fix.command, FixCommand::KillProcess { pid: 9921 }));