From f2c1f1586c08b2ee1bea6dff89f4a07f50e0c2f5 Mon Sep 17 00:00:00 2001 From: nexustar Date: Fri, 27 May 2022 14:28:44 +0800 Subject: [PATCH 1/2] fix edit-cluster help information --- components/cluster/command/edit_config.go | 3 ++- components/dm/command/edit_config.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/cluster/command/edit_config.go b/components/cluster/command/edit_config.go index a305c53ec4..0be14974d8 100644 --- a/components/cluster/command/edit_config.go +++ b/components/cluster/command/edit_config.go @@ -22,7 +22,8 @@ func newEditConfigCmd() *cobra.Command { opt := manager.EditConfigOptions{} cmd := &cobra.Command{ Use: "edit-config ", - Short: "Edit TiDB cluster config.\nWill use editor from environment variable `EDITOR`, default use vi", + Short: "Edit TiDB cluster config", + Long: "Edit TiDB cluster config.\nWill use editor from environment variable `EDITOR`, default use vi", RunE: func(cmd *cobra.Command, args []string) error { if len(args) != 1 { return cmd.Help() diff --git a/components/dm/command/edit_config.go b/components/dm/command/edit_config.go index e20b531128..2e9d776d12 100644 --- a/components/dm/command/edit_config.go +++ b/components/dm/command/edit_config.go @@ -23,6 +23,7 @@ func newEditConfigCmd() *cobra.Command { cmd := &cobra.Command{ Use: "edit-config ", Short: "Edit DM cluster config", + Long: "Edit DM cluster config.\nWill use editor from environment variable `EDITOR`, default use vi", RunE: func(cmd *cobra.Command, args []string) error { if len(args) != 1 { return cmd.Help() From 5a5d2801bbc1a3c6b53908ed41f83eb398662577 Mon Sep 17 00:00:00 2001 From: nexustar Date: Mon, 30 May 2022 16:38:51 +0800 Subject: [PATCH 2/2] update --- components/cluster/command/edit_config.go | 2 +- components/dm/command/edit_config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/cluster/command/edit_config.go b/components/cluster/command/edit_config.go index 0be14974d8..4f2450f9f1 100644 --- a/components/cluster/command/edit_config.go +++ b/components/cluster/command/edit_config.go @@ -23,7 +23,7 @@ func newEditConfigCmd() *cobra.Command { cmd := &cobra.Command{ Use: "edit-config ", Short: "Edit TiDB cluster config", - Long: "Edit TiDB cluster config.\nWill use editor from environment variable `EDITOR`, default use vi", + Long: "Edit TiDB cluster config. Will use editor from environment variable `EDITOR`, default use vi", RunE: func(cmd *cobra.Command, args []string) error { if len(args) != 1 { return cmd.Help() diff --git a/components/dm/command/edit_config.go b/components/dm/command/edit_config.go index 2e9d776d12..6e7521c572 100644 --- a/components/dm/command/edit_config.go +++ b/components/dm/command/edit_config.go @@ -23,7 +23,7 @@ func newEditConfigCmd() *cobra.Command { cmd := &cobra.Command{ Use: "edit-config ", Short: "Edit DM cluster config", - Long: "Edit DM cluster config.\nWill use editor from environment variable `EDITOR`, default use vi", + Long: "Edit DM cluster config. Will use editor from environment variable `EDITOR`, default use vi", RunE: func(cmd *cobra.Command, args []string) error { if len(args) != 1 { return cmd.Help()