Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

feat: honor NO_COLOR and keep pipe output parseable

オープン
#635 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@onatozmenn がすでに取り組んでいます。

2026年9月27日 から。

  • #689 @onatozmenn による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cli, typescript
領域
cli

調査の方向性

src/output.ts、logo.ts、および docs、status、extensions の出力パスから始め、既存の cli-table3 と TTY 処理を調べます。ANSI、Unicode の境界線、チェックマーク、stdout の診断情報がどこで出力されるかを追跡し、その後 TTY と非 TTY のテストを追加します。NO_COLOR と --no-color で ANSI が抑制され、パイプされた人間向け出力が TSV または JSON になり、stdout にデータだけが含まれることが完了の条件です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

We check TTY in a few places (logo.ts already honors NO_COLOR; docs ask disables the spinner off-TTY) but human tables always use Unicode box drawing (src/output.ts + cli-table3), and elastic status prints checkmarks. No --no-color. Piped human output is not a stable TSV.

Pre-1.0, do not add a pager. Do:

  • Honor NO_COLOR and FORCE_COLOR everywhere we emit ANSI
  • Add --no-color as a global alias for NO_COLOR
  • When stdout is not a TTY and --json is absent, render tables as TSV (or fall back to JSON). Unicode borders and checkmarks are TTY-only
  • Keep stdout = data, stderr = diagnostics (audit docs / status / extensions)

Relates to #623 (nested object rendering). This issue is the output contract, not that CAT bug.

Acceptance: NO_COLOR=1 elastic status has no ANSI and no checkmark glyphs. elastic stack es cat indices | cat is TSV or JSON, not a box table. Tests cover TTY and non-TTY.

主要言語
TypeScript
スター
49
フォーク
27
平均マージ
1日 23時間
マージ済み PR(30日)
67

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

elastic/cli のほかの issue

elastic/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。