modforge-cli 0.2.4.1__tar.gz → 0.2.5__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.
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/PKG-INFO +1 -1
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/pyproject.toml +1 -1
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/__main__.py +28 -20
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/__version__.py +1 -1
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/LICENSE +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/README.md +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/__init__.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/api/__init__.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/api/modrinth.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/cli/__init__.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/cli/export.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/cli/modpack.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/cli/project.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/cli/setup.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/cli/shared.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/cli/sklauncher.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/cli/utils.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/core/__init__.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/core/downloader.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/core/models.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/core/policy.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/core/resolver.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/core/utils.py +0 -0
- {modforge_cli-0.2.4.1 → modforge_cli-0.2.5}/src/modforge_cli/test.py +0 -0
|
@@ -9,7 +9,6 @@ from rich.panel import Panel
|
|
|
9
9
|
from rich.text import Text
|
|
10
10
|
import typer
|
|
11
11
|
|
|
12
|
-
from modforge_cli.cli import export, modpack, project, setup, sklauncher, utils
|
|
13
12
|
from modforge_cli.cli.shared import (
|
|
14
13
|
DEFAULT_MODRINTH_API_URL,
|
|
15
14
|
DEFAULT_POLICY_URL,
|
|
@@ -30,14 +29,8 @@ app = typer.Typer(
|
|
|
30
29
|
)
|
|
31
30
|
|
|
32
31
|
# Setup crash logging
|
|
33
|
-
|
|
34
|
-
|
|
35
32
|
LOG_DIR = setup_crash_logging()
|
|
36
33
|
|
|
37
|
-
# Ensure configs exist
|
|
38
|
-
ensure_config_file(MODRINTH_API, DEFAULT_MODRINTH_API_URL, "Modrinth API", console)
|
|
39
|
-
ensure_config_file(POLICY_PATH, DEFAULT_POLICY_URL, "Policy", console)
|
|
40
|
-
|
|
41
34
|
|
|
42
35
|
def render_banner() -> None:
|
|
43
36
|
"""Renders a stylized banner"""
|
|
@@ -75,7 +68,6 @@ def main_callback(
|
|
|
75
68
|
"""ModForge-CLI: A powerful Minecraft modpack manager for Modrinth."""
|
|
76
69
|
|
|
77
70
|
if verbose:
|
|
78
|
-
# Enable verbose logging
|
|
79
71
|
logging.basicConfig(
|
|
80
72
|
level=logging.DEBUG,
|
|
81
73
|
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
|
@@ -105,23 +97,39 @@ def main_callback(
|
|
|
105
97
|
console.print("\nRun [white]ModForge-CLI --help[/white] for details.\n")
|
|
106
98
|
|
|
107
99
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
app.command()(
|
|
117
|
-
app.
|
|
118
|
-
app.command()(
|
|
100
|
+
def register_commands() -> None:
|
|
101
|
+
"""
|
|
102
|
+
Import and register CLI command modules.
|
|
103
|
+
Delayed import prevents import-time crashes.
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
from modforge_cli.cli import export, modpack, project, setup, sklauncher
|
|
107
|
+
|
|
108
|
+
app.command()(setup.setup)
|
|
109
|
+
app.add_typer(project.app, name="project", help="Project management commands")
|
|
110
|
+
app.command("ls")(project.list_projects)
|
|
111
|
+
app.command()(project.remove)
|
|
112
|
+
app.command()(modpack.add)
|
|
113
|
+
app.command()(modpack.resolve)
|
|
114
|
+
app.command()(modpack.build)
|
|
115
|
+
app.command()(export.export)
|
|
116
|
+
app.command()(export.validate)
|
|
117
|
+
app.command()(sklauncher.sklauncher)
|
|
119
118
|
|
|
120
119
|
|
|
121
120
|
def main() -> None:
|
|
122
121
|
"""Main entry point"""
|
|
122
|
+
|
|
123
|
+
# Ensure configs exist BEFORE importing commands
|
|
124
|
+
ensure_config_file(MODRINTH_API, DEFAULT_MODRINTH_API_URL, "Modrinth API", console)
|
|
125
|
+
ensure_config_file(POLICY_PATH, DEFAULT_POLICY_URL, "Policy", console)
|
|
126
|
+
|
|
127
|
+
# Register CLI commands
|
|
128
|
+
register_commands()
|
|
129
|
+
|
|
130
|
+
# Run CLI
|
|
123
131
|
app()
|
|
124
132
|
|
|
125
133
|
|
|
126
134
|
if __name__ == "__main__":
|
|
127
|
-
main()
|
|
135
|
+
main()
|
|
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
|
|
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
|