Command hints print to stdout when output is piped
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 77/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- cli
調査の方向性
まず packages/cli/src/lib/command.ts で writeFinalization がヒントと stdout をどのように扱うかを確認し、次に packages/cli/src/commands/release/propose-version.ts を調べて、ヒントを返すコマンドを確認してください。stdout が TTY ではない場合にヒントをどう扱うかを決めて実装し、対話的な出力では現在の動作を維持してください。propose-version の出力をパイプに渡したときにバージョンだけが含まれ、ヒントを返す他のコマンドも一貫して動作すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
In human output mode, the hint a command returns is written to stdout after the result, even when stdout isn't a TTY. So sentry release propose-version prints the version and then a Detected from git HEAD line. Scripts that capture it get two lines.
writeFinalizationinpackages/cli/src/lib/command.tswrites the hint withwriteFooter(stdout, hint)whenever--jsonisn't set. It never checks whether stdout is a TTY.propose-versionreturns{ hint: "Detected from <source>" }on every path (packages/cli/src/commands/release/propose-version.ts).- Generated build scripts in the
sentry wizardport (getsentry/toolkit#2529) and the Sentry UI snippets (getsentry/sentry#132671) work around it withsentry release propose-version | head -n 1. The pipe hides a failing exit code, soSENTRY_RELEASEends up empty and the next step runs anyway. - It applies to any command that returns a hint, not just
propose-version.
Proposal (approved by @BYK): when stdout isn't a TTY, send hints to stderr, or leave them out.
via @BYK.
--
- 主要言語
- TypeScript
- スター
- 975
- フォーク
- 189
- 平均マージ
- 19時間 57分
- マージ済み PR(30日)
- 542
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/toolkit のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
getsentry/toolkit#2583 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
mcp-feedback-pattern
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
getsentry/toolkit#2458 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
getsentry/toolkit#2444 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
mcp-feedback-pattern
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
getsentry/toolkit#2362 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
mcp-feedback-pattern
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
getsentry/toolkit#2315 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/toolkit の issue をすべて見る
似ている issue
-
sumHorizontal, maxHorizontal, minHorizontal, allHorizontal, anyHorizontal, struct and argSortBy treat strings as literals instead of column names対応中かも @tomaionescu が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pola-rs/nodejs-polars#486 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jaegertracing/jaeger-ui#4853 ·
メンテナーはふだん 1 日以内に返信
-
area/plugins platform/linux reproduced type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/opencode#66970 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
area:tui enhancement platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anthropics/claude-code#112838 ·
-
approved check:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信