File tree 2 files changed +26
-10
lines changed
2 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ def setup():
69
69
bold = True ,
70
70
)
71
71
)
72
+ else :
73
+ click .echo (click .style ("🎉 Setup completed!\n " , fg = "green" ))
72
74
73
75
74
76
@cli .group ()
Original file line number Diff line number Diff line change 10
10
if ! command -v python3 & > /dev/null
11
11
then
12
12
echo " python3 could not be found"
13
- echo " Installing python3 using pyenv..."
14
- if ! command -v pyenv & > /dev/null
15
- then
16
- echo " pyenv could not be found"
17
- echo " Installing pyenv..."
18
- curl https://pyenv.run | bash
13
+ echo " Install python3 using pyenv ([y]/n)?"
14
+ read response
15
+ if [[ " $response " == " y" || -z " $response " ]]; then
16
+ echo " Installing python3..."
17
+ if ! command -v pyenv & > /dev/null
18
+ then
19
+ echo " pyenv could not be found"
20
+ echo " Installing pyenv..."
21
+ curl https://pyenv.run | bash
22
+ fi
23
+ pyenv install 3.11.5
24
+ pyenv global 3.11.5
25
+ else
26
+ echo " Aborting setup"
27
+ exit 1
19
28
fi
20
- pyenv install 3.11.5
21
- pyenv global 3.11.5
22
29
fi
23
30
24
31
if ! command -v poetry & > /dev/null
25
32
then
26
33
echo " poetry could not be found"
27
- echo " Installing poetry..."
28
- curl -sSL https://install.python-poetry.org | python3 -
34
+ echo " Install poetry using official installer ([y]/n)?"
35
+ read response
36
+ if [[ " $response " == " y" || -z " $response " ]]; then
37
+ echo " Installing poetry..."
38
+ curl -sSL https://install.python-poetry.org | python3 -
39
+ else
40
+ echo " Aborting setup"
41
+ exit 1
42
+ fi
29
43
fi
30
44
fi
You can’t perform that action at this time.
0 commit comments