Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit c325349

Browse files
authored
the
1 parent 55f0424 commit c325349

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

xtools.py

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from lastversion import latest
22
from getpass import getpass
3+
from rich.console import Console
4+
c = Console()
35

46
#class for storing download data on individual download links
57
class Dwn:
@@ -28,19 +30,19 @@ def assembleUrl(self, missing):
2830
#this functions displays info on a specific tool
2931
def showInfo(tool):
3032
# print basic info
31-
print(f"Name: {tool.name}")
32-
if tool.command == 1: print("Download links:")
33-
elif tool.command == 2: print("Powershell commands:")
34-
elif tool.command == 3: print("Links that will open:")
35-
elif tool.command == 4: print("Links that will be retrieved:")
36-
elif tool.command == 5: print("Will be written to a new file:")
37-
for i in range(len(tool.dwn)): print(f"\t{tool.getDwn(i)}")
33+
c.print(f"Name: {tool.name}")
34+
if tool.command == 1: c.print("Download links:")
35+
elif tool.command == 2: c.print("Powershell commands:")
36+
elif tool.command == 3: c.print("Links that will open:")
37+
elif tool.command == 4: c.print("Links that will be retrieved:")
38+
elif tool.command == 5: c.print("Will be written to a new file:")
39+
for i in range(len(tool.dwn)): c.print(f"\t{tool.getDwn(i)}")
3840

3941
#check if tool.info leads to a website, if not, print it
4042

41-
print("Additional info:")
42-
if tool.info == "": print("\twhoopsie, we dont have any additional info on this tool :/")
43-
else: print(f"\t{tool.info}")
43+
c.print("Additional info:")
44+
if tool.info == "": c.print("\twhoopsie, we dont have any additional info on this tool :/")
45+
else: c.print(f"\t{tool.info}")
4446

4547
getpass("\n... press ENTER to continue ...", stream=None)
4648

@@ -66,9 +68,9 @@ def __init__(self, name, code, command, gotLatest, latestfn, info, dwn):
6668

6769
def getLatest(self):
6870
if not self.gotlatest:
69-
print("Checking for latest version...")
71+
c.print("Checking for latest version...")
7072
self.latest = self.latestfn()
71-
print(f"Found it: {self.latest}")
73+
c.print(f"Found it: {self.latest}")
7274
self.gotlatest = True
7375

7476
def getDwn(self, num):
@@ -897,8 +899,8 @@ def getDesc(self, num):
897899
r"https://archlinux.org/",
898900
[
899901
Dwn(
900-
"Arch-2023.11.01.iso", "Latest", "Arch 2023.11.01",
901-
r"https://mirror.rackspace.com/archlinux/iso/2023.11.01/archlinux-2023.11.01-x86_64.iso"
902+
"Arch-2023.12.01.iso", "Latest", "Arch 2023.12.01",
903+
r"https://mirror.rackspace.com/archlinux/iso/2023.12.01/archlinux-2023.12.01-x86_64.iso"
902904
)
903905
]
904906
),
@@ -998,11 +1000,11 @@ def getDesc(self, num):
9981000
[
9991001
Dwn(
10001002
"CachyOS KDE", "KDE Plasma", "CachyOS-KDE.iso",
1001-
r"https://mirror.cachyos.org/ISO/kde/231118/cachyos-kde-linux-231118.iso"
1003+
r"https://mirror.cachyos.org/ISO/kde/231210/cachyos-kde-linux-231210.iso"
10021004
),
10031005
Dwn(
10041006
"CachyOS GNOME", "GNOME", "CachyOS-GNOME.iso",
1005-
r"https://mirror.cachyos.org/ISO/gnome/231118/cachyos-gnome-linux-231118.iso"
1007+
r"https://mirror.cachyos.org/ISO/gnome/231210/cachyos-gnome-linux-231210.iso"
10061008
),
10071009
# Dwn(
10081010
# "CachyOS Xfce", "Xfce", "CachyOS-Xfce.iso",

0 commit comments

Comments
 (0)