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

Install git if not found ? #64

Open
gedw99 opened this issue Nov 26, 2024 · 1 comment
Open

Install git if not found ? #64

gedw99 opened this issue Nov 26, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@gedw99
Copy link

gedw99 commented Nov 26, 2024

the CLI is able to detect and gives a

"
Sorry, I can't find Git on your computer
"

It would be good if we output error codes actually, so that there is consistency with the way we interact and also the telemetry has it. This is kind of important once a thing starts being used a lot.

Anyway, the CLI, for each OS, can ask if its OK to:

https://winget.run/pkg/Git/Git

winget install -e --id Git.Git
Found Git [Git.Git] Version 2.47.0.2
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/git-for-windows/git/releases/download/v2.47.0.windows.2/Git-2.47.0.2-64-bit.exe
  ███████▏                        15.5 MB / 65.5 MB

winget is on all Windows boxes and full integrated.

for Mac I think git is automatically there ?

for Linux, I dont know...

@julien040 julien040 self-assigned this Dec 2, 2024
@julien040 julien040 added the enhancement New feature or request label Dec 2, 2024
@julien040
Copy link
Owner

Hello @gedw99,
Yes, the CLI would need a big update because there are a lot of issues:

  • There are three different ways to output text.
  • Most commands cannot work in a shell and require an interactive terminal.
  • On error, it just returns the 1 error code without any meaning behind it. While an attempt at standardizing errors was started, I've never completed it entirely https://gut-cli.dev/error/1

I would love to see these changes, but I don't have the time for this. My focus is currently on my studies and Anyquery. gut is in maintenance mode. I do bug fixes, but I don't develop any new features at the moment. That might change in the future.

Regarding the automatic installation of git, this could be interesting, as long as it is done with user consent.

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

No branches or pull requests

2 participants