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

Make it easier to maintain the 'scaffold' part of each script #14

Open
mzball-dt opened this issue Jan 19, 2021 · 1 comment
Open

Make it easier to maintain the 'scaffold' part of each script #14

mzball-dt opened this issue Jan 19, 2021 · 1 comment

Comments

@mzball-dt
Copy link
Owner

With so much duplication between the scripts it is currently difficult to apply and manage bug fixes or feature enhancements across them all.

This could be resolved with some sort of automation process? A Template structure that either fills the scripts or replaces parts of the scripts based on a central point.

Example:
Demarcate the standard parts of the scripts with a %% Start X Region %% and %% Stop X Region %% and then replace those regions with the contents of a snippet.X.region.ps1 file that's kept in the helpers folder.

@mzball-dt
Copy link
Owner Author

I'm not too keen on giving up the benefit of having scripts that have no dependencies. An alternate solution to this would be to create a Powershell Module and use it's module loading dependency system.
This would change the easy - copy/paste/run work flow into something closer to 'install/run'.

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

No branches or pull requests

1 participant