bdh-linux 4.2.7__tar.gz → 4.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/PKG-INFO +1 -1
- bdh_linux-4.2.8/bdh_linux/commands/setup.py +249 -0
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/bdh_linux.egg-info/PKG-INFO +1 -1
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/pyproject.toml +1 -1
- bdh_linux-4.2.7/bdh_linux/commands/setup.py +0 -107
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/bdh_linux/__init__.py +0 -0
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/bdh_linux/commands/install.py +0 -0
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/bdh_linux/commands/remove.py +0 -0
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/bdh_linux/main.py +0 -0
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/bdh_linux.egg-info/SOURCES.txt +0 -0
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/bdh_linux.egg-info/dependency_links.txt +0 -0
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/bdh_linux.egg-info/entry_points.txt +0 -0
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/bdh_linux.egg-info/requires.txt +0 -0
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/bdh_linux.egg-info/top_level.txt +0 -0
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/setup.cfg +0 -0
- {bdh_linux-4.2.7 → bdh_linux-4.2.8}/setup.py +0 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
'''import typer
|
|
2
|
+
import subprocess
|
|
3
|
+
import os
|
|
4
|
+
from rich import print
|
|
5
|
+
|
|
6
|
+
app = typer.Typer(help="Setup bdh-linux components")
|
|
7
|
+
|
|
8
|
+
BASE_URL = "https://raw.githubusercontent.com/BackendDeveloperHub/bdh-linux/main"
|
|
9
|
+
|
|
10
|
+
def run(cmd: str):
|
|
11
|
+
subprocess.run(cmd, shell=True)
|
|
12
|
+
|
|
13
|
+
@app.command()
|
|
14
|
+
def terminal():
|
|
15
|
+
"""Setup ZSH + BDH prompt + aliases"""
|
|
16
|
+
print("[cyan]⚡ Setting up bdh-linux Terminal...[/cyan]")
|
|
17
|
+
print("=" * 30)
|
|
18
|
+
|
|
19
|
+
# Install ZSH
|
|
20
|
+
print("[yellow]📦 Installing ZSH...[/yellow]")
|
|
21
|
+
run("sudo pacman -S --noconfirm zsh git curl")
|
|
22
|
+
|
|
23
|
+
# Oh My Zsh
|
|
24
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh")):
|
|
25
|
+
print("[yellow]⚡ Installing Oh My Zsh...[/yellow]")
|
|
26
|
+
run("git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh")
|
|
27
|
+
else:
|
|
28
|
+
print("[yellow]⚡ Oh My Zsh already exists, skipping...[/yellow]")
|
|
29
|
+
|
|
30
|
+
# Powerlevel10
|
|
31
|
+
# Powerlevel10k
|
|
32
|
+
|
|
33
|
+
# Powerlevel10k
|
|
34
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/themes/powerlevel10k")):
|
|
35
|
+
run("git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k")
|
|
36
|
+
else:
|
|
37
|
+
print("[yellow]⚡ Powerlevel10k already exists, skipping...[/yellow]")
|
|
38
|
+
|
|
39
|
+
# zsh-autosuggestions
|
|
40
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")):
|
|
41
|
+
run("git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")
|
|
42
|
+
else:
|
|
43
|
+
print("[yellow]⚡ zsh-autosuggestions already exists, skipping...[/yellow]")
|
|
44
|
+
|
|
45
|
+
# zsh-syntax-highlighting
|
|
46
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")):
|
|
47
|
+
run("git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")
|
|
48
|
+
else:
|
|
49
|
+
print("[yellow]⚡ zsh-syntax-highlighting already exists, skipping...[/yellow]")
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# Plugins
|
|
53
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")):
|
|
54
|
+
run("git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")
|
|
55
|
+
|
|
56
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")):
|
|
57
|
+
run("git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")
|
|
58
|
+
|
|
59
|
+
# BDH Configs — curl வழியா
|
|
60
|
+
print("[yellow]🔧 Applying BDH configs...[/yellow]")
|
|
61
|
+
run(f"curl -fsSL {BASE_URL}/configs/.zshrc -o ~/.zshrc")
|
|
62
|
+
run(f"curl -fsSL {BASE_URL}/configs/aliases.sh -o ~/.aliases.sh")
|
|
63
|
+
|
|
64
|
+
# Shell மாத்த
|
|
65
|
+
run("sudo usermod -s /bin/zsh $USER")
|
|
66
|
+
|
|
67
|
+
print("")
|
|
68
|
+
print("[green]✅ Terminal setup done![/green]")
|
|
69
|
+
print("[green]💡 Run 'p10k configure' to customize prompt![/green]")
|
|
70
|
+
print("[green]⚡ Restart terminal to apply![/green]")
|
|
71
|
+
print('reset')
|
|
72
|
+
|
|
73
|
+
@app.command()
|
|
74
|
+
def packages():
|
|
75
|
+
"""Install all BDH packages"""
|
|
76
|
+
print("[cyan]⚡ Setting up BDH Packages...[/cyan]")
|
|
77
|
+
print("=" * 30)
|
|
78
|
+
run(f"curl -fsSL {BASE_URL}/scripts/install-packages.sh -o /tmp/install-packages.sh")
|
|
79
|
+
run("bash /tmp/install-packages.sh")
|
|
80
|
+
print("")
|
|
81
|
+
print("[green]✅ Packages setup done![/green]")
|
|
82
|
+
|
|
83
|
+
@app.command()
|
|
84
|
+
def git():
|
|
85
|
+
"""Setup Git global config"""
|
|
86
|
+
print("[cyan]⚡ Setting up Git...[/cyan]")
|
|
87
|
+
print("=" * 30)
|
|
88
|
+
name = typer.prompt("Your name")
|
|
89
|
+
email = typer.prompt("Your email")
|
|
90
|
+
run(f'git config --global user.name "{name}"')
|
|
91
|
+
run(f'git config --global user.email "{email}"')
|
|
92
|
+
run("git config --global init.defaultBranch main")
|
|
93
|
+
print("")
|
|
94
|
+
print("[green]✅ Git setup done![/green]")
|
|
95
|
+
|
|
96
|
+
@app.command()
|
|
97
|
+
def docker():
|
|
98
|
+
"""Install and setup Docker"""
|
|
99
|
+
print("[cyan]⚡ Setting up Docker...[/cyan]")
|
|
100
|
+
print("=" * 30)
|
|
101
|
+
run("sudo pacman -S --noconfirm docker docker-compose")
|
|
102
|
+
run("sudo systemctl enable docker")
|
|
103
|
+
run("sudo systemctl start docker")
|
|
104
|
+
run("sudo usermod -aG docker $USER")
|
|
105
|
+
print("")
|
|
106
|
+
print("[green]✅ Docker setup done![/green]")
|
|
107
|
+
'''
|
|
108
|
+
|
|
109
|
+
import typer
|
|
110
|
+
import subprocess
|
|
111
|
+
import os
|
|
112
|
+
from rich import print
|
|
113
|
+
|
|
114
|
+
app = typer.Typer(help="Setup bdh-linux components")
|
|
115
|
+
|
|
116
|
+
BASE_URL = "https://raw.githubusercontent.com/BackendDeveloperHub/bdh-linux/main"
|
|
117
|
+
|
|
118
|
+
def run(cmd: str):
|
|
119
|
+
subprocess.run(cmd, shell=True)
|
|
120
|
+
|
|
121
|
+
# --- Puthiya Network Command Inga ---
|
|
122
|
+
|
|
123
|
+
@app.command()
|
|
124
|
+
def network():
|
|
125
|
+
"""Scan and Connect to Wi-Fi (Arch Linux)"""
|
|
126
|
+
print("[cyan]📡 BDH-Linux Network Link aarambikkuthu...[/cyan]")
|
|
127
|
+
print("=" * 30)
|
|
128
|
+
|
|
129
|
+
# NetworkManager active-ah irukkannu check pannurom
|
|
130
|
+
print("[yellow]🔍 Checking NetworkManager status...[/yellow]")
|
|
131
|
+
run("sudo systemctl enable --now NetworkManager")
|
|
132
|
+
|
|
133
|
+
# Wi-Fi Scan
|
|
134
|
+
print("[yellow]🔭 Scanning for available networks...[/yellow]")
|
|
135
|
+
run("nmcli device wifi rescan")
|
|
136
|
+
# Scan results-ah terminal-la kaaturoom
|
|
137
|
+
run("nmcli -f SSID,BARS,SECURITY device wifi list")
|
|
138
|
+
|
|
139
|
+
print("-" * 30)
|
|
140
|
+
ssid = typer.prompt("Select panna Wi-Fi Name (SSID)")
|
|
141
|
+
password = typer.prompt("Wi-Fi Password", hide_input=True)
|
|
142
|
+
|
|
143
|
+
print(f"[yellow]⚡ Connecting to {ssid}...[/yellow]")
|
|
144
|
+
# nmcli moolama connect pandroom
|
|
145
|
+
result = subprocess.run(f'nmcli device wifi connect "{ssid}" password "{password}"', shell=True)
|
|
146
|
+
|
|
147
|
+
if result.returncode == 0:
|
|
148
|
+
print(f"[green]✅ Successfully connected to {ssid}![/green]")
|
|
149
|
+
print("[cyan]🌐 Testing connection...[/cyan]")
|
|
150
|
+
run("ping -c 3 google.com")
|
|
151
|
+
else:
|
|
152
|
+
print("[red]❌ Connection fail aayiduchi! Password check pannunga.[/red]")
|
|
153
|
+
|
|
154
|
+
# --- Unga pazhaya commands (terminal, packages, git, etc.) ellam appadiyae thodarum ---
|
|
155
|
+
@app.command()
|
|
156
|
+
def terminal():
|
|
157
|
+
"""Setup ZSH + BDH prompt + aliases"""
|
|
158
|
+
print("[cyan]⚡ Setting up bdh-linux Terminal...[/cyan]")
|
|
159
|
+
print("=" * 30)
|
|
160
|
+
|
|
161
|
+
# Install ZSH
|
|
162
|
+
print("[yellow]📦 Installing ZSH...[/yellow]")
|
|
163
|
+
run("sudo pacman -S --noconfirm zsh git curl")
|
|
164
|
+
|
|
165
|
+
# Oh My Zsh
|
|
166
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh")):
|
|
167
|
+
print("[yellow]⚡ Installing Oh My Zsh...[/yellow]")
|
|
168
|
+
run("git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh")
|
|
169
|
+
else:
|
|
170
|
+
print("[yellow]⚡ Oh My Zsh already exists, skipping...[/yellow]")
|
|
171
|
+
|
|
172
|
+
# Powerlevel10
|
|
173
|
+
# Powerlevel10k
|
|
174
|
+
|
|
175
|
+
# Powerlevel10k
|
|
176
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/themes/powerlevel10k")):
|
|
177
|
+
run("git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k")
|
|
178
|
+
else:
|
|
179
|
+
print("[yellow]⚡ Powerlevel10k already exists, skipping...[/yellow]")
|
|
180
|
+
|
|
181
|
+
# zsh-autosuggestions
|
|
182
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")):
|
|
183
|
+
run("git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")
|
|
184
|
+
else:
|
|
185
|
+
print("[yellow]⚡ zsh-autosuggestions already exists, skipping...[/yellow]")
|
|
186
|
+
|
|
187
|
+
# zsh-syntax-highlighting
|
|
188
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")):
|
|
189
|
+
run("git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")
|
|
190
|
+
else:
|
|
191
|
+
print("[yellow]⚡ zsh-syntax-highlighting already exists, skipping...[/yellow]")
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
# Plugins
|
|
195
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")):
|
|
196
|
+
run("git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")
|
|
197
|
+
|
|
198
|
+
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")):
|
|
199
|
+
run("git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")
|
|
200
|
+
|
|
201
|
+
# BDH Configs — curl வழியா
|
|
202
|
+
print("[yellow]🔧 Applying BDH configs...[/yellow]")
|
|
203
|
+
run(f"curl -fsSL {BASE_URL}/configs/.zshrc -o ~/.zshrc")
|
|
204
|
+
run(f"curl -fsSL {BASE_URL}/configs/aliases.sh -o ~/.aliases.sh")
|
|
205
|
+
|
|
206
|
+
# Shell மாத்த
|
|
207
|
+
run("sudo usermod -s /bin/zsh $USER")
|
|
208
|
+
|
|
209
|
+
print("")
|
|
210
|
+
print("[green]✅ Terminal setup done![/green]")
|
|
211
|
+
print("[green]💡 Run 'p10k configure' to customize prompt![/green]")
|
|
212
|
+
print("[green]⚡ Restart terminal to apply![/green]")
|
|
213
|
+
print('reset')
|
|
214
|
+
|
|
215
|
+
@app.command()
|
|
216
|
+
def packages():
|
|
217
|
+
"""Install all BDH packages"""
|
|
218
|
+
print("[cyan]⚡ Setting up BDH Packages...[/cyan]")
|
|
219
|
+
print("=" * 30)
|
|
220
|
+
run(f"curl -fsSL {BASE_URL}/scripts/install-packages.sh -o /tmp/install-packages.sh")
|
|
221
|
+
run("bash /tmp/install-packages.sh")
|
|
222
|
+
print("")
|
|
223
|
+
print("[green]✅ Packages setup done![/green]")
|
|
224
|
+
|
|
225
|
+
@app.command()
|
|
226
|
+
def git():
|
|
227
|
+
"""Setup Git global config"""
|
|
228
|
+
print("[cyan]⚡ Setting up Git...[/cyan]")
|
|
229
|
+
print("=" * 30)
|
|
230
|
+
name = typer.prompt("Your name")
|
|
231
|
+
email = typer.prompt("Your email")
|
|
232
|
+
run(f'git config --global user.name "{name}"')
|
|
233
|
+
run(f'git config --global user.email "{email}"')
|
|
234
|
+
run("git config --global init.defaultBranch main")
|
|
235
|
+
print("")
|
|
236
|
+
print("[green]✅ Git setup done![/green]")
|
|
237
|
+
|
|
238
|
+
@app.command()
|
|
239
|
+
def docker():
|
|
240
|
+
"""Install and setup Docker"""
|
|
241
|
+
print("[cyan]⚡ Setting up Docker...[/cyan]")
|
|
242
|
+
print("=" * 30)
|
|
243
|
+
run("sudo pacman -S --noconfirm docker docker-compose")
|
|
244
|
+
run("sudo systemctl enable docker")
|
|
245
|
+
run("sudo systemctl start docker")
|
|
246
|
+
run("sudo usermod -aG docker $USER")
|
|
247
|
+
print("")
|
|
248
|
+
print("[green]✅ Docker setup done![/green]")
|
|
249
|
+
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import typer
|
|
2
|
-
import subprocess
|
|
3
|
-
import os
|
|
4
|
-
from rich import print
|
|
5
|
-
|
|
6
|
-
app = typer.Typer(help="Setup bdh-linux components")
|
|
7
|
-
|
|
8
|
-
BASE_URL = "https://raw.githubusercontent.com/BackendDeveloperHub/bdh-linux/main"
|
|
9
|
-
|
|
10
|
-
def run(cmd: str):
|
|
11
|
-
subprocess.run(cmd, shell=True)
|
|
12
|
-
|
|
13
|
-
@app.command()
|
|
14
|
-
def terminal():
|
|
15
|
-
"""Setup ZSH + BDH prompt + aliases"""
|
|
16
|
-
print("[cyan]⚡ Setting up bdh-linux Terminal...[/cyan]")
|
|
17
|
-
print("=" * 30)
|
|
18
|
-
|
|
19
|
-
# Install ZSH
|
|
20
|
-
print("[yellow]📦 Installing ZSH...[/yellow]")
|
|
21
|
-
run("sudo pacman -S --noconfirm zsh git curl")
|
|
22
|
-
|
|
23
|
-
# Oh My Zsh
|
|
24
|
-
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh")):
|
|
25
|
-
print("[yellow]⚡ Installing Oh My Zsh...[/yellow]")
|
|
26
|
-
run("git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh")
|
|
27
|
-
else:
|
|
28
|
-
print("[yellow]⚡ Oh My Zsh already exists, skipping...[/yellow]")
|
|
29
|
-
|
|
30
|
-
# Powerlevel10
|
|
31
|
-
# Powerlevel10k
|
|
32
|
-
|
|
33
|
-
# Powerlevel10k
|
|
34
|
-
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/themes/powerlevel10k")):
|
|
35
|
-
run("git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k")
|
|
36
|
-
else:
|
|
37
|
-
print("[yellow]⚡ Powerlevel10k already exists, skipping...[/yellow]")
|
|
38
|
-
|
|
39
|
-
# zsh-autosuggestions
|
|
40
|
-
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")):
|
|
41
|
-
run("git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")
|
|
42
|
-
else:
|
|
43
|
-
print("[yellow]⚡ zsh-autosuggestions already exists, skipping...[/yellow]")
|
|
44
|
-
|
|
45
|
-
# zsh-syntax-highlighting
|
|
46
|
-
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")):
|
|
47
|
-
run("git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")
|
|
48
|
-
else:
|
|
49
|
-
print("[yellow]⚡ zsh-syntax-highlighting already exists, skipping...[/yellow]")
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
# Plugins
|
|
53
|
-
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")):
|
|
54
|
-
run("git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions")
|
|
55
|
-
|
|
56
|
-
if not os.path.isdir(os.path.expanduser("~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")):
|
|
57
|
-
run("git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting")
|
|
58
|
-
|
|
59
|
-
# BDH Configs — curl வழியா
|
|
60
|
-
print("[yellow]🔧 Applying BDH configs...[/yellow]")
|
|
61
|
-
run(f"curl -fsSL {BASE_URL}/configs/.zshrc -o ~/.zshrc")
|
|
62
|
-
run(f"curl -fsSL {BASE_URL}/configs/aliases.sh -o ~/.aliases.sh")
|
|
63
|
-
|
|
64
|
-
# Shell மாத்த
|
|
65
|
-
run("sudo usermod -s /bin/zsh $USER")
|
|
66
|
-
|
|
67
|
-
print("")
|
|
68
|
-
print("[green]✅ Terminal setup done![/green]")
|
|
69
|
-
print("[green]💡 Run 'p10k configure' to customize prompt![/green]")
|
|
70
|
-
print("[green]⚡ Restart terminal to apply![/green]")
|
|
71
|
-
print('reset')
|
|
72
|
-
|
|
73
|
-
@app.command()
|
|
74
|
-
def packages():
|
|
75
|
-
"""Install all BDH packages"""
|
|
76
|
-
print("[cyan]⚡ Setting up BDH Packages...[/cyan]")
|
|
77
|
-
print("=" * 30)
|
|
78
|
-
run(f"curl -fsSL {BASE_URL}/scripts/install-packages.sh -o /tmp/install-packages.sh")
|
|
79
|
-
run("bash /tmp/install-packages.sh")
|
|
80
|
-
print("")
|
|
81
|
-
print("[green]✅ Packages setup done![/green]")
|
|
82
|
-
|
|
83
|
-
@app.command()
|
|
84
|
-
def git():
|
|
85
|
-
"""Setup Git global config"""
|
|
86
|
-
print("[cyan]⚡ Setting up Git...[/cyan]")
|
|
87
|
-
print("=" * 30)
|
|
88
|
-
name = typer.prompt("Your name")
|
|
89
|
-
email = typer.prompt("Your email")
|
|
90
|
-
run(f'git config --global user.name "{name}"')
|
|
91
|
-
run(f'git config --global user.email "{email}"')
|
|
92
|
-
run("git config --global init.defaultBranch main")
|
|
93
|
-
print("")
|
|
94
|
-
print("[green]✅ Git setup done![/green]")
|
|
95
|
-
|
|
96
|
-
@app.command()
|
|
97
|
-
def docker():
|
|
98
|
-
"""Install and setup Docker"""
|
|
99
|
-
print("[cyan]⚡ Setting up Docker...[/cyan]")
|
|
100
|
-
print("=" * 30)
|
|
101
|
-
run("sudo pacman -S --noconfirm docker docker-compose")
|
|
102
|
-
run("sudo systemctl enable docker")
|
|
103
|
-
run("sudo systemctl start docker")
|
|
104
|
-
run("sudo usermod -aG docker $USER")
|
|
105
|
-
print("")
|
|
106
|
-
print("[green]✅ Docker setup done![/green]")
|
|
107
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|