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

Displaying output that is re-written on the same lines

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

まだ誰も着手していません。

評価

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

調査の方向性

No files or tests are named. Start by tracing how pyinvoke captures and prints subprocess output for the shown docker compose command, then compare its handling of carriage returns and other control characters with direct terminal output. Done means supported output is rendered with the same in-place updates without breaking existing command output behavior.

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

説明

I'm trying to execute docker compose up -d --force-recreate --remove-orphans command via pyinvoke. The command outputs such that it updates on the same lines using control characters. But when executing via pyinvoke, it prints all the lines on separate lines.

Is it possible to have the output printed exactly as by the command?

Example:

docker-compose output (it does print logs for creating containers, but it is over-written by newer logs on the same line):

docker compose up -d --force-recreate --remove-orphans
[+] Running 3/3
 ⠿ Network test_app_default    Created                                                          0.1s
 ⠿ Container test_app-redis-1  Started                                                          1.3s
 ⠿ Container test_app-web-1    Started                                                          1.2s

same using pyinvoke:

docker compose up -d --force-recreate --remove-orphans
Network test_app_default  Creating
Network test_app_default  Created
Container test_app-redis-1  Creating
Container test_app-web-1  Creating
Container test_app-redis-1  Created
Container test_app-web-1  Created
Container test_app-redis-1  Starting
Container test_app-web-1  Starting
Container test_app-web-1  Started
Container test_app-redis-1  Started

Of course I could add the --no-ansi flag to docker-compose, but I was wondering if we can achieve this effect via pyinvoke as well.

Thanks!

主要言語
Python
スター
4.8k
フォーク
412
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

pyinvoke/invoke のほかの issue

pyinvoke/invoke の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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