TekWizely / bash-tpl

A smart, lightweight shell script templating engine, written in Bash
MIT License
65 stars 4 forks source link

feat: Support .INCLUDE? #23

Closed TekWizely closed 3 months ago

TekWizely commented 3 months ago

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

TekWizely commented 3 months ago

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

dkebler commented 3 months ago

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 commented 2 months ago

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

dkebler commented 2 months ago

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 :).