-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
82 lines (66 loc) · 1.53 KB
/
Copy pathstart.bat
File metadata and controls
82 lines (66 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@echo off
title git-regret
color 0C
echo.
echo ========================================
echo git-regret - Secret Scanner Installation
echo ========================================
echo.
:: Python kontrolu
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Python not found!
echo Please install Python 3.10+ from https://python.org.
pause
exit /b 1
)
echo [OK] Python found.
:: git kontrolu
git --version >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Git not found!
echo Please install Git from https://git-scm.com.
pause
exit /b 1
)
echo [OK] Git found.
:: Kutuphaneleri kontrol et ve kur
echo.
echo [*] Checking dependencies......
python -c "import click" >nul 2>&1
if %errorlevel% neq 0 (
echo [*] Installing click...
python -m pip install click -q
)
python -c "import git" >nul 2>&1
if %errorlevel% neq 0 (
echo [*] Installing gitpython...
python -m pip install gitpython -q
)
python -c "import rich" >nul 2>&1
if %errorlevel% neq 0 (
echo [*] Installing rich...
python -m pip install rich -q
)
python -c "import questionary" >nul 2>&1
if %errorlevel% neq 0 (
echo [*] Installing questionary...
python -m pip install questionary -q
)
echo [OK] All dependencies installed.
:: Paketi kur
echo.
echo [*] Installing git-regret...
python -m pip install -e . -q
if %errorlevel% neq 0 (
echo [ERROR] Installation failed!
pause
exit /b 1
)
echo [OK] Installation completed.
echo.
echo ========================================
echo.
:: TUI baslat
git-regret-ui
pause