Skip to content

Commit 8ac46e4

Browse files
committed
polish
1 parent ee8a62c commit 8ac46e4

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

internal/cli/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ func RootCmd(h *internal.Helper) *cobra.Command {
179179
color.CyanString(newRelease.Version))
180180

181181
if config.IsUnderTiUP {
182-
fmt.Fprintln(h.IOStreams.Out, color.GreenString("Use `tiup update cloud` to update to the latest version"))
182+
fmt.Fprintln(h.IOStreams.Out, color.GreenString("Use \"tiup update cloud\" to update to the latest version"))
183183
} else {
184-
fmt.Fprintln(h.IOStreams.Out, color.GreenString("Use `ticloud upgrade` to upgrade to the latest version"))
184+
fmt.Fprintln(h.IOStreams.Out, color.GreenString("Use \"ticloud upgrade\" to upgrade to the latest version"))
185185
}
186186
}
187187
}

internal/cli/serverless/changefeed/create.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ func CreateCmd(h *internal.Helper) *cobra.Command {
289289
createCmd.Flags().StringP(flag.ClusterID, flag.ClusterIDShort, "", "The ID of the cluster.")
290290
createCmd.Flags().StringP(flag.DisplayName, flag.DisplayNameShort, "", "The name of the changefeed.")
291291
createCmd.Flags().String(flag.ChangefeedType, "", fmt.Sprintf("The type of the changefeed, one of %q", cdc.AllowedChangefeedTypeEnumEnumValues))
292-
createCmd.Flags().String(flag.ChangefeedKafka, "", "Kafka information in JSON format, use `ticloud serverless changefeed template` to see templates.")
293-
createCmd.Flags().String(flag.ChangefeedMySQL, "", "MySQL information in JSON format, use `ticloud serverless changefeed template` to see templates.")
294-
createCmd.Flags().String(flag.ChangefeedFilter, "", "Filter in JSON format, use `ticloud serverless changefeed template` to see templates.")
292+
createCmd.Flags().String(flag.ChangefeedKafka, "", "Kafka information in JSON format, use \"ticloud serverless changefeed template\" to see templates.")
293+
createCmd.Flags().String(flag.ChangefeedMySQL, "", "MySQL information in JSON format, use \"ticloud serverless changefeed template\" to see templates.")
294+
createCmd.Flags().String(flag.ChangefeedFilter, "", "Filter in JSON format, use \"ticloud serverless changefeed template\" to see templates.")
295295
createCmd.Flags().Uint64(flag.ChangefeedStartTSO, 0, "Start TSO for the changefeed, default to current TSO. See https://docs.pingcap.com/tidb/stable/tso/ for more information about TSO.")
296296
createCmd.Flags().String(flag.ChangefeedStartTime, "", "Start Time for the changefeed (RFC3339 format, e.g., 2024-01-01T00:00:00Z). If both start-tso and start-time are provided, start-tso will be used.")
297297

internal/cli/serverless/changefeed/ui.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func GetSelectedChangefeedType() (cdc.ChangefeedTypeEnum, error) {
4949
}
5050

5151
var createKafkaInputDescription = map[string]string{
52-
flag.DisplayName: "The name of the changefeed, skip to use the default name",
52+
flag.DisplayName: "The name of the changefeed, skip to use the default name.",
5353
flag.ChangefeedKafka: "Kafka information in JSON format, use \"ticloud serverless changefeed template\" to see templates.",
5454
flag.ChangefeedFilter: "Filter in JSON format, use \"ticloud serverless changefeed template\" to see templates.",
5555
flag.ChangefeedStartTSO: "Start TSO (uint64) for the changefeed, skip to use the current TSO. See https://docs.pingcap.com/tidb/stable/tso/ for more information about TSO.",
@@ -58,7 +58,7 @@ var createKafkaInputDescription = map[string]string{
5858

5959
var createMySQLInputDescription = map[string]string{
6060
flag.DisplayName: "The name of the changefeed, skip to use the default name",
61-
flag.ChangefeedMySQL: "mysql information in JSON format, use \"ticloud serverless changefeed template\" to see templates.",
61+
flag.ChangefeedMySQL: "MySQL information in JSON format, use \"ticloud serverless changefeed template\" to see templates.",
6262
flag.ChangefeedFilter: "Filter in JSON format, use \"ticloud serverless changefeed template\" to see templates.",
6363
flag.ChangefeedStartTSO: "Start TSO (uint64) for the changefeed, skip to use the current TSO. See https://docs.pingcap.com/tidb/stable/tso/ for more information about TSO.",
6464
flag.ChangefeedStartTime: "Start Time (RFC3339 format, e.g., 2024-01-01T00:00:00Z) for the changefeed, if both start-tso and start-time are provided, start-tso will be used.",

0 commit comments

Comments
 (0)