Improve messaging when overwriting a file via generator
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
先跟踪生成器的 --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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hanami/hanami-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
hanami/hanami-cli#485 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
hanami/hanami-cli#476 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
hanami/hanami-cli#453 ·
维护者通常 1 天内回复
-
`generate struct` should generate the app/slice base class too, if it doesn't yet exist可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
hanami/hanami-cli#450 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 65/100
hanami/hanami-cli#418 ·
维护者通常 1 天内回复
查看 hanami/hanami-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
open-feature/ruby-sdk-contrib#340 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
zold-io/wts.zold.io#651 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 87/100
erkamyaman/rust-anything#788 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 74/100
TheOdinProject/curriculum#31579 ·
维护者通常 1 天内回复