Improve messaging when overwriting a file via generator

未关闭 适合新手
#484 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 小时
30 天内合并 PR
9

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hanami/hanami-cli 的其他 Issue

查看 hanami/hanami-cli 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。