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

feat: Support .INCLUDE? #23

Merged
merged 1 commit into from
May 31, 2024
Merged

feat: Support .INCLUDE? #23

merged 1 commit into from
May 31, 2024

Conversation

TekWizely
Copy link
Owner

@TekWizely TekWizely commented May 29, 2024

Adds ability to try to include potentially missing files. Introduces .INCLUDE? directive.

docs: Adds docs for new directive
test: Adds tests for conditional includes
test: Adds ability to test against stderr
chore: updates CI Bats version to 1.7.0
chore: Sets bats_require_minimum_version to 1.7.0
chore: Adds 'shellcheck source' doc to all bash-tpl sourcing lines

--

closes #18
cc: @dkebler

Adds ability to try to include a potentially missing file.
Introduces .INCLUDE? directive.

docs: Adds docs for new text line
test: Adds tests for conditional includes
test: Adds ability to test against stderr
chore: updates CI bats version to 1.7.0
chore: Sets bats_require_minimum_version to 1.7.0
chore: Adds 'shellcheck source' doc to all bash-tpl source lines
@TekWizely
Copy link
Owner Author

@dkebler Please give this PR a test drive if you have time - would love to get some feedback before merging it.

@TekWizely TekWizely merged commit 1f9bb53 into main May 31, 2024
4 checks passed
@dkebler
Copy link

dkebler commented May 31, 2024

Sorry just saw this comment but will give it a try in the next week.

BTW bash-tpl has turned out to be a critical component for several involved/flexible bash scripts so thanks again!

@TekWizely
Copy link
Owner Author

@dkebler Just checking in to see if you had a chance to try the feature?

@TekWizely TekWizely deleted the feat/include-not-found branch June 17, 2024 16:39
@dkebler
Copy link

dkebler commented Jun 20, 2024

Ok, finally got some time to try it out. Yes .INCLUDE? is working so thx for adding this. No need for a dummy file now :).

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.

a conditional .INCLUDE throws error when file does not exist
2 participants