barelyhuman / barelyhuman/commitlog

Overwrite Mode

未关闭
#12 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Go
星标
81
派生
3
PR 合并指标
30 天内没有已合并 PR

描述

add an overwrite mode flag to the `generate` commands `--out` flag so that we can have appending be the default behaviour of the command when outputting to a file and can switch to overwriting when the flag is on.

贡献指南

打开贡献指南

调研方向

首先定位 Go CLI 中的 generate 命令及其对 --out flag 的处理,然后检查当前的文件输出行为。完成的标准是:输出默认采用追加方式,并且新增的覆盖模式 flag 能将相同命令切换为覆盖文件;如果项目提供了相关的命令测试,则添加或运行这些测试。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
cli
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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