pingcap / pingcap/tiup

tiup cluster 增加 y/n 确认交互,以防误操作

Open
#390 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

difficulty/easy help wanted type/enhancement
Dominant language
Go
Stars
466
Forks
338
Avg merge
3d 7h
Merged PRs (30d)
8

Description

如题
所有的类似:reload, stop, restart,destroy,upgrade,patch 集群的操作,都可以添加 y/n 确认交互,以防止误操作

同时合并到现有的 -y 选项的静默操作来提供给脚本使用。

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 tiup cluster entry points for reload, stop, restart, destroy, upgrade, and patch, and inspect how the existing -y option is handled. Add consistent y/n confirmation for these operations while preserving -y for scripted, silent use; done means each listed command prevents accidental execution unless confirmed or -y is supplied.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.