oldwinter / oldwinter/all-cli

体验:glab/argocd use 缺参只报 accepts 1 arg,不说 list

Open Beginner friendly
#64 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 glab use
all-cli argocd use

Cobra 默认报 accepts 1 arg(s), received 0kubectl use / docker use 已经改成说明性错误并指向 list(#61)。glab / argocd 漏了。

本轮不碰已有 issue:#54–#63。也不改正在改的 catalog / kubectl.go。

摩擦点

切 host/context 缺参时人不知道先 list。

建议改动

  • glab use 缺参指向 all-cli glab list
  • argocd use 缺参指向 all-cli argocd list

不在范围内

  • 不改 kubectl/docker use(#61)。
  • 不 push、不开 PR、不 merge。

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 glab use and argocd use command entry points, then compare their missing-argument handling with the already updated kubectl use and docker use behavior. Make each command direct users to its corresponding list command, and verify both commands no longer show Cobra's generic argument error.

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
84/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.