From 6aff5f1a5257620655469046a38362bfd7460f2c Mon Sep 17 00:00:00 2001 From: nexustar Date: Mon, 9 May 2022 16:50:34 +0800 Subject: [PATCH] ctl: add tidb-lightning (#1863) --- components/ctl/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ctl/main.go b/components/ctl/main.go index 71719e2544..69fc4da719 100644 --- a/components/ctl/main.go +++ b/components/ctl/main.go @@ -27,7 +27,7 @@ func execute() error { return errors.New("component `ctl` cannot run in standalone mode") } rootCmd := &cobra.Command{ - Use: "tiup ctl {tidb/pd/tikv/binlog/etcd/cdc}", + Use: "tiup ctl {tidb/pd/tikv/binlog/etcd/cdc/tidb-lightning}", Short: "TiDB controllers", SilenceUsage: true, FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true}, @@ -89,14 +89,14 @@ func execute() error { func binaryPath(home, cmd string) (string, error) { switch cmd { - case "tidb", "tikv", "pd": + case "tidb", "tikv", "pd", "tidb-lightning": return path.Join(home, cmd+"-ctl"), nil case "binlog", "etcd": return path.Join(home, cmd+"ctl"), nil case "cdc": return path.Join(home, cmd+" cli"), nil default: - return "", errors.New("ctl only supports tidb, tikv, pd, binlog, etcd and cdc currently") + return "", errors.New("ctl only supports tidb, tikv, pd, binlog, tidb-lightning, etcd and cdc currently") } }