pingcap / pingcap/tiup

Implement shell completion

Open
#1,688 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/feature-request
Dominant language
Go
Stars
466
Forks
338
Avg merge
3d 7h
Merged PRs (30d)
8

Description

Feature Request

Implement shell completion for both tiup and components

  • replce exist shell completion whit cobra 1.2 ( fixed in #1549 )
  • implement shell completion when tiup call component (fixed in #1687 )
  • but the flag completion is wrong when tiup call component (fixed in #1831 )
  • detailed completion information like cluster name (fixed in #1891 )
  • it is slow due to telemetry (fixed in #1717 )
  • make it installed by default

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 by reading the issue references #1549, #1687, #1831, #1891, and #1717 to determine what remains, then inspect the tiup and component CLI entry points for completion setup. Done means shell completion works for tiup and components, provides the intended flag and cluster-name suggestions, avoids the reported telemetry delay, and is installed by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.