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
{{ message }}
Repository navigation
Refactor RunCommand to use execute helper from cli_tools #4439
Refactor RunCommand._executeScript to use the new execute helper function from cli_tools instead of manually managing process execution, signal forwarding, and stdin/stdout/stderr streaming.
Context
The RunCommand._executeScript method in tools/serverpod_cli/lib/src/commands/run.dart currently implements shell command execution with:
Shell invocation (bash/cmd)
Signal forwarding (SIGINT, SIGTERM)
stdin passthrough to child process
Real-time stdout/stderr streaming
Exit code handling
The cli_tools package now provides an execute helper function (see serverpod/cli_tools#96) that encapsulates all this functionality with proper signal propagation, stdin/stdout/stderr forwarding, and optional working directory support.
Benefits
Reduces code duplication by using shared utility
Simplifies RunCommand implementation
Centralizes shell execution logic in cli_tools
Improves maintainability - fixes and improvements to execute benefit all consumers
Implementation
Replace the custom _executeScript implementation with a call to the execute function from cli_tools:
Activity
nielsenko commentedon Dec 12, 2025
This requires bumping
cli_toolsto ^10.0.0, which is the real work in this issue.