Document the Get-Clipboard verbose message when the system clipboard is unavailable
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- powershell
調査の方向性
reference/7.7/Microsoft.PowerShell.Management/Get-Clipboard.mdを読み、プラットフォームごとの動作と詳細出力がどのように記載されているか確認してください。システムのクリップボードを利用できない場合、Get-ClipboardはPowerShell内部のクリップボードにフォールバックし、これはSet-Clipboardによってのみ内容が設定されること、また-Verboseがこのフォールバックを報告することを説明する注記を追加してください。記事でこの動作が説明され、既定の出力が引き続き明確であれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Prerequisites
- Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
- Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new
Get-Foocmdlet" instead of "New cmdlet."
Summary
Document the new verbose message that Get-Clipboard emits when it can't access the system clipboard and falls back to PowerShell's internal clipboard.
On Linux and macOS, Get-Clipboard reads the system clipboard through xclip or pbpaste. On unsupported platforms, or when that tool isn't installed, the cmdlet silently falls back to PowerShell's internal clipboard, which only Set-Clipboard populates. Users then see content that doesn't match their desktop clipboard, or no content at all, with no explanation.
PowerShell/PowerShell#26838 changes this so the fallback is reported on the verbose stream:
Get-Clipboard -Verbose
VERBOSE: The system clipboard is not available. Get-Clipboard falls back to PowerShell's internal clipboard, which is populated only by Set-Clipboard.
Default output is unchanged; the message only appears with -Verbose.
Details
- The message is written with
WriteVerbose, so it does not affect the success output stream or non-verbose runs. This keeps backward compatibility for scripts and for environments that intentionally run without a clipboard tool. - Windows behavior is unchanged; the fallback path only exists on Unix and on unsupported platforms.
- Suggested documentation: a note in the
Get-Clipboardarticle explaining the internal-clipboard fallback and how-Verbosereveals it. MentioningSet-Clipboardas the only way to populate the internal clipboard would help users understand the behavior.
Articles
- reference/7.7/Microsoft.PowerShell.Management/Get-Clipboard.md
Related Source Pull Requests
Related Source Issues
- PowerShell/PowerShell#26838
- 主要言語
- PowerShell
- スター
- 2.6k
- フォーク
- 1.7k
- 平均マージ
- 3時間 49分
- マージ済み PR(30日)
- 5
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MicrosoftDocs/PowerShell-Docs のほかの issue
-
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 日以内に返信
-
Rename-Item: Tell about NewName parameter allow scriptBlock対応中かも @gerardrecinto が 1 日前に担当しました。 オープンneeds-triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
MicrosoftDocs/PowerShell-Docs#13412 ·
メンテナーはふだん 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 日以内に返信