[英]how to modularize powershell scripts
I'm a programmer, though new to powershell. 我是程序员,虽然是PowerShell的新手。 I am scripting tasks/configurations such as these:
我正在编写如下脚本的任务/配置:
How should small powershell scripts be wrapped in a way to make the solution modular and testable? 如何将小型PowerShell脚本包装成使解决方案模块化和可测试的方式?
For at least some of these tasks, it sounds like you would be better served by using a Configuration Management framework like PowerShell Desired State Configuration . 对于至少其中一些任务,听起来使用像PowerShell Desired State Configuration这样的配置管理框架会更好。
Of course other CM solutions like Puppet and Chef are available as well. 当然还有其他CM解决方案,如Puppet和Chef。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.