Merge pull request #457 from PR0M3TH3AN/codex/fix-seedpass-command-not-working

Fix SeedPass CLI launcher
This commit is contained in:
thePR0M3TH3AN
2025-07-11 11:33:09 -04:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -125,10 +125,10 @@ main() {
# 7. Create launcher script # 7. Create launcher script
print_info "Creating launcher script at '$LAUNCHER_PATH'..." print_info "Creating launcher script at '$LAUNCHER_PATH'..."
mkdir -p "$LAUNCHER_DIR" mkdir -p "$LAUNCHER_DIR"
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"

View File

@@ -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()