Skip to content

Add support for POSIX shell plugin#25

Merged
taminob merged 34 commits into
mainfrom
feature/add-posix-shell-plugin
Apr 26, 2026
Merged

Add support for POSIX shell plugin#25
taminob merged 34 commits into
mainfrom
feature/add-posix-shell-plugin

Conversation

@taminob

@taminob taminob commented Apr 6, 2026

Copy link
Copy Markdown
Owner

This PR introduces support for POSIX shell plugins.

For this, it creates a subprocess containing a shell.
The functions are called by entering them via stdin in the interactive shell.
In order to detect the end of the process, a random end marker is written to stdout that marks the end of stdout of the function.
The entire stdout of the function is interpreted as its result. If the function exits with an exit code not equal to zero, a CallError is returned instead of stdout.

Additionally, some improvements and fixes were applied to GenericPlugin and Expected.

Resolves #18

@taminob taminob self-assigned this Apr 6, 2026
@taminob taminob added enhancement New feature or request shell Related to shell plugin labels Apr 6, 2026
@taminob taminob changed the title -Feature/add posix shell plugin Add support for POSIX shell plugin Apr 6, 2026
@taminob taminob force-pushed the feature/add-posix-shell-plugin branch from 9373a7b to 650f4d5 Compare April 7, 2026 00:13
@taminob taminob force-pushed the feature/add-posix-shell-plugin branch from 650f4d5 to 4f2a153 Compare April 7, 2026 00:24
@taminob taminob force-pushed the feature/add-posix-shell-plugin branch from 9c506fc to aff255b Compare April 26, 2026 13:22
@taminob taminob force-pushed the feature/add-posix-shell-plugin branch from 60b1465 to 8504909 Compare April 26, 2026 15:23
@taminob taminob enabled auto-merge (rebase) April 26, 2026 17:01
@taminob taminob disabled auto-merge April 26, 2026 17:01
@taminob taminob merged commit 150fd24 into main Apr 26, 2026
11 checks passed
@taminob taminob deleted the feature/add-posix-shell-plugin branch April 26, 2026 17:01
@taminob taminob mentioned this pull request Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request shell Related to shell plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for POSIX shell script plugins

1 participant