devops33 0.3.0__tar.gz → 0.4.0__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.
- {devops33-0.3.0 → devops33-0.4.0}/PKG-INFO +1 -1
- {devops33-0.3.0 → devops33-0.4.0}/devops/main.py +51 -38
- {devops33-0.3.0 → devops33-0.4.0}/devops33.egg-info/PKG-INFO +1 -1
- {devops33-0.3.0 → devops33-0.4.0}/pyproject.toml +1 -1
- {devops33-0.3.0 → devops33-0.4.0}/LICENSE +0 -0
- {devops33-0.3.0 → devops33-0.4.0}/README.md +0 -0
- {devops33-0.3.0 → devops33-0.4.0}/devops/__init__.py +0 -0
- {devops33-0.3.0 → devops33-0.4.0}/devops/__main__.py +0 -0
- {devops33-0.3.0 → devops33-0.4.0}/devops33.egg-info/SOURCES.txt +0 -0
- {devops33-0.3.0 → devops33-0.4.0}/devops33.egg-info/dependency_links.txt +0 -0
- {devops33-0.3.0 → devops33-0.4.0}/devops33.egg-info/entry_points.txt +0 -0
- {devops33-0.3.0 → devops33-0.4.0}/devops33.egg-info/top_level.txt +0 -0
- {devops33-0.3.0 → devops33-0.4.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devops33
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: An interactive CLI tool for learning Docker, Git, Prometheus, and Kubernetes commands.
|
|
5
5
|
Author-email: DevOps Assistant <assistant@example.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/example/devops-lab-assistant
|
|
@@ -2,17 +2,16 @@ import os
|
|
|
2
2
|
import sys
|
|
3
3
|
import time
|
|
4
4
|
|
|
5
|
-
# --- ANSI Color
|
|
5
|
+
# --- Subtle ANSI Color Palette ---
|
|
6
6
|
class Colors:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
DIM = '\033[2m'
|
|
8
|
+
GREY = '\033[90m'
|
|
9
|
+
SOFT_BLUE = '\033[34m'
|
|
10
|
+
SOFT_CYAN = '\033[36m'
|
|
11
|
+
SOFT_GREEN = '\033[32m'
|
|
12
|
+
SOFT_YELLOW = '\033[33m'
|
|
13
13
|
BOLD = '\033[1m'
|
|
14
|
-
|
|
15
|
-
END = '\033[0m'
|
|
14
|
+
RESET = '\033[0m'
|
|
16
15
|
|
|
17
16
|
# --- Command Data ---
|
|
18
17
|
COMMANDS = {
|
|
@@ -103,72 +102,86 @@ def clear_screen():
|
|
|
103
102
|
|
|
104
103
|
def print_banner():
|
|
105
104
|
banner = f"""
|
|
106
|
-
{Colors.
|
|
107
|
-
DEVOPS
|
|
108
|
-
|
|
105
|
+
{Colors.GREY}{Colors.BOLD}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
106
|
+
DEVOPS WORKFLOW SEQUENCER
|
|
107
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━{Colors.RESET}
|
|
109
108
|
"""
|
|
110
109
|
print(banner)
|
|
111
110
|
|
|
112
111
|
def print_all_commands():
|
|
113
112
|
clear_screen()
|
|
114
113
|
print_banner()
|
|
115
|
-
print(f"{Colors.
|
|
114
|
+
print(f"{Colors.SOFT_CYAN}Initializing full workflow sequence...{Colors.RESET}\n")
|
|
115
|
+
time.sleep(0.5)
|
|
116
116
|
|
|
117
|
+
index = 1
|
|
117
118
|
for category, cmds in COMMANDS.items():
|
|
118
|
-
print(f"{Colors.
|
|
119
|
+
print(f"\n{Colors.BOLD}{Colors.SOFT_BLUE}[ {category.upper()} ]{Colors.RESET}")
|
|
120
|
+
print(f"{Colors.GREY}─────────────────────────────────────────{Colors.RESET}")
|
|
119
121
|
for item in cmds:
|
|
120
|
-
print(f"{Colors.
|
|
122
|
+
print(f"{Colors.SOFT_GREEN}[{index:02d}]{Colors.RESET} {Colors.BOLD}{item['cmd']}{Colors.RESET}")
|
|
123
|
+
print(f" {Colors.GREY}↳ {item['desc']}{Colors.RESET}")
|
|
124
|
+
index += 1
|
|
125
|
+
time.sleep(0.05) # Subtle "processing" delay
|
|
121
126
|
print()
|
|
122
127
|
|
|
123
|
-
|
|
128
|
+
print(f"\n{Colors.SOFT_GREEN}✓ Sequence complete.{Colors.RESET}")
|
|
129
|
+
input(f"\n{Colors.GREY}Return to control center...{Colors.RESET}")
|
|
124
130
|
|
|
125
131
|
def show_category(category):
|
|
126
132
|
clear_screen()
|
|
127
133
|
print_banner()
|
|
128
|
-
print(f"{Colors.
|
|
134
|
+
print(f"{Colors.SOFT_CYAN}Loading {category} process sequence...{Colors.RESET}\n")
|
|
135
|
+
time.sleep(0.3)
|
|
129
136
|
|
|
130
|
-
|
|
131
|
-
|
|
137
|
+
print(f"{Colors.BOLD}{Colors.SOFT_BLUE}[ {category.upper()} ]{Colors.RESET}")
|
|
138
|
+
print(f"{Colors.GREY}─────────────────────────────────────────{Colors.RESET}")
|
|
132
139
|
|
|
133
|
-
|
|
140
|
+
for i, item in enumerate(COMMANDS[category], 1):
|
|
141
|
+
print(f"{Colors.SOFT_GREEN}[{i:02d}]{Colors.RESET} {Colors.BOLD}{item['cmd']}{Colors.RESET}")
|
|
142
|
+
print(f" {Colors.GREY}↳ {item['desc']}{Colors.RESET}")
|
|
143
|
+
time.sleep(0.05)
|
|
144
|
+
|
|
145
|
+
print(f"\n{Colors.SOFT_GREEN}✓ Sequence ready.{Colors.RESET}")
|
|
146
|
+
input(f"\n{Colors.GREY}Return to control center...{Colors.RESET}")
|
|
134
147
|
|
|
135
148
|
def main():
|
|
136
149
|
while True:
|
|
137
150
|
clear_screen()
|
|
138
151
|
print_banner()
|
|
139
|
-
print(f"{Colors.
|
|
140
|
-
print(f"{Colors.
|
|
141
|
-
print(f"{Colors.
|
|
142
|
-
print(f"{Colors.
|
|
143
|
-
print(f"{Colors.
|
|
144
|
-
print(f"{Colors.
|
|
145
|
-
print(f"{Colors.
|
|
152
|
+
print(f"{Colors.DIM}Select operational module:{Colors.RESET}")
|
|
153
|
+
print(f"{Colors.SOFT_CYAN}01.{Colors.RESET} Docker Services")
|
|
154
|
+
print(f"{Colors.SOFT_CYAN}02.{Colors.RESET} Git Workflow")
|
|
155
|
+
print(f"{Colors.SOFT_CYAN}03.{Colors.RESET} Prometheus & Utilities")
|
|
156
|
+
print(f"{Colors.SOFT_CYAN}04.{Colors.RESET} Kubernetes Cluster")
|
|
157
|
+
print(f"{Colors.SOFT_CYAN}05.{Colors.RESET} {Colors.BOLD}Sequential Workflow Listing{Colors.RESET}")
|
|
158
|
+
print(f"{Colors.GREY}06.{Colors.RESET} Exit System")
|
|
146
159
|
|
|
147
|
-
choice = input(f"\n{Colors.
|
|
160
|
+
choice = input(f"\n{Colors.SOFT_YELLOW}cmd_select >> {Colors.RESET}")
|
|
148
161
|
|
|
149
|
-
if choice
|
|
162
|
+
if choice in ['1', '01']:
|
|
150
163
|
show_category("Docker")
|
|
151
|
-
elif choice
|
|
164
|
+
elif choice in ['2', '02']:
|
|
152
165
|
show_category("Git")
|
|
153
|
-
elif choice
|
|
166
|
+
elif choice in ['3', '03']:
|
|
154
167
|
show_category("Prometheus & Utils")
|
|
155
|
-
elif choice == '4':
|
|
168
|
+
elif choice == '4' or choice == '04':
|
|
156
169
|
show_category("Kubernetes")
|
|
157
|
-
elif choice == '5':
|
|
170
|
+
elif choice == '5' or choice == '05':
|
|
158
171
|
print_all_commands()
|
|
159
|
-
elif choice == '6':
|
|
160
|
-
print(f"\n{Colors.
|
|
161
|
-
time.sleep(
|
|
172
|
+
elif choice == '6' or choice == '06':
|
|
173
|
+
print(f"\n{Colors.SOFT_GREEN}System shutdown initiated...{Colors.RESET}")
|
|
174
|
+
time.sleep(0.8)
|
|
162
175
|
break
|
|
163
176
|
else:
|
|
164
|
-
print(f"\n{Colors.
|
|
177
|
+
print(f"\n{Colors.SOFT_YELLOW}Command unrecognized.{Colors.RESET}")
|
|
165
178
|
time.sleep(1)
|
|
166
179
|
|
|
167
180
|
def run():
|
|
168
181
|
try:
|
|
169
182
|
main()
|
|
170
183
|
except KeyboardInterrupt:
|
|
171
|
-
print(f"\n\n{Colors.
|
|
184
|
+
print(f"\n\n{Colors.GREY}Process terminated by user.{Colors.RESET}")
|
|
172
185
|
sys.exit(0)
|
|
173
186
|
|
|
174
187
|
if __name__ == "__main__":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devops33
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: An interactive CLI tool for learning Docker, Git, Prometheus, and Kubernetes commands.
|
|
5
5
|
Author-email: DevOps Assistant <assistant@example.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/example/devops-lab-assistant
|
|
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
|