Skip to content

Commit abb3c24

Browse files
committed
feat(main): add verbose commands on tools list index
1 parent 01e182e commit abb3c24

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

core/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
UNITS = tuple[str](("o", "ko", "Mo", "Go", "To"))
1919

2020
def helper(commands: tuple) -> None:
21-
colors = tuple[str]((Colors.cyan, Colors.yellow, Colors.red))
22-
screen = list[str]([ " List of commands:\n" ])
21+
colors = tuple[str]((Colors.cyan, Colors.yellow, Colors.red))
22+
screen = list[str]([ " List of commands:\n" ])
2323

2424
for i, command in enumerate(commands):
25-
c = int(1 if(i in range((len(commands)-4), (len(commands)-1))) else 0)
26-
c = int(2 if(i in range((len(commands)-1), (len(commands)))) else c)
27-
sep = str('\n' if(i in (len(commands)-5, len(commands)-2)) else '')
25+
c = int(1 if(i in range((len(commands)-4), (len(commands)-1))) else 0)
26+
c = int(2 if(i in range((len(commands)-1), (len(commands)))) else c)
27+
sep = str('\n' if(i in (len(commands)-5, len(commands)-2)) else '')
2828

2929
command = str(f" {colors[c]}{command[1]}{Colors.end}{sep}")
3030

@@ -45,9 +45,9 @@ def launch(tool: Tool, args: list[str]) -> bool:
4545
return(True)
4646

4747
def sortTools(tools: list[Tool]) -> list[Tool]:
48-
print(f"\n {' '*1}* Name{' '*(12-len('Name'))}Path")
48+
print(f"\n {' '*1}* Name{' '*(12-len('Name'))}Command{' '*(16-len('Command'))}Path")
4949
for i, tool in enumerate(tools, start=1):
50-
print(f" {' '*(2-len(str(i)))}{i}. {tool.name}{' '*(12-len(tool.name))}{tool.path}", end="\n"*(2 if(i == len(tools)) else 1))
50+
print(f" {' '*(2-len(str(i)))}{i}. {tool.name}{' '*(12-len(tool.name))}{tool.command[1]}{' '*(16-len(tool.command[1]))}{tool.path}", end="\n"*(2 if(i == len(tools)) else 1))
5151

5252
return(tools)
5353

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def arg() -> bool:
2222
args = dict({
2323
"prefix": tuple[tuple[tuple[str], str]]((
2424
(("-l", "--list"), ""),
25-
(("-t", "--tool"), "<toolName>"),
25+
(("-t", "--tool"), "<tool>"),
2626
(("-h", "--help"), ""),
2727
(("-D", "--debug"), ""),
2828
(("-v", "--version"), "")

tools/wslBuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class WslBuilder(Tool):
1616
command = (("wslbuilder", "wb"), "(wb)wslbuilder")
1717
name = "WSLBuilder"
1818
path = __file__
19-
version = "0.1a"
19+
version = "1.0"
2020

2121
def __init__(self, args: list[str]):
2222
super().__init__()

0 commit comments

Comments
 (0)