Skip to content

Conversation

bcpeinhardt
Copy link
Collaborator

Previously the stdio values were being hardcoded by platform. This PR injects the stdio values from the serpent CLI instead, enabling E2E testing of the CLI with a MockPTY as well as being the more correct solution for integrating into coder.

@bcpeinhardt bcpeinhardt requested a review from f0ssel September 11, 2025 15:33
cli/cli.go Outdated

// Run executes the jail command with the given configuration and arguments
func Run(config Config, args []string) error {
func Run(config Config, stdin io.Reader, stdout, stderr io.Writer, args []string) error {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose these should go in the config

@bcpeinhardt bcpeinhardt marked this pull request as draft September 11, 2025 20:13
@bcpeinhardt
Copy link
Collaborator Author

You know what... I'll come back to this 💀

@f0ssel f0ssel deleted the bcpeinhardt/dependency-inject-stdio branch September 16, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant