Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins for custom functions #635

Merged
merged 1 commit into from
Oct 23, 2019
Merged

Plugins for custom functions #635

merged 1 commit into from
Oct 23, 2019

Conversation

hairyhenderson
Copy link
Owner

@hairyhenderson hairyhenderson commented Oct 16, 2019

Fixes #580

Implements a new --plugin command line flag. It's a pretty straightforward feature - just adds new functions on the command line that will cause external processes to be run. Stdout is rendered
into the template, and Stderr is passed through to the main Stderr. Arguments are passed through as positional args to the given process.

Scripts are also supported on all OSes, including Powershell (.ps1) and CMD (.cmd and .bat) scripts (on Windows), where the powershell or pwsh or cmd.exe command will be used.

Signed-off-by: Dave Henderson [email protected]

@hairyhenderson hairyhenderson force-pushed the function-plugins-580 branch 9 times, most recently from 13295f1 to 64a6ad0 Compare October 20, 2019 02:31
@hairyhenderson hairyhenderson marked this pull request as ready for review October 20, 2019 02:31
@hairyhenderson hairyhenderson force-pushed the function-plugins-580 branch 10 times, most recently from 1cb999d to 6f3bcff Compare October 22, 2019 04:07
Signed-off-by: Dave Henderson <[email protected]>
@hairyhenderson hairyhenderson merged commit 08d705e into master Oct 23, 2019
@hairyhenderson hairyhenderson deleted the function-plugins-580 branch October 23, 2019 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Function plugins to execute external programs during template rendering
1 participant