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

[giti] Display the git command(s) we run for giti workflow #309

Open
NadiaIdris opened this issue Jan 22, 2024 · 0 comments
Open

[giti] Display the git command(s) we run for giti workflow #309

NadiaIdris opened this issue Jan 22, 2024 · 0 comments

Comments

@NadiaIdris
Copy link
Contributor

NadiaIdris commented Jan 22, 2024

Show every single command being run in the terminal for user confirmation.
Potential solution: add the git command(s) under the instructions and above the header text.

E.g. :

`git branch -d` will be run for each branch you delete.

Image

Original idea is from -Redstoneboi-:
Reddit comments: https://www.reddit.com/r/rust/comments/19bauiq/media_introducing_r3bl_giti_an_interactive_git/kj455u8/?context=8&depth=9

You have user confirmation already, right? I think you should place them during the "Confirm deleting branches? [Yes] [No]" prompt, and all similar prompts.

I basically want you to wrap your run_git_command() function or something, and have it prompt the user by default every time a command is run.

Maybe commands that are read-only would instead tell the user after the fact. For example just saying git branch or git diff doesn't need confirmation. But git push or git switch could, because they do something.

You'd want a bit of user testing to figure out which commands are good for prompting or for informing after the fact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant