harbor run -t openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-2018harbor download openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-2018Title: Implement a no_such_file rule to recover from mv “No such file or directory” errors in thefeck
Body: I’m adding a new rule to thefeck: no_such_file (thefeck.rules.no_such_file). The rule should detect specific “No such file or directory” errors produced by mv and provide an exact fixer command to recover.
What I need to implement
Interface and assumptions
Acceptance criteria
Example behavior (as per tests)
Input: Command('mv bar bar/bar', "mv: cannot move 'bar' to 'bar/bar': No such file or directory")
Input: Command('mv bar bar/', "mv: cannot move 'bar' to 'bar/': No such file or directory")
Notes
What I’m looking for
If you’ve got a clean, tested approach that satisfies the above behavior and interfaces, I’d appreciate seeing the full snippet (including import lines if needed) and how it integrates with the existing thefeck Command object access pattern:
File references (for context)
Thanks!