Invoke-ShouldProcess Closure concern?
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- powershell
- 领域
- cli
调研方向
首先,在 PowerShell 中复现所提供的 Invoke-ShouldProcess 示例,并检查该命令的闭包和作用域行为。该 issue 未指定文件或测试;完成标准应是确认作用域结果,并明确定义后续更改或文档更新。
由索引模型根据 Issue 内容生成。
描述
When passing a script to Invoke-ShouldProcess if you assign a variable defined in the caller, will the variable get modified by the callee in the caller scope?
e.g.:
$output = $null
Invoke-ShouldProcess 'assign $output' {
$output = "This is a test"
}
$output | Should Be 'This is a test'
- 主要语言
- PowerShell
- 星标
- 10
- 派生
- 4
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
IntelliTect/PSToolbox 的其他 Issue
-
chore: add .gitattributes -- no line-ending normalization, CRLF and mixed endings already committed未关闭
难度 2/5 半天 新手友好度 80/100
IntelliTect/PSToolbox#119 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
IntelliTect/PSToolbox#118 ·
-
难度 5/5 一周以上 新手友好度 25/100
IntelliTect/PSToolbox#117 · 1 条评论 ·
-
Migrate non-related deliverables to its own repo可能重新可做 @BenjaminMichaelis 于 1700 天前认领,目前没有进行中的 PR。 未关闭
IntelliTect/PSToolbox#113 · 已指派 1 人 ·
-
难度 3/5 1-2 天 新手友好度 42/100
IntelliTect/PSToolbox#112 ·
查看 IntelliTect/PSToolbox 的全部 Issue
相似的 Issue
-
automation models
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area: agents area: cli bug difficulty:2 help wanted S3: minor
难度 2/5 1-3 小时 新手友好度 82/100
manaflow-ai/cmux#15718 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
foundry-rs/foundry#17175 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
canonical/testflinger#1346 · 1 条评论 ·
维护者通常 2 天内回复