Missing parameters implementations for the Update-MarkdownModuleFile command
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp
- Lĩnh vực
- cli, documentation
Hướng nghiên cứu
Start with the UpdateMarkdownModuleFileCommand class, where the issue says the HelpInfoUri and HelpVersion parameters exist but are never used. Compare it with New-MarkdownModuleFile, which already writes these values into the module front matter, and trace how the update path reads the manifest. Done when running Update-MarkdownModuleFile on a changed manifest rewrites Help Version and HelpInfoUri in the existing Test.md.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Steps to reproduce
The Update-MarkdownModuleFile command does not honor the HelpInfoUri and HelpVersion parameters (the properties are available in the UpdateMarkdownModuleFileCommand class, but not implemented).
Run New-MarkdownModuleFile with this module manifest snippet for Test.psd1 to create the module Markdown file:
Use
ModuleVersionfor theHelpVersionparameter.
@{
RootModule = 'Test.psm1'
ModuleVersion = '1.1.1'
HelpInfoURI = 'https://my-fancy-website/Test'
...
}
Then run Update-MarkdownModuleFile with an updated manifest snippet:
@{
RootModule = 'Test.psm1'
ModuleVersion = '2.0.0'
HelpInfoURI = 'https://someone-elses-fancy-website/Test'
...
}
Expected behavior
When created, front matter for module's Markdown Test.md is as follows:
---
document type: module
Help Version: 1.1.1
HelpInfoUri: https://my-fancy-website/Test
...
---
After running the update command with the updated manifest, the front matter should be as follows:
---
document type: module
Help Version: 2.0.0
HelpInfoUri: https://someone-elses-fancy-website/Test
...
---
Actual behavior
After running the update command, the front matter remains unchanged:
---
document type: module
Help Version: 1.1.1
HelpInfoUri: https://my-fancy-website/Test
...
---
Error details
Environment data
PSVersion 7.6.6
PSEdition Core
GitCommitId 7.6.6
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
1.0.3
Visuals
No response
- Ngôn ngữ chính
- C#
- Star
- 870
- Fork
- 166
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/platyPS
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
PowerShell/platyPS#868 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PowerShell/platyPS#857 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
PowerShell/platyPS#863 ·
-
Export-MamlCommandHelp: a module file in the batch aborts the whole export and writes nothingĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
PowerShell/platyPS#862 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
PowerShell/platyPS#861 ·
Tất cả issue của PowerShell/platyPS
Issue tương tự
-
area-TableView bug needs-triage team-Controls
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
microsoft/microsoft-ui-xaml#12351 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
AudioClient and ImageClient file path overloads send the full local path as the multipart file nameCó thể đã có người làm @sebxt đã nhận hôm nay. Đang mởarea: audio area: images feature-request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openai/openai-dotnet#1453 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
elsa-workflows/elsa-foundation#3130 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
遥测历史查询始终返回 HTTP 400,页面静默无结果Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100