体验:all-cli diff 缺参只报 accepts 2 arg,不说先 snapshot
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1
- Forks
- 0
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 24
Description
体验:all-cli diff 缺参只报 accepts 2 arg,不说先 snapshot
不重复 #58(schema 缺参)、#61/#64/#66(use 缺参)。
用户路径
- 根帮助有
diff:对比两份 status snapshot。 - 第一次试:
all-cli diff。 - cobra
ExactArgs(2)原先打accepts 2 arg(s), received 0。 - Example 才有
all-cli snapshot --json | all-cli diff before.json -。缺参路径不知道要先 snapshot。
建议改动
缺参时打印 want diff <snapshot-a> <snapshot-b>,并给 all-cli snapshot --json > before.json 示例。
本地 clone 已按此改了一版(未 push / 未开 PR)。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Cobra definition for the all-cli diff command and its ExactArgs(2) validation. Reproduce all-cli diff, then inspect the existing snapshot example. Done means missing arguments show the requested snapshot inputs and the all-cli snapshot --json > before.json example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100