Rename-Item: Tell about NewName parameter allow scriptBlock
维护者通常 1 天内回复
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 88/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- powershell
调研方向
编辑 reference/5.1/Microsoft.PowerShell.Management/Rename-Item.md 的 -NewName 部分,并检查 reference/ 下较新版本文件夹中是否需要相同的措辞(该 issue 链接到 7.6 页面)。说明 -NewName 除了字符串外还接受脚本块,并添加该 issue 提供的示例 Get-ChildItem *.txt | Rename-Item -NewName { $_.Name -replace '.txt','.log' }。当参数说明和示例在 Markdown 中正确呈现时即完成。
由索引模型根据 Issue 内容生成。
描述
Type of issue
Missing information
Feedback
Please modify doc about newname.
Not only string are allowed
Get-ChildItem *.txt | Rename-Item -NewName { $_.Name -replace '.txt','.log' }
Get-ChildItem *.log
Thanks
Page URL
Content source URL
Author
@sdwheeler
Platform Id
03fe7cd2-32ae-598c-cf3e-49a14abc07ee
Document Id
0e1d944b-6c55-89ed-8e9a-5e5532dba818
- 主要语言
- PowerShell
- 星标
- 2.6k
- 派生
- 1.7k
- 平均合并
- 3 小时 49 分钟
- 30 天内合并 PR
- 5
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MicrosoftDocs/PowerShell-Docs 的其他 Issue
-
难度 1/5 1-3 小时 新手友好度 88/100
MicrosoftDocs/PowerShell-Docs#13431 ·
维护者通常 1 天内回复
-
about_Logging_Windows: registry example creates EnableScriptBlockLogging as a string, which PowerShell 7 ignores可能已有人在做 @CHX606 今天认领。 未关闭needs-triage
难度 2/5 1-3 小时 新手友好度 90/100
MicrosoftDocs/PowerShell-Docs#13423 ·
维护者通常 1 天内回复
-
needs-triage
难度 1/5 1 小时以内 新手友好度 68/100
MicrosoftDocs/PowerShell-Docs#13419 ·
维护者通常 1 天内回复
-
issue-doc-bug needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
MicrosoftDocs/PowerShell-Docs#13413 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
MicrosoftDocs/PowerShell-Docs#13407 ·
维护者通常 1 天内回复
查看 MicrosoftDocs/PowerShell-Docs 的全部 Issue
相似的 Issue
-
enhancement good first issue help wanted
难度 1/5 1-3 小时 新手友好度 92/100
-
area:cli area:docs Platform vdr
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA-NeMo/Gym#7192 ·
维护者通常 2 天内回复
-
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.php未关闭enhancement feature: settings good first issue
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
open-telemetry/semantic-conventions-client-side#72 ·
维护者通常 1 天内回复
-
area: cli area: repo priority: P3 type: chore
难度 2/5 1-3 小时 新手友好度 84/100
appandflow/stim#6826 ·
维护者通常 1 天内回复