Open hollesse opened 2 years ago
Actually, I use fuck, so I think this is a good Idea :-)
Interesting. Do we need to hand-code all the rules? https://github.com/nvbn/thefuck?tab=readme-ov-file#creating-your-own-rules
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 ..
fuck
is a useful cli tool which helps if you did something wrong.mob
does not work together withfuck
.