oldwinter / oldwinter/all-cli

体验:all-cli diff 缺参只报 accepts 2 arg,不说先 snapshot

Open
#67 0 comments 0 reactions 0 assignees View on GitHub

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 缺参)。

用户路径
  1. 根帮助有 diff:对比两份 status snapshot。
  2. 第一次试:all-cli diff
  3. cobra ExactArgs(2) 原先打 accepts 2 arg(s), received 0
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.