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

Add support for an ON::INIT script which initializes subshell environments #36

Merged
merged 8 commits into from
Oct 6, 2019

Conversation

jacobdeichert
Copy link
Owner

Describe the solution

This PR adds support for a new type of script: the ON::INIT hook. This script is ran in the subshell before executing a command which allows for common environment preparation to be done. This is especially useful for setting up common helpers and utilities your scripts depend on.

How to test

  • Added unit tests
  • Added integration tests

Types of changes

  • Bug fix
  • New feature
  • Breaking change

@jacobdeichert jacobdeichert changed the title On init script Add support for an ON::INIT script which initializes subshells Oct 6, 2019
@jacobdeichert jacobdeichert changed the title Add support for an ON::INIT script which initializes subshells Add support for an ON::INIT script which initializes subshell environments Oct 6, 2019
@jacobdeichert jacobdeichert merged commit ac965d9 into master Oct 6, 2019
@jacobdeichert jacobdeichert deleted the on-init-script branch April 4, 2020 15:26
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