mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 23:38:49 +00:00
Fix CLI launcher and module entry
This commit is contained in:
@@ -128,7 +128,7 @@ main() {
|
|||||||
cat > "$LAUNCHER_PATH" << EOF2
|
cat > "$LAUNCHER_PATH" << EOF2
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source "$VENV_DIR/bin/activate"
|
source "$VENV_DIR/bin/activate"
|
||||||
exec "$VENV_DIR/bin/python" -m seedpass.cli "\$@"
|
exec "$VENV_DIR/bin/seedpass" "\$@"
|
||||||
EOF2
|
EOF2
|
||||||
chmod +x "$LAUNCHER_PATH"
|
chmod +x "$LAUNCHER_PATH"
|
||||||
|
|
||||||
|
@@ -573,3 +573,7 @@ def api_stop(ctx: typer.Context, host: str = "127.0.0.1", port: int = 8000) -> N
|
|||||||
)
|
)
|
||||||
except Exception as exc: # pragma: no cover - best effort
|
except Exception as exc: # pragma: no cover - best effort
|
||||||
typer.echo(f"Failed to stop server: {exc}")
|
typer.echo(f"Failed to stop server: {exc}")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app()
|
||||||
|
Reference in New Issue
Block a user