Skip to content

os: add execute_opt function - #19723

Merged
spytheman merged 2 commits into
vlang:masterfrom
ttytm:os/execute_opt
Nov 1, 2023
Merged

spytheman merged 2 commits into
vlang:masterfrom
ttytm:os/execute_opt

Conversation

@ttytm

@ttytm ttytm commented Nov 1, 2023 •

Copy link
Copy Markdown
Member

Add execute_opt function to simplify error handling. Would allow to use or-blocks with returns / continues, passing errors as values from subfunctions etc.

πŸ€– Generated by Copilot at 02d7673

Add execute_opt function to vlib/os/os.v to run commands and handle errors with Result. This enables parallel testing support.

πŸ€– Generated by Copilot at 02d7673

  • Add execute_opt function to simplify error handling when running external commands (link)

Comment thread vlib/os/os.v
@spytheman
spytheman merged commit c82c760 into vlang:master Nov 1, 2023
@ttytm
ttytm deleted the os/execute_opt branch November 1, 2023 19:47
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.

2 participants