stackforge-cli 0.1.2__tar.gz → 0.1.3__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.
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/PKG-INFO +1 -1
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/pyproject.toml +1 -1
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/scaffold.py +19 -9
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/ui.py +3 -3
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge_cli.egg-info/PKG-INFO +1 -1
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/README.md +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/setup.cfg +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/__init__.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/__init__.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/api_generator.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/config_generator.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/csproj_generator.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/docker_generator.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/git_generator.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/layers_generator.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/program_generator.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/scaffolder.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/project_name.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/version.py +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge_cli.egg-info/SOURCES.txt +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge_cli.egg-info/dependency_links.txt +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge_cli.egg-info/entry_points.txt +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge_cli.egg-info/requires.txt +0 -0
- {stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge_cli.egg-info/top_level.txt +0 -0
|
@@ -6,15 +6,22 @@ from stackforge import ui
|
|
|
6
6
|
import sys
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
FRAMEWORK_CHOICES = frozenset({"dotnet", "django", "fastapi", "flask", "exit"})
|
|
10
|
+
|
|
11
|
+
|
|
9
12
|
def select_framework() -> str:
|
|
10
13
|
ui.info("\n Select a framework:\n")
|
|
11
|
-
ui.
|
|
12
|
-
ui.
|
|
13
|
-
ui.
|
|
14
|
-
ui.
|
|
15
|
-
ui.
|
|
16
|
-
|
|
17
|
-
choice = ui.prompt("\n
|
|
14
|
+
ui.menu_item("dotnet", ".NET Clean Architecture (CQRS)")
|
|
15
|
+
ui.menu_item("django", "Django [coming soon]", style=ui.Fore.YELLOW)
|
|
16
|
+
ui.menu_item("fastapi", "FastAPI [coming soon]", style=ui.Fore.YELLOW)
|
|
17
|
+
ui.menu_item("flask", "Flask [coming soon]", style=ui.Fore.YELLOW)
|
|
18
|
+
ui.menu_item("exit", "Exit", style=ui.Fore.RED)
|
|
19
|
+
|
|
20
|
+
choice = ui.prompt("\n Framework [dotnet]:").lower() or "dotnet"
|
|
21
|
+
if choice not in FRAMEWORK_CHOICES:
|
|
22
|
+
ui.error(f"Unknown framework '{choice}'.")
|
|
23
|
+
ui.step("Options: dotnet, django, fastapi, flask, exit\n")
|
|
24
|
+
return ""
|
|
18
25
|
return choice
|
|
19
26
|
|
|
20
27
|
|
|
@@ -30,11 +37,14 @@ def main():
|
|
|
30
37
|
while True:
|
|
31
38
|
framework = select_framework()
|
|
32
39
|
|
|
33
|
-
if framework
|
|
40
|
+
if not framework:
|
|
41
|
+
continue
|
|
42
|
+
|
|
43
|
+
if framework == "exit":
|
|
34
44
|
ui.warn("\n Exiting...")
|
|
35
45
|
break
|
|
36
46
|
|
|
37
|
-
if framework != "
|
|
47
|
+
if framework != "dotnet":
|
|
38
48
|
ui.warn("\n This framework is under development. Stay tuned!\n")
|
|
39
49
|
continue
|
|
40
50
|
|
|
@@ -4,7 +4,7 @@ init(autoreset=True)
|
|
|
4
4
|
|
|
5
5
|
__all__ = [
|
|
6
6
|
"BANNER", "banner", "section", "step", "file_created", "success",
|
|
7
|
-
"warn", "error", "info", "prompt", "
|
|
7
|
+
"warn", "error", "info", "prompt", "menu_item", "done", "muted",
|
|
8
8
|
"Fore", "Style",
|
|
9
9
|
]
|
|
10
10
|
|
|
@@ -60,8 +60,8 @@ def prompt(label: str) -> str:
|
|
|
60
60
|
return input(f" {Style.BRIGHT}{Fore.CYAN}{label}{Style.RESET_ALL} ").strip()
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
def
|
|
64
|
-
print(f" {style}{
|
|
63
|
+
def menu_item(key: str, label: str, *, style: str = Fore.GREEN) -> None:
|
|
64
|
+
print(f" {style}{key:<10}{Style.RESET_ALL} {label}")
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
def done() -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/api_generator.py
RENAMED
|
File without changes
|
{stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/config_generator.py
RENAMED
|
File without changes
|
{stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/csproj_generator.py
RENAMED
|
File without changes
|
{stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/docker_generator.py
RENAMED
|
File without changes
|
{stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/git_generator.py
RENAMED
|
File without changes
|
{stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/layers_generator.py
RENAMED
|
File without changes
|
{stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge/engines/dotnet/program_generator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackforge_cli-0.1.2 → stackforge_cli-0.1.3}/src/stackforge_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|