You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: use cmd.exe on Windows instead of shell=True
Improves security and robustness:
- Always use shell=False (more secure)
- On Windows, explicitly call 'cmd /c' to execute .cmd files
- Simpler type annotations (list[str] vs Union)
- Consistent use of paths from shutil.which()
- Follows Windows best practices for subprocess execution
Co-Authored-By: Michael D'Angelo <michael@promptfoo.dev>
0 commit comments