Skip to content

Commit d836e65

Browse files
Make sure command group descriptions are capitalized
1 parent 4a69ba6 commit d836e65

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/cli.rs

+16-16
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
228228
.subcommand_required(true)
229229
.subcommands([
230230
Command::new("show")
231-
.about("overview")
231+
.about("Overview")
232232
.after_long_help(color_print::cformat!(
233233
"<bold>Doc guide</bold>: {}",
234234
MONITORING_GUIDE_URL
@@ -238,34 +238,34 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
238238
.subcommand_value_name("summary")
239239
.subcommands(show_subcommands(pre_flight_settings.clone())),
240240
Command::new("list")
241-
.about("lists objects by type")
241+
.about("Lists objects")
242242
.infer_subcommands(pre_flight_settings.infer_subcommands)
243243
.infer_long_args(pre_flight_settings.infer_long_options)
244244
.subcommands(list_subcommands(pre_flight_settings.clone())),
245245
Command::new("declare")
246-
.about("creates or declares objects")
246+
.about("Creates or declares objects")
247247
.infer_subcommands(pre_flight_settings.infer_subcommands)
248248
.infer_long_args(pre_flight_settings.infer_long_options)
249249
.subcommands(declare_subcommands(pre_flight_settings.clone())),
250250
Command::new("delete")
251-
.about("deletes objects")
251+
.about("Deletes objects")
252252
.infer_subcommands(pre_flight_settings.infer_subcommands)
253253
.infer_long_args(pre_flight_settings.infer_long_options)
254254
.subcommands(delete_subcommands(pre_flight_settings.clone())),
255255
Command::new("purge")
256-
.about("purges queues")
256+
.about("Purges queues")
257257
.infer_subcommands(pre_flight_settings.infer_subcommands)
258258
.infer_long_args(pre_flight_settings.infer_long_options)
259259
.subcommand_value_name("queue")
260260
.subcommands(purge_subcommands(pre_flight_settings.clone())),
261261
Command::new("policies")
262-
.about("operations on policies")
262+
.about("Operations on policies")
263263
.infer_subcommands(pre_flight_settings.infer_subcommands)
264264
.infer_long_args(pre_flight_settings.infer_long_options)
265265
.subcommand_value_name("policy")
266266
.subcommands(policies_subcommands(pre_flight_settings.clone())),
267267
Command::new("health_check")
268-
.about("runs health checks")
268+
.about("Runs health checks")
269269
.infer_subcommands(pre_flight_settings.infer_subcommands)
270270
.infer_long_args(pre_flight_settings.infer_long_options)
271271
.subcommand_value_name("check")
@@ -279,13 +279,13 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
279279
DEPRECATED_FEATURE_GUIDE_URL
280280
)),
281281
Command::new("close")
282-
.about("closes connections")
282+
.about("Closes connections")
283283
.infer_subcommands(pre_flight_settings.infer_subcommands)
284284
.infer_long_args(pre_flight_settings.infer_long_options)
285285
.subcommand_value_name("connection")
286286
.subcommands(close_subcommands(pre_flight_settings.clone())),
287287
Command::new("rebalance")
288-
.about("rebalances queue leaders")
288+
.about("Rebalancing of leader replicas")
289289
.infer_subcommands(pre_flight_settings.infer_subcommands)
290290
.infer_long_args(pre_flight_settings.infer_long_options)
291291
.after_long_help(color_print::cformat!(
@@ -295,7 +295,7 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
295295
.subcommand_value_name("queues")
296296
.subcommands(rebalance_subcommands(pre_flight_settings.clone())),
297297
Command::new("definitions")
298-
.about("operations on definitions (everything except for messages: virtual hosts, queues, streams, exchanges, bindings, users, etc)")
298+
.about("Operations on definitions (everything except for messages: virtual hosts, queues, streams, exchanges, bindings, users, etc)")
299299
.infer_subcommands(pre_flight_settings.infer_subcommands)
300300
.infer_long_args(pre_flight_settings.infer_long_options)
301301
.after_long_help(color_print::cformat!(
@@ -305,7 +305,7 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
305305
.subcommand_value_name("export")
306306
.subcommands(definitions_subcommands(pre_flight_settings.clone())),
307307
Command::new("export")
308-
.about("see 'definitions export'")
308+
.about("See 'definitions export'")
309309
.infer_subcommands(pre_flight_settings.infer_subcommands)
310310
.infer_long_args(pre_flight_settings.infer_long_options)
311311
.after_long_help(color_print::cformat!(
@@ -315,7 +315,7 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
315315
.subcommand_value_name("definitions")
316316
.subcommands(export_subcommands(pre_flight_settings.clone())),
317317
Command::new("import")
318-
.about("see 'definitions import'")
318+
.about("See 'definitions import'")
319319
.infer_subcommands(pre_flight_settings.infer_subcommands)
320320
.infer_long_args(pre_flight_settings.infer_long_options)
321321
.after_long_help(color_print::cformat!(
@@ -325,7 +325,7 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
325325
.subcommand_value_name("definitions")
326326
.subcommands(import_subcommands(pre_flight_settings.clone())),
327327
Command::new("feature_flags")
328-
.about("operations on feature flags")
328+
.about("Operations on feature flags")
329329
.infer_subcommands(pre_flight_settings.infer_subcommands)
330330
.infer_long_args(pre_flight_settings.infer_long_options)
331331
.after_long_help(color_print::cformat!(
@@ -335,7 +335,7 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
335335
.subcommand_value_name("feature flag")
336336
.subcommands(feature_flags_subcommands(pre_flight_settings.clone())),
337337
Command::new("deprecated_features")
338-
.about("operations on deprecated features")
338+
.about("Operations on deprecated features")
339339
.infer_subcommands(pre_flight_settings.infer_subcommands)
340340
.infer_long_args(pre_flight_settings.infer_long_options)
341341
.after_long_help(color_print::cformat!(
@@ -345,14 +345,14 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
345345
.subcommand_value_name("deprecated feature")
346346
.subcommands(deprecated_features_subcommands(pre_flight_settings.clone())),
347347
Command::new("publish")
348-
.about(color_print::cstr!("publishes (<red>inefficiently</red>) message(s) to a queue or a stream. <bold><red>Only suitable for development and test environments</red></bold>."))
348+
.about(color_print::cstr!("Publishes (<red>inefficiently</red>) message(s) to a queue or a stream. <bold><red>Only suitable for development and test environments</red></bold>."))
349349
.infer_subcommands(pre_flight_settings.infer_subcommands)
350350
.infer_long_args(pre_flight_settings.infer_long_options)
351351
.after_long_help(color_print::cformat!("<bold>Doc guide</bold>: {}", PUBLISHER_GUIDE_URL))
352352
.subcommand_value_name("message")
353353
.subcommands(publish_subcommands(pre_flight_settings.clone())),
354354
Command::new("get")
355-
.about(color_print::cstr!("fetches message(s) from a queue or stream via <bold><red>polling</red></bold>. <bold><red>Only suitable for development and test environments</red></bold>."))
355+
.about(color_print::cstr!("Fetches message(s) from a queue or stream via <bold><red>polling</red></bold>. <bold><red>Only suitable for development and test environments</red></bold>."))
356356
.infer_subcommands(pre_flight_settings.infer_subcommands)
357357
.infer_long_args(pre_flight_settings.infer_long_options)
358358
.after_long_help(color_print::cformat!("<bold>Doc guide</bold>: {}", POLLING_CONSUMER_GUIDE_URL))

0 commit comments

Comments
 (0)