简体   繁体   English

Powershell模块层次结构

[英]powershell module hierachy

Stack, 堆,

Suppose I have multiple 3 powershell modules, called: master.psm1 , child1.psm1 , child2.psm1 in the same local directory. 假设我在同一个本地目录中有多个3个powershell模块,分别称为: master.psm1child1.psm1child2.psm1 I want to call Import-Module only on master.psm1 and have child1 and child2 imported as well. 我只想在master.psm1上调用Import-Module ,并且也要导入child1child2

Does powershell support this? powershell支持吗? I don't think this supported, but wanted to be sure. 我不认为这支持,但想确定。

I believe you can use the answer to this question (use nested modules in a .psd1 file): 我相信您可以使用此问题的答案(在.psd1文件中使用嵌套模块):

Create a manifest for nested PowerShell modules 1 为嵌套的PowerShell模块创建清单 1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM