Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make mob fuck compatible #310

Open
hollesse opened this issue Sep 19, 2022 · 3 comments
Open

make mob fuck compatible #310

hollesse opened this issue Sep 19, 2022 · 3 comments
Labels
enhancement New feature or request hacktoberfest

Comments

@hollesse
Copy link
Member

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

@hollesse hollesse added the enhancement New feature or request label Sep 19, 2022
@gregorriegler
Copy link
Collaborator

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

@seanpoulter
Copy link
Contributor

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

@gregorriegler
Copy link
Collaborator

gregorriegler commented Apr 27, 2024

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 ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants