Skip to content

Add a helper function for changing the state of __exec_raw__#47

Merged
islas merged 2 commits into
releases/1.1.0from
exec_raw_helper_func
May 12, 2026
Merged

Add a helper function for changing the state of __exec_raw__#47
islas merged 2 commits into
releases/1.1.0from
exec_raw_helper_func

Conversation

@islas

@islas islas commented May 12, 2026

Copy link
Copy Markdown
Owner

Control of whether the output of Action.execute_subprocess() is dictated by the internal Action attribute __exec_raw__.

If users need to execute some subprocess within their custom Action with wrapped logging output, they need to ensure this value is set correctly. Likewise, to ensure consistent logging, users would need to reinstate the previous value after the subprocess finishes.

Rather than require temp variable and read/write of a private variable the control can now be facilitated by a push/pop set of helper functions.

pop_exec_raw() should only be called after a corresponding push_exec_raw() call. Multiple nested calls are not supported at this time (e.g. multiple push before equivalent pop) as it is meant to only wrap around execute_subprocess() calls.

@islas islas merged commit d4305cb into releases/1.1.0 May 12, 2026
8 checks passed
@islas islas mentioned this pull request Jun 15, 2026
islas added a commit that referenced this pull request Jun 15, 2026
# Official release

Includes the following PRs:
* #38
* #39
* #40
* #41
* #42 
* #43 
* #44 
* #45 
* #46 
* #47 
* #48 
* #49 
* #50 
* #51 
* #52 
* #53 
* #54 
* #55
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