体验:all-cli schema 缺参只报 accepts 1 arg

Open Beginner friendly
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
cli

Research direction

Start at the schema Cobra command and its ExactArgs(1) validation. Check the existing help Example and the missing-argument path, then make that path mention status|diagnostic and show all-cli schema status; verify the command no longer exposes only the generic argument-count error.

Written by the indexing model from the issue text.

Description

体验:all-cli schema 缺参只报 accepts 1 arg,不给 status|diagnostic 示例

不重复 #54(doctor vs diagnose)、#55(options / --no-progress)、#56(catalog 无匹配)、#57(README / catalog 发现入口)。

用户路径
  1. 根帮助把 schema 放在 Primary commands。
  2. 第一次试:all-cli schema(不知道要 status 还是 diagnostic)。
  3. cobra ExactArgs(1) 原先打出 accepts 1 arg(s), received 0,不提合法名字,也不给 all-cli schema status 示例。
  4. --help 里才有 Example。缺参路径看不到。
建议改动

缺参时打印 want schema status|diagnostic (example: all-cli schema status)

本地 clone 已按此改了一版(未 push / 未开 PR)。

Dominant language
Go
Stars
1
Forks
0
Avg merge
7d 23h
Merged PRs (30d)
24

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.

More from oldwinter/all-cli

All issues in oldwinter/all-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.