Improve messaging when overwriting a file via generator

オープン 初心者向け
#484 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

まずジェネレーターの --force の経路をたどり、既存ファイルを置き換えた後に「updated」と出力する箇所を確認します。次に、ジェネレーターの出力に関する近くのテストを読みます。ファイルが置き換えられた、または上書きされたことが明確に伝わる文言に変更し、該当する期待値を更新します。メッセージで置き換えと既存内容の更新が区別され、テストが通れば完了です。

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

説明

From #481:

Currently when we use --force and overwrite a file, the message to the user says "updated". IMO this message suggests an action like we do in the router, in which we insert some lines in an existing file, respecting its existing content. Meanwhile this just throws away the current state and writes new template content into the file. Wording such as "replaced" or "overwritten" would be clearer here.

主要言語
Ruby
スター
33
フォーク
57
平均マージ
1日 6時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

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

hanami/hanami-cli のほかの issue

hanami/hanami-cli の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

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

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