Skip to content

Commit

Permalink
better --versions output with multiple solver config
Browse files Browse the repository at this point in the history
  • Loading branch information
karmacoma-eth committed Nov 13, 2024
1 parent f58c516 commit 3c1be80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/jsi/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,14 +374,15 @@ def main(args: list[str] | None = None) -> int:
if config.solver_versions:
import subprocess

for solver_name in enabled_solvers:
executables: set[str] = set(defs[x].executable for x in enabled_solvers)
for executable in executables:
output = subprocess.run(
[available_solvers[solver_name], "--version"],
[executable, "--version"],
capture_output=True,
text=True,
).stdout
print(f"{executable}: {extract_version(output)}")

print(f"{solver_name}: {extract_version(output)}")
return 0

commands: list[Command] = base_commands(
Expand Down

0 comments on commit 3c1be80

Please sign in to comment.