remotemobprogramming / mob

Tool for smooth git handover.
https://mob.sh
MIT License
1.67k stars 150 forks source link

make mob fuck compatible #310

Open hollesse opened 2 years ago

hollesse commented 2 years ago

fuck is a useful cli tool which helps if you did something wrong. mob does not work together with fuck.

gregorriegler commented 2 years ago

Actually, I use fuck, so I think this is a good Idea :-)

seanpoulter commented 8 months ago

Interesting. Do we need to hand-code all the rules? https://github.com/nvbn/thefuck?tab=readme-ov-file#creating-your-own-rules

gregorriegler commented 6 months ago

Option 1: Create a universal the fuck rule that understands our say.Fix syntax, and make sure our say.Fix syntax is consistent and parsable

Option 2: Create a thefuck rule for each of those

match: To start, including uncommitted changes* fix: mob start --include-uncommitted-changes

match: to start working together, use mob start fix: mob start

match: Executing this command deletes the mob branch for everyone. If you're sure you want that, use mob reset --delete-remote-wip-branch fix: mob reset --delete-remote-wip-branch

match: Remote branch {...} is missing fix: mob start --create

match: cannot start; unpushed changes on base branch must be pushed upstream fix: git push configuration.RemoteName? currentBaseBranch.String()? // not yet sure how to get those, a mob command might help

match: cannot start; current working dir is an uncommitted subdir fix: cd ..