From 11ac5efbd258eade5f8da231f8126a937ca9cc7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Audiger?= Date: Tue, 28 Feb 2023 21:21:18 +0100 Subject: [PATCH] Uniformize usage() and extra_usage() message ending for commands helper. --- crates/nu-cli/src/print.rs | 2 +- crates/nu-cmd-lang/src/core_commands/alias.rs | 2 +- crates/nu-cmd-lang/src/core_commands/break_.rs | 2 +- .../src/core_commands/commandline.rs | 2 +- .../nu-cmd-lang/src/core_commands/continue_.rs | 2 +- crates/nu-cmd-lang/src/core_commands/def.rs | 2 +- .../nu-cmd-lang/src/core_commands/def_env.rs | 2 +- crates/nu-cmd-lang/src/core_commands/do_.rs | 2 +- .../src/core_commands/export_alias.rs | 2 +- .../src/core_commands/export_def.rs | 2 +- .../src/core_commands/export_def_env.rs | 2 +- .../src/core_commands/export_extern.rs | 2 +- .../src/core_commands/export_use.rs | 2 +- .../nu-cmd-lang/src/core_commands/extern_.rs | 2 +- crates/nu-cmd-lang/src/core_commands/for_.rs | 2 +- crates/nu-cmd-lang/src/core_commands/hide.rs | 2 +- .../nu-cmd-lang/src/core_commands/hide_env.rs | 2 +- crates/nu-cmd-lang/src/core_commands/ignore.rs | 2 +- crates/nu-cmd-lang/src/core_commands/module.rs | 2 +- .../src/core_commands/overlay/hide.rs | 2 +- .../src/core_commands/overlay/list.rs | 2 +- .../src/core_commands/overlay/new.rs | 2 +- .../src/core_commands/overlay/use_.rs | 2 +- .../nu-cmd-lang/src/core_commands/register.rs | 2 +- .../nu-cmd-lang/src/core_commands/return_.rs | 2 +- crates/nu-cmd-lang/src/core_commands/try_.rs | 2 +- crates/nu-cmd-lang/src/core_commands/use_.rs | 2 +- crates/nu-command/src/bits/and.rs | 2 +- crates/nu-command/src/bits/bits_.rs | 2 +- crates/nu-command/src/bits/not.rs | 2 +- crates/nu-command/src/bits/or.rs | 2 +- crates/nu-command/src/bits/rotate_left.rs | 2 +- crates/nu-command/src/bits/rotate_right.rs | 2 +- crates/nu-command/src/bits/shift_left.rs | 2 +- crates/nu-command/src/bits/shift_right.rs | 2 +- crates/nu-command/src/bits/xor.rs | 2 +- crates/nu-command/src/bytes/add.rs | 2 +- crates/nu-command/src/bytes/bytes_.rs | 2 +- crates/nu-command/src/bytes/collect.rs | 2 +- crates/nu-command/src/bytes/ends_with.rs | 2 +- crates/nu-command/src/bytes/index_of.rs | 2 +- crates/nu-command/src/bytes/length.rs | 2 +- crates/nu-command/src/bytes/remove.rs | 2 +- crates/nu-command/src/bytes/replace.rs | 2 +- crates/nu-command/src/bytes/reverse.rs | 2 +- crates/nu-command/src/bytes/starts_with.rs | 2 +- crates/nu-command/src/conversions/fill.rs | 2 +- crates/nu-command/src/conversions/fmt.rs | 2 +- .../nu-command/src/conversions/into/binary.rs | 2 +- crates/nu-command/src/conversions/into/bool.rs | 2 +- .../src/conversions/into/datetime.rs | 2 +- .../nu-command/src/conversions/into/decimal.rs | 2 +- .../src/conversions/into/duration.rs | 2 +- .../src/conversions/into/filesize.rs | 2 +- crates/nu-command/src/conversions/into/int.rs | 2 +- .../nu-command/src/conversions/into/record.rs | 2 +- .../nu-command/src/conversions/into/string.rs | 2 +- .../src/database/commands/into_sqlite.rs | 2 +- .../nu-command/src/dataframe/eager/append.rs | 2 +- .../nu-command/src/dataframe/eager/columns.rs | 2 +- crates/nu-command/src/dataframe/eager/drop.rs | 2 +- .../src/dataframe/eager/drop_duplicates.rs | 2 +- .../src/dataframe/eager/drop_nulls.rs | 2 +- .../nu-command/src/dataframe/eager/dtypes.rs | 2 +- .../nu-command/src/dataframe/eager/dummies.rs | 2 +- .../src/dataframe/eager/filter_with.rs | 2 +- crates/nu-command/src/dataframe/eager/get.rs | 2 +- crates/nu-command/src/dataframe/eager/last.rs | 2 +- crates/nu-command/src/dataframe/eager/list.rs | 2 +- crates/nu-command/src/dataframe/eager/melt.rs | 2 +- crates/nu-command/src/dataframe/eager/open.rs | 2 +- .../nu-command/src/dataframe/eager/rename.rs | 2 +- .../nu-command/src/dataframe/eager/sample.rs | 2 +- crates/nu-command/src/dataframe/eager/shape.rs | 2 +- crates/nu-command/src/dataframe/eager/slice.rs | 2 +- crates/nu-command/src/dataframe/eager/take.rs | 2 +- .../nu-command/src/dataframe/eager/to_arrow.rs | 2 +- .../nu-command/src/dataframe/eager/to_csv.rs | 2 +- crates/nu-command/src/dataframe/eager/to_df.rs | 2 +- crates/nu-command/src/dataframe/eager/to_nu.rs | 2 +- .../src/dataframe/eager/to_parquet.rs | 2 +- .../src/dataframe/eager/with_column.rs | 2 +- .../src/dataframe/expressions/alias.rs | 2 +- .../src/dataframe/expressions/arg_where.rs | 2 +- .../src/dataframe/expressions/as_nu.rs | 2 +- .../src/dataframe/expressions/col.rs | 2 +- .../src/dataframe/expressions/concat_str.rs | 2 +- .../src/dataframe/expressions/is_in.rs | 2 +- .../src/dataframe/expressions/lit.rs | 2 +- .../src/dataframe/expressions/otherwise.rs | 2 +- .../src/dataframe/expressions/quantile.rs | 2 +- .../src/dataframe/expressions/when.rs | 2 +- .../nu-command/src/dataframe/lazy/aggregate.rs | 2 +- .../nu-command/src/dataframe/lazy/collect.rs | 2 +- crates/nu-command/src/dataframe/lazy/fetch.rs | 2 +- .../nu-command/src/dataframe/lazy/fill_nan.rs | 2 +- .../nu-command/src/dataframe/lazy/fill_null.rs | 2 +- crates/nu-command/src/dataframe/lazy/filter.rs | 2 +- .../nu-command/src/dataframe/lazy/groupby.rs | 2 +- crates/nu-command/src/dataframe/lazy/join.rs | 2 +- .../nu-command/src/dataframe/lazy/quantile.rs | 2 +- crates/nu-command/src/dataframe/lazy/select.rs | 2 +- .../src/dataframe/lazy/sort_by_expr.rs | 2 +- .../nu-command/src/dataframe/lazy/to_lazy.rs | 2 +- .../src/dataframe/series/all_false.rs | 2 +- .../src/dataframe/series/all_true.rs | 2 +- .../nu-command/src/dataframe/series/arg_max.rs | 2 +- .../nu-command/src/dataframe/series/arg_min.rs | 2 +- .../src/dataframe/series/cumulative.rs | 2 +- .../src/dataframe/series/date/get_day.rs | 2 +- .../src/dataframe/series/date/get_hour.rs | 2 +- .../src/dataframe/series/date/get_minute.rs | 2 +- .../src/dataframe/series/date/get_month.rs | 2 +- .../dataframe/series/date/get_nanosecond.rs | 2 +- .../src/dataframe/series/date/get_ordinal.rs | 2 +- .../src/dataframe/series/date/get_second.rs | 2 +- .../src/dataframe/series/date/get_week.rs | 2 +- .../src/dataframe/series/date/get_weekday.rs | 2 +- .../src/dataframe/series/date/get_year.rs | 2 +- .../src/dataframe/series/indexes/arg_sort.rs | 2 +- .../src/dataframe/series/indexes/arg_true.rs | 2 +- .../src/dataframe/series/indexes/arg_unique.rs | 2 +- .../dataframe/series/indexes/set_with_idx.rs | 2 +- .../dataframe/series/masks/is_duplicated.rs | 2 +- .../src/dataframe/series/masks/is_in.rs | 2 +- .../src/dataframe/series/masks/is_not_null.rs | 2 +- .../src/dataframe/series/masks/is_null.rs | 2 +- .../src/dataframe/series/masks/is_unique.rs | 2 +- .../src/dataframe/series/masks/not.rs | 2 +- .../src/dataframe/series/masks/set.rs | 2 +- .../nu-command/src/dataframe/series/n_null.rs | 2 +- .../src/dataframe/series/n_unique.rs | 2 +- .../nu-command/src/dataframe/series/rolling.rs | 2 +- .../nu-command/src/dataframe/series/shift.rs | 2 +- .../src/dataframe/series/string/concatenate.rs | 2 +- .../src/dataframe/series/string/contains.rs | 2 +- .../src/dataframe/series/string/replace.rs | 2 +- .../src/dataframe/series/string/replace_all.rs | 2 +- .../src/dataframe/series/string/str_lengths.rs | 2 +- .../src/dataframe/series/string/str_slice.rs | 2 +- .../src/dataframe/series/string/strftime.rs | 2 +- .../dataframe/series/string/to_lowercase.rs | 2 +- .../dataframe/series/string/to_uppercase.rs | 2 +- .../nu-command/src/dataframe/series/unique.rs | 2 +- .../src/dataframe/series/value_counts.rs | 2 +- crates/nu-command/src/date/date_.rs | 2 +- crates/nu-command/src/debug/inspect.rs | 2 +- crates/nu-command/src/debug/metadata.rs | 2 +- crates/nu-command/src/debug/timeit.rs | 2 +- crates/nu-command/src/debug/view.rs | 2 +- crates/nu-command/src/debug/view_files.rs | 2 +- crates/nu-command/src/debug/view_source.rs | 2 +- crates/nu-command/src/debug/view_span.rs | 2 +- .../src/deprecated/export_old_alias.rs | 2 +- .../nu-command/src/deprecated/hash_base64.rs | 2 +- crates/nu-command/src/deprecated/lpad.rs | 2 +- crates/nu-command/src/deprecated/math_eval.rs | 2 +- crates/nu-command/src/deprecated/old_alias.rs | 2 +- crates/nu-command/src/deprecated/rpad.rs | 2 +- .../nu-command/src/deprecated/str_datetime.rs | 2 +- .../nu-command/src/deprecated/str_decimal.rs | 2 +- .../src/deprecated/str_find_replace.rs | 2 +- crates/nu-command/src/deprecated/str_int.rs | 2 +- crates/nu-command/src/env/config/config_.rs | 2 +- crates/nu-command/src/env/config/config_env.rs | 2 +- crates/nu-command/src/env/config/config_nu.rs | 2 +- .../nu-command/src/env/config/config_reset.rs | 2 +- crates/nu-command/src/env/env_command.rs | 2 +- crates/nu-command/src/experimental/is_admin.rs | 2 +- crates/nu-command/src/filters/lines.rs | 2 +- crates/nu-command/src/filters/move_.rs | 2 +- crates/nu-command/src/filters/roll/roll_.rs | 2 +- .../nu-command/src/filters/roll/roll_down.rs | 2 +- .../nu-command/src/filters/roll/roll_left.rs | 2 +- .../nu-command/src/filters/roll/roll_right.rs | 2 +- crates/nu-command/src/filters/roll/roll_up.rs | 2 +- crates/nu-command/src/filters/zip.rs | 2 +- crates/nu-command/src/formats/from/command.rs | 2 +- crates/nu-command/src/formats/from/json.rs | 2 +- crates/nu-command/src/formats/from/nuon.rs | 2 +- crates/nu-command/src/formats/to/command.rs | 2 +- crates/nu-command/src/formats/to/csv.rs | 2 +- crates/nu-command/src/formats/to/html.rs | 4 ++-- crates/nu-command/src/formats/to/md.rs | 2 +- crates/nu-command/src/formats/to/toml.rs | 2 +- crates/nu-command/src/formats/to/tsv.rs | 2 +- crates/nu-command/src/formats/to/xml.rs | 2 +- crates/nu-command/src/formats/to/yaml.rs | 2 +- crates/nu-command/src/generators/seq_char.rs | 2 +- crates/nu-command/src/generators/seq_date.rs | 2 +- crates/nu-command/src/math/abs.rs | 2 +- crates/nu-command/src/math/avg.rs | 2 +- crates/nu-command/src/math/ceil.rs | 2 +- crates/nu-command/src/math/floor.rs | 2 +- crates/nu-command/src/math/ln.rs | 2 +- crates/nu-command/src/math/max.rs | 2 +- crates/nu-command/src/math/median.rs | 2 +- crates/nu-command/src/math/min.rs | 2 +- crates/nu-command/src/math/mode.rs | 2 +- crates/nu-command/src/math/product.rs | 2 +- crates/nu-command/src/math/round.rs | 2 +- crates/nu-command/src/math/sqrt.rs | 2 +- crates/nu-command/src/math/stddev.rs | 2 +- crates/nu-command/src/math/sum.rs | 2 +- crates/nu-command/src/math/variance.rs | 2 +- crates/nu-command/src/misc/history.rs | 2 +- crates/nu-command/src/misc/history_session.rs | 2 +- crates/nu-command/src/misc/tutor.rs | 2 +- crates/nu-command/src/network/http/http_.rs | 2 +- crates/nu-command/src/network/port.rs | 2 +- crates/nu-command/src/network/url/encode.rs | 4 ++-- crates/nu-command/src/network/url/join.rs | 2 +- crates/nu-command/src/network/url/parse.rs | 2 +- crates/nu-command/src/network/url/url_.rs | 2 +- crates/nu-command/src/path/basename.rs | 2 +- crates/nu-command/src/path/dirname.rs | 2 +- crates/nu-command/src/path/exists.rs | 2 +- crates/nu-command/src/path/expand.rs | 2 +- crates/nu-command/src/path/type.rs | 2 +- .../nu-command/src/platform/ansi/gradient.rs | 2 +- crates/nu-command/src/platform/ansi/link.rs | 2 +- crates/nu-command/src/platform/ansi/strip.rs | 2 +- .../platform/reedline_commands/keybindings.rs | 2 +- .../reedline_commands/keybindings_default.rs | 2 +- .../reedline_commands/keybindings_list.rs | 2 +- crates/nu-command/src/platform/term_size.rs | 2 +- crates/nu-command/src/random/bool.rs | 2 +- crates/nu-command/src/random/chars.rs | 2 +- crates/nu-command/src/random/decimal.rs | 2 +- crates/nu-command/src/random/dice.rs | 2 +- crates/nu-command/src/random/integer.rs | 2 +- crates/nu-command/src/random/uuid.rs | 2 +- .../nu-command/src/strings/detect_columns.rs | 2 +- .../src/strings/encode_decode/decode_base64.rs | 2 +- .../src/strings/encode_decode/encode_base64.rs | 2 +- .../nu-command/src/strings/format/filesize.rs | 2 +- crates/nu-command/src/strings/split/chars.rs | 2 +- crates/nu-command/src/strings/split/column.rs | 2 +- crates/nu-command/src/strings/split/list.rs | 2 +- crates/nu-command/src/strings/split/row.rs | 2 +- crates/nu-command/src/strings/split/words.rs | 2 +- .../src/strings/str_/case/camel_case.rs | 2 +- .../src/strings/str_/case/capitalize.rs | 2 +- .../src/strings/str_/case/downcase.rs | 2 +- .../src/strings/str_/case/kebab_case.rs | 2 +- .../src/strings/str_/case/pascal_case.rs | 2 +- .../strings/str_/case/screaming_snake_case.rs | 2 +- .../src/strings/str_/case/snake_case.rs | 2 +- .../nu-command/src/strings/str_/case/str_.rs | 2 +- .../src/strings/str_/case/title_case.rs | 2 +- .../nu-command/src/strings/str_/case/upcase.rs | 2 +- crates/nu-command/src/strings/str_/collect.rs | 2 +- crates/nu-command/src/strings/str_/contains.rs | 2 +- crates/nu-command/src/strings/str_/distance.rs | 2 +- .../nu-command/src/strings/str_/ends_with.rs | 2 +- crates/nu-command/src/strings/str_/index_of.rs | 2 +- crates/nu-command/src/strings/str_/join.rs | 2 +- crates/nu-command/src/strings/str_/length.rs | 2 +- crates/nu-command/src/strings/str_/replace.rs | 2 +- crates/nu-command/src/strings/str_/reverse.rs | 2 +- .../nu-command/src/strings/str_/starts_with.rs | 2 +- .../nu-command/src/strings/str_/trim/trim_.rs | 2 +- crates/nu-command/src/system/complete.rs | 2 +- crates/nu-command/src/system/nu_check.rs | 2 +- crates/nu-command/src/system/run_external.rs | 2 +- crates/nu-command/src/viewers/explore.rs | 2 +- crates/nu-command/src/viewers/table.rs | 2 +- crates/nu-parser/tests/test_parser.rs | 18 +++++++++--------- 268 files changed, 278 insertions(+), 278 deletions(-) diff --git a/crates/nu-cli/src/print.rs b/crates/nu-cli/src/print.rs index a41e78a2d001..563b2239f574 100644 --- a/crates/nu-cli/src/print.rs +++ b/crates/nu-cli/src/print.rs @@ -28,7 +28,7 @@ impl Command for Print { } fn usage(&self) -> &str { - "Print the given values to stdout" + "Print the given values to stdout." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-cmd-lang/src/core_commands/alias.rs b/crates/nu-cmd-lang/src/core_commands/alias.rs index d9d5a5792d98..5af4ce82573d 100644 --- a/crates/nu-cmd-lang/src/core_commands/alias.rs +++ b/crates/nu-cmd-lang/src/core_commands/alias.rs @@ -13,7 +13,7 @@ impl Command for Alias { } fn usage(&self) -> &str { - "Alias a command (with optional flags) to a new name" + "Alias a command (with optional flags) to a new name." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/break_.rs b/crates/nu-cmd-lang/src/core_commands/break_.rs index 2fab61682abc..5bc6d44d1042 100644 --- a/crates/nu-cmd-lang/src/core_commands/break_.rs +++ b/crates/nu-cmd-lang/src/core_commands/break_.rs @@ -11,7 +11,7 @@ impl Command for Break { } fn usage(&self) -> &str { - "Break a loop" + "Break a loop." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/commandline.rs b/crates/nu-cmd-lang/src/core_commands/commandline.rs index f371613c5e8a..988f112a14cf 100644 --- a/crates/nu-cmd-lang/src/core_commands/commandline.rs +++ b/crates/nu-cmd-lang/src/core_commands/commandline.rs @@ -41,7 +41,7 @@ impl Command for Commandline { } fn usage(&self) -> &str { - "View or modify the current command line input buffer" + "View or modify the current command line input buffer." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-cmd-lang/src/core_commands/continue_.rs b/crates/nu-cmd-lang/src/core_commands/continue_.rs index 24578526ea96..19c11ab8d378 100644 --- a/crates/nu-cmd-lang/src/core_commands/continue_.rs +++ b/crates/nu-cmd-lang/src/core_commands/continue_.rs @@ -11,7 +11,7 @@ impl Command for Continue { } fn usage(&self) -> &str { - "Continue a loop from the next iteration" + "Continue a loop from the next iteration." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/def.rs b/crates/nu-cmd-lang/src/core_commands/def.rs index 7dc10ca8b7c0..f4f0560e84df 100644 --- a/crates/nu-cmd-lang/src/core_commands/def.rs +++ b/crates/nu-cmd-lang/src/core_commands/def.rs @@ -13,7 +13,7 @@ impl Command for Def { } fn usage(&self) -> &str { - "Define a custom command" + "Define a custom command." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/def_env.rs b/crates/nu-cmd-lang/src/core_commands/def_env.rs index 803e68d5bbfa..ce6adb8ecf16 100644 --- a/crates/nu-cmd-lang/src/core_commands/def_env.rs +++ b/crates/nu-cmd-lang/src/core_commands/def_env.rs @@ -13,7 +13,7 @@ impl Command for DefEnv { } fn usage(&self) -> &str { - "Define a custom command, which participates in the caller environment" + "Define a custom command, which participates in the caller environment." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/do_.rs b/crates/nu-cmd-lang/src/core_commands/do_.rs index 0fa103865b6f..4d55e4c2c286 100644 --- a/crates/nu-cmd-lang/src/core_commands/do_.rs +++ b/crates/nu-cmd-lang/src/core_commands/do_.rs @@ -17,7 +17,7 @@ impl Command for Do { } fn usage(&self) -> &str { - "Run a closure, providing it with the pipeline input" + "Run a closure, providing it with the pipeline input." } fn signature(&self) -> Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/export_alias.rs b/crates/nu-cmd-lang/src/core_commands/export_alias.rs index 10df0e197b02..ca028fdc3292 100644 --- a/crates/nu-cmd-lang/src/core_commands/export_alias.rs +++ b/crates/nu-cmd-lang/src/core_commands/export_alias.rs @@ -13,7 +13,7 @@ impl Command for ExportAlias { } fn usage(&self) -> &str { - "Alias a command (with optional flags) to a new name and export it from a module" + "Alias a command (with optional flags) to a new name and export it from a module." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/export_def.rs b/crates/nu-cmd-lang/src/core_commands/export_def.rs index f4d1251f07bc..8ef58eb23600 100644 --- a/crates/nu-cmd-lang/src/core_commands/export_def.rs +++ b/crates/nu-cmd-lang/src/core_commands/export_def.rs @@ -13,7 +13,7 @@ impl Command for ExportDef { } fn usage(&self) -> &str { - "Define a custom command and export it from a module" + "Define a custom command and export it from a module." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/export_def_env.rs b/crates/nu-cmd-lang/src/core_commands/export_def_env.rs index 48e650b6434f..1e0c7f61b9d9 100644 --- a/crates/nu-cmd-lang/src/core_commands/export_def_env.rs +++ b/crates/nu-cmd-lang/src/core_commands/export_def_env.rs @@ -13,7 +13,7 @@ impl Command for ExportDefEnv { } fn usage(&self) -> &str { - "Define a custom command that participates in the environment and export it from a module" + "Define a custom command that participates in the environment and export it from a module." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/export_extern.rs b/crates/nu-cmd-lang/src/core_commands/export_extern.rs index 186c722af3fb..4c0e23ff0e59 100644 --- a/crates/nu-cmd-lang/src/core_commands/export_extern.rs +++ b/crates/nu-cmd-lang/src/core_commands/export_extern.rs @@ -11,7 +11,7 @@ impl Command for ExportExtern { } fn usage(&self) -> &str { - "Define an extern and export it from a module" + "Define an extern and export it from a module." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/export_use.rs b/crates/nu-cmd-lang/src/core_commands/export_use.rs index 4d2b5638e0ca..64ca720e60e3 100644 --- a/crates/nu-cmd-lang/src/core_commands/export_use.rs +++ b/crates/nu-cmd-lang/src/core_commands/export_use.rs @@ -13,7 +13,7 @@ impl Command for ExportUse { } fn usage(&self) -> &str { - "Use definitions from a module and export them from this module" + "Use definitions from a module and export them from this module." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/extern_.rs b/crates/nu-cmd-lang/src/core_commands/extern_.rs index 1b35bb23f8e4..8b6846606cda 100644 --- a/crates/nu-cmd-lang/src/core_commands/extern_.rs +++ b/crates/nu-cmd-lang/src/core_commands/extern_.rs @@ -11,7 +11,7 @@ impl Command for Extern { } fn usage(&self) -> &str { - "Define a signature for an external command" + "Define a signature for an external command." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/for_.rs b/crates/nu-cmd-lang/src/core_commands/for_.rs index ee7d45bd34e1..bc88ba6f492f 100644 --- a/crates/nu-cmd-lang/src/core_commands/for_.rs +++ b/crates/nu-cmd-lang/src/core_commands/for_.rs @@ -14,7 +14,7 @@ impl Command for For { } fn usage(&self) -> &str { - "Loop over a range" + "Loop over a range." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/hide.rs b/crates/nu-cmd-lang/src/core_commands/hide.rs index 80966a9ca758..5f768205b5d7 100644 --- a/crates/nu-cmd-lang/src/core_commands/hide.rs +++ b/crates/nu-cmd-lang/src/core_commands/hide.rs @@ -23,7 +23,7 @@ impl Command for Hide { } fn usage(&self) -> &str { - "Hide definitions in the current scope" + "Hide definitions in the current scope." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-cmd-lang/src/core_commands/hide_env.rs b/crates/nu-cmd-lang/src/core_commands/hide_env.rs index 9fa2715a96a6..454e2b2865ff 100644 --- a/crates/nu-cmd-lang/src/core_commands/hide_env.rs +++ b/crates/nu-cmd-lang/src/core_commands/hide_env.rs @@ -31,7 +31,7 @@ impl Command for HideEnv { } fn usage(&self) -> &str { - "Hide environment variables in the current scope" + "Hide environment variables in the current scope." } fn run( diff --git a/crates/nu-cmd-lang/src/core_commands/ignore.rs b/crates/nu-cmd-lang/src/core_commands/ignore.rs index 569502951523..11680d4e5a71 100644 --- a/crates/nu-cmd-lang/src/core_commands/ignore.rs +++ b/crates/nu-cmd-lang/src/core_commands/ignore.rs @@ -11,7 +11,7 @@ impl Command for Ignore { } fn usage(&self) -> &str { - "Ignore the output of the previous command in the pipeline" + "Ignore the output of the previous command in the pipeline." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/module.rs b/crates/nu-cmd-lang/src/core_commands/module.rs index 3e11eab96931..74ebc984730b 100644 --- a/crates/nu-cmd-lang/src/core_commands/module.rs +++ b/crates/nu-cmd-lang/src/core_commands/module.rs @@ -13,7 +13,7 @@ impl Command for Module { } fn usage(&self) -> &str { - "Define a custom module" + "Define a custom module." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/overlay/hide.rs b/crates/nu-cmd-lang/src/core_commands/overlay/hide.rs index d4f970bfd4f8..c1127ea42ad3 100644 --- a/crates/nu-cmd-lang/src/core_commands/overlay/hide.rs +++ b/crates/nu-cmd-lang/src/core_commands/overlay/hide.rs @@ -14,7 +14,7 @@ impl Command for OverlayHide { } fn usage(&self) -> &str { - "Hide an active overlay" + "Hide an active overlay." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/overlay/list.rs b/crates/nu-cmd-lang/src/core_commands/overlay/list.rs index 90af373d5bf4..de0321291d4e 100644 --- a/crates/nu-cmd-lang/src/core_commands/overlay/list.rs +++ b/crates/nu-cmd-lang/src/core_commands/overlay/list.rs @@ -13,7 +13,7 @@ impl Command for OverlayList { } fn usage(&self) -> &str { - "List all active overlays" + "List all active overlays." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/overlay/new.rs b/crates/nu-cmd-lang/src/core_commands/overlay/new.rs index 231db2525040..d0ca02fb0b0c 100644 --- a/crates/nu-cmd-lang/src/core_commands/overlay/new.rs +++ b/crates/nu-cmd-lang/src/core_commands/overlay/new.rs @@ -14,7 +14,7 @@ impl Command for OverlayNew { } fn usage(&self) -> &str { - "Create an empty overlay" + "Create an empty overlay." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/overlay/use_.rs b/crates/nu-cmd-lang/src/core_commands/overlay/use_.rs index 5dbcd9b825f5..024623426cc7 100644 --- a/crates/nu-cmd-lang/src/core_commands/overlay/use_.rs +++ b/crates/nu-cmd-lang/src/core_commands/overlay/use_.rs @@ -17,7 +17,7 @@ impl Command for OverlayUse { } fn usage(&self) -> &str { - "Use definitions from a module as an overlay" + "Use definitions from a module as an overlay." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/register.rs b/crates/nu-cmd-lang/src/core_commands/register.rs index 77d4e576ba7a..6e5b7eae042f 100644 --- a/crates/nu-cmd-lang/src/core_commands/register.rs +++ b/crates/nu-cmd-lang/src/core_commands/register.rs @@ -11,7 +11,7 @@ impl Command for Register { } fn usage(&self) -> &str { - "Register a plugin" + "Register a plugin." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/return_.rs b/crates/nu-cmd-lang/src/core_commands/return_.rs index 2277a6a6a959..80cdb27d45b3 100644 --- a/crates/nu-cmd-lang/src/core_commands/return_.rs +++ b/crates/nu-cmd-lang/src/core_commands/return_.rs @@ -14,7 +14,7 @@ impl Command for Return { } fn usage(&self) -> &str { - "Return early from a function" + "Return early from a function." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/try_.rs b/crates/nu-cmd-lang/src/core_commands/try_.rs index 4b5dbfdff067..c5eab1aefe69 100644 --- a/crates/nu-cmd-lang/src/core_commands/try_.rs +++ b/crates/nu-cmd-lang/src/core_commands/try_.rs @@ -15,7 +15,7 @@ impl Command for Try { } fn usage(&self) -> &str { - "Try to run a block, if it fails optionally run a catch block" + "Try to run a block, if it fails optionally run a catch block." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-cmd-lang/src/core_commands/use_.rs b/crates/nu-cmd-lang/src/core_commands/use_.rs index 0a4ecaf45f0f..7b4afbeee24f 100644 --- a/crates/nu-cmd-lang/src/core_commands/use_.rs +++ b/crates/nu-cmd-lang/src/core_commands/use_.rs @@ -14,7 +14,7 @@ impl Command for Use { } fn usage(&self) -> &str { - "Use definitions from a module" + "Use definitions from a module." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/bits/and.rs b/crates/nu-command/src/bits/and.rs index 4586c12bf014..6c12643ac12a 100644 --- a/crates/nu-command/src/bits/and.rs +++ b/crates/nu-command/src/bits/and.rs @@ -26,7 +26,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Performs bitwise and for integers" + "Performs bitwise and for integers." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bits/bits_.rs b/crates/nu-command/src/bits/bits_.rs index 44f2c15db84e..75d9acd340e3 100644 --- a/crates/nu-command/src/bits/bits_.rs +++ b/crates/nu-command/src/bits/bits_.rs @@ -20,7 +20,7 @@ impl Command for Bits { } fn usage(&self) -> &str { - "Various commands for working with bits" + "Various commands for working with bits." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/bits/not.rs b/crates/nu-command/src/bits/not.rs index 3363d7dd7c90..fefa1cd1384d 100644 --- a/crates/nu-command/src/bits/not.rs +++ b/crates/nu-command/src/bits/not.rs @@ -33,7 +33,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Performs logical negation on each bit" + "Performs logical negation on each bit." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bits/or.rs b/crates/nu-command/src/bits/or.rs index 4950e737a3dd..7b3fdb1e7ccb 100644 --- a/crates/nu-command/src/bits/or.rs +++ b/crates/nu-command/src/bits/or.rs @@ -26,7 +26,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Performs bitwise or for integers" + "Performs bitwise or for integers." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bits/rotate_left.rs b/crates/nu-command/src/bits/rotate_left.rs index 669324877690..e4e07c5d1f0e 100644 --- a/crates/nu-command/src/bits/rotate_left.rs +++ b/crates/nu-command/src/bits/rotate_left.rs @@ -36,7 +36,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Bitwise rotate left for integers" + "Bitwise rotate left for integers." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bits/rotate_right.rs b/crates/nu-command/src/bits/rotate_right.rs index 91841b9880f6..9a2650a51c3c 100644 --- a/crates/nu-command/src/bits/rotate_right.rs +++ b/crates/nu-command/src/bits/rotate_right.rs @@ -36,7 +36,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Bitwise rotate right for integers" + "Bitwise rotate right for integers." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bits/shift_left.rs b/crates/nu-command/src/bits/shift_left.rs index 599dd0a4e065..ff6cef1648f2 100644 --- a/crates/nu-command/src/bits/shift_left.rs +++ b/crates/nu-command/src/bits/shift_left.rs @@ -36,7 +36,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Bitwise shift left for integers" + "Bitwise shift left for integers." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bits/shift_right.rs b/crates/nu-command/src/bits/shift_right.rs index 668439220fb1..cf0ec1f532db 100644 --- a/crates/nu-command/src/bits/shift_right.rs +++ b/crates/nu-command/src/bits/shift_right.rs @@ -36,7 +36,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Bitwise shift right for integers" + "Bitwise shift right for integers." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bits/xor.rs b/crates/nu-command/src/bits/xor.rs index 289f2484d931..f509f1ab99a1 100644 --- a/crates/nu-command/src/bits/xor.rs +++ b/crates/nu-command/src/bits/xor.rs @@ -26,7 +26,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Performs bitwise xor for integers" + "Performs bitwise xor for integers." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bytes/add.rs b/crates/nu-command/src/bytes/add.rs index a7f321b4faf5..2276567bedc8 100644 --- a/crates/nu-command/src/bytes/add.rs +++ b/crates/nu-command/src/bytes/add.rs @@ -49,7 +49,7 @@ impl Command for BytesAdd { } fn usage(&self) -> &str { - "Add specified bytes to the input" + "Add specified bytes to the input." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bytes/bytes_.rs b/crates/nu-command/src/bytes/bytes_.rs index d7366c52e185..08117e29d669 100644 --- a/crates/nu-command/src/bytes/bytes_.rs +++ b/crates/nu-command/src/bytes/bytes_.rs @@ -20,7 +20,7 @@ impl Command for Bytes { } fn usage(&self) -> &str { - "Various commands for working with byte data" + "Various commands for working with byte data." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/bytes/collect.rs b/crates/nu-command/src/bytes/collect.rs index 5dfd2f19007e..881481ba9483 100644 --- a/crates/nu-command/src/bytes/collect.rs +++ b/crates/nu-command/src/bytes/collect.rs @@ -26,7 +26,7 @@ impl Command for BytesCollect { } fn usage(&self) -> &str { - "Concatenate multiple binary into a single binary, with an optional separator between each" + "Concatenate multiple binary into a single binary, with an optional separator between each." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bytes/ends_with.rs b/crates/nu-command/src/bytes/ends_with.rs index 44aeb12e6691..73b8d520ab04 100644 --- a/crates/nu-command/src/bytes/ends_with.rs +++ b/crates/nu-command/src/bytes/ends_with.rs @@ -39,7 +39,7 @@ impl Command for BytesEndsWith { } fn usage(&self) -> &str { - "Check if bytes ends with a pattern" + "Check if bytes ends with a pattern." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bytes/index_of.rs b/crates/nu-command/src/bytes/index_of.rs index d8609296f02f..23573550481f 100644 --- a/crates/nu-command/src/bytes/index_of.rs +++ b/crates/nu-command/src/bytes/index_of.rs @@ -49,7 +49,7 @@ impl Command for BytesIndexOf { } fn usage(&self) -> &str { - "Returns start index of first occurrence of pattern in bytes, or -1 if no match" + "Returns start index of first occurrence of pattern in bytes, or -1 if no match." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bytes/length.rs b/crates/nu-command/src/bytes/length.rs index 1bca896f5554..b90f9cea0df1 100644 --- a/crates/nu-command/src/bytes/length.rs +++ b/crates/nu-command/src/bytes/length.rs @@ -27,7 +27,7 @@ impl Command for BytesLen { } fn usage(&self) -> &str { - "Output the length of any bytes in the pipeline" + "Output the length of any bytes in the pipeline." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bytes/remove.rs b/crates/nu-command/src/bytes/remove.rs index f75905a0a974..90a3eaeaebc3 100644 --- a/crates/nu-command/src/bytes/remove.rs +++ b/crates/nu-command/src/bytes/remove.rs @@ -43,7 +43,7 @@ impl Command for BytesRemove { } fn usage(&self) -> &str { - "Remove bytes" + "Remove bytes." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bytes/replace.rs b/crates/nu-command/src/bytes/replace.rs index 12a72b170c07..5b3bb8919b24 100644 --- a/crates/nu-command/src/bytes/replace.rs +++ b/crates/nu-command/src/bytes/replace.rs @@ -43,7 +43,7 @@ impl Command for BytesReplace { } fn usage(&self) -> &str { - "Find and replace binary" + "Find and replace binary." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bytes/reverse.rs b/crates/nu-command/src/bytes/reverse.rs index f905a12fb32e..2c731152c0bb 100644 --- a/crates/nu-command/src/bytes/reverse.rs +++ b/crates/nu-command/src/bytes/reverse.rs @@ -27,7 +27,7 @@ impl Command for BytesReverse { } fn usage(&self) -> &str { - "Reverse the bytes in the pipeline" + "Reverse the bytes in the pipeline." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/bytes/starts_with.rs b/crates/nu-command/src/bytes/starts_with.rs index 0de2ce910593..23d60dae1c40 100644 --- a/crates/nu-command/src/bytes/starts_with.rs +++ b/crates/nu-command/src/bytes/starts_with.rs @@ -40,7 +40,7 @@ impl Command for BytesStartsWith { } fn usage(&self) -> &str { - "Check if bytes starts with a pattern" + "Check if bytes starts with a pattern." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/conversions/fill.rs b/crates/nu-command/src/conversions/fill.rs index adaba33f6932..e0e6d52a34b0 100644 --- a/crates/nu-command/src/conversions/fill.rs +++ b/crates/nu-command/src/conversions/fill.rs @@ -37,7 +37,7 @@ impl Command for Fill { } fn usage(&self) -> &str { - "Fill and Align" + "Fill and Align." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/conversions/fmt.rs b/crates/nu-command/src/conversions/fmt.rs index f41f9cbbb7c0..4ed08febc6cb 100644 --- a/crates/nu-command/src/conversions/fmt.rs +++ b/crates/nu-command/src/conversions/fmt.rs @@ -15,7 +15,7 @@ impl Command for Fmt { } fn usage(&self) -> &str { - "Format a number" + "Format a number." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/conversions/into/binary.rs b/crates/nu-command/src/conversions/into/binary.rs index f7c3d8f676a3..84afed92e030 100644 --- a/crates/nu-command/src/conversions/into/binary.rs +++ b/crates/nu-command/src/conversions/into/binary.rs @@ -36,7 +36,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert value to a binary primitive" + "Convert value to a binary primitive." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/conversions/into/bool.rs b/crates/nu-command/src/conversions/into/bool.rs index 787fc2e52652..ecd06d142179 100644 --- a/crates/nu-command/src/conversions/into/bool.rs +++ b/crates/nu-command/src/conversions/into/bool.rs @@ -32,7 +32,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert value to boolean" + "Convert value to boolean." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/conversions/into/datetime.rs b/crates/nu-command/src/conversions/into/datetime.rs index 6fdaf11690ba..3143b9f96e32 100644 --- a/crates/nu-command/src/conversions/into/datetime.rs +++ b/crates/nu-command/src/conversions/into/datetime.rs @@ -139,7 +139,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert text into a datetime" + "Convert text into a datetime." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/conversions/into/decimal.rs b/crates/nu-command/src/conversions/into/decimal.rs index ea78429668c7..1832ca1d58d4 100644 --- a/crates/nu-command/src/conversions/into/decimal.rs +++ b/crates/nu-command/src/conversions/into/decimal.rs @@ -28,7 +28,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert text into a decimal" + "Convert text into a decimal." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/conversions/into/duration.rs b/crates/nu-command/src/conversions/into/duration.rs index df8b408d2591..23a0013cfab9 100644 --- a/crates/nu-command/src/conversions/into/duration.rs +++ b/crates/nu-command/src/conversions/into/duration.rs @@ -39,7 +39,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert value to duration" + "Convert value to duration." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/conversions/into/filesize.rs b/crates/nu-command/src/conversions/into/filesize.rs index 775b84e43609..37e4c16c467b 100644 --- a/crates/nu-command/src/conversions/into/filesize.rs +++ b/crates/nu-command/src/conversions/into/filesize.rs @@ -31,7 +31,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert value to filesize" + "Convert value to filesize." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/conversions/into/int.rs b/crates/nu-command/src/conversions/into/int.rs index b0d935bb42fb..c1640f715593 100644 --- a/crates/nu-command/src/conversions/into/int.rs +++ b/crates/nu-command/src/conversions/into/int.rs @@ -49,7 +49,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert value to integer" + "Convert value to integer." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/conversions/into/record.rs b/crates/nu-command/src/conversions/into/record.rs index 462042be0014..d2623c7a1345 100644 --- a/crates/nu-command/src/conversions/into/record.rs +++ b/crates/nu-command/src/conversions/into/record.rs @@ -27,7 +27,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert value to record" + "Convert value to record." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/conversions/into/string.rs b/crates/nu-command/src/conversions/into/string.rs index 47bbc383ad99..03e53eac7eaa 100644 --- a/crates/nu-command/src/conversions/into/string.rs +++ b/crates/nu-command/src/conversions/into/string.rs @@ -57,7 +57,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert value to string" + "Convert value to string." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/database/commands/into_sqlite.rs b/crates/nu-command/src/database/commands/into_sqlite.rs index 416cb36773f8..c9235833c4e2 100644 --- a/crates/nu-command/src/database/commands/into_sqlite.rs +++ b/crates/nu-command/src/database/commands/into_sqlite.rs @@ -48,7 +48,7 @@ impl Command for IntoSqliteDb { } fn usage(&self) -> &str { - "Convert table into a SQLite database" + "Convert table into a SQLite database." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/dataframe/eager/append.rs b/crates/nu-command/src/dataframe/eager/append.rs index 31d772c7cc65..3774751ffb32 100644 --- a/crates/nu-command/src/dataframe/eager/append.rs +++ b/crates/nu-command/src/dataframe/eager/append.rs @@ -16,7 +16,7 @@ impl Command for AppendDF { } fn usage(&self) -> &str { - "Appends a new dataframe" + "Appends a new dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/columns.rs b/crates/nu-command/src/dataframe/eager/columns.rs index 53708b1e4229..cdf97de7ef7c 100644 --- a/crates/nu-command/src/dataframe/eager/columns.rs +++ b/crates/nu-command/src/dataframe/eager/columns.rs @@ -14,7 +14,7 @@ impl Command for ColumnsDF { } fn usage(&self) -> &str { - "Show dataframe columns" + "Show dataframe columns." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/drop.rs b/crates/nu-command/src/dataframe/eager/drop.rs index 0cf23b5e5699..56bbc319256e 100644 --- a/crates/nu-command/src/dataframe/eager/drop.rs +++ b/crates/nu-command/src/dataframe/eager/drop.rs @@ -17,7 +17,7 @@ impl Command for DropDF { } fn usage(&self) -> &str { - "Creates a new dataframe by dropping the selected columns" + "Creates a new dataframe by dropping the selected columns." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/drop_duplicates.rs b/crates/nu-command/src/dataframe/eager/drop_duplicates.rs index d8a719da262c..6a1506826cad 100644 --- a/crates/nu-command/src/dataframe/eager/drop_duplicates.rs +++ b/crates/nu-command/src/dataframe/eager/drop_duplicates.rs @@ -18,7 +18,7 @@ impl Command for DropDuplicates { } fn usage(&self) -> &str { - "Drops duplicate values in dataframe" + "Drops duplicate values in dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/drop_nulls.rs b/crates/nu-command/src/dataframe/eager/drop_nulls.rs index a63a8c6d8ec1..0397e358d683 100644 --- a/crates/nu-command/src/dataframe/eager/drop_nulls.rs +++ b/crates/nu-command/src/dataframe/eager/drop_nulls.rs @@ -17,7 +17,7 @@ impl Command for DropNulls { } fn usage(&self) -> &str { - "Drops null values in dataframe" + "Drops null values in dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/dtypes.rs b/crates/nu-command/src/dataframe/eager/dtypes.rs index b61c59818e9b..a38ba440cb1d 100644 --- a/crates/nu-command/src/dataframe/eager/dtypes.rs +++ b/crates/nu-command/src/dataframe/eager/dtypes.rs @@ -14,7 +14,7 @@ impl Command for DataTypes { } fn usage(&self) -> &str { - "Show dataframe data types" + "Show dataframe data types." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/dummies.rs b/crates/nu-command/src/dataframe/eager/dummies.rs index 8d4794a234a6..a1c673a3cc17 100644 --- a/crates/nu-command/src/dataframe/eager/dummies.rs +++ b/crates/nu-command/src/dataframe/eager/dummies.rs @@ -15,7 +15,7 @@ impl Command for Dummies { } fn usage(&self) -> &str { - "Creates a new dataframe with dummy variables" + "Creates a new dataframe with dummy variables." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/filter_with.rs b/crates/nu-command/src/dataframe/eager/filter_with.rs index 427f68620914..733385ca5227 100644 --- a/crates/nu-command/src/dataframe/eager/filter_with.rs +++ b/crates/nu-command/src/dataframe/eager/filter_with.rs @@ -19,7 +19,7 @@ impl Command for FilterWith { } fn usage(&self) -> &str { - "Filters dataframe using a mask or expression as reference" + "Filters dataframe using a mask or expression as reference." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/get.rs b/crates/nu-command/src/dataframe/eager/get.rs index 813c1f0399ce..74174de789ac 100644 --- a/crates/nu-command/src/dataframe/eager/get.rs +++ b/crates/nu-command/src/dataframe/eager/get.rs @@ -18,7 +18,7 @@ impl Command for GetDF { } fn usage(&self) -> &str { - "Creates dataframe with the selected columns" + "Creates dataframe with the selected columns." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/last.rs b/crates/nu-command/src/dataframe/eager/last.rs index cb6943569968..0d7428a3c2d9 100644 --- a/crates/nu-command/src/dataframe/eager/last.rs +++ b/crates/nu-command/src/dataframe/eager/last.rs @@ -15,7 +15,7 @@ impl Command for LastDF { } fn usage(&self) -> &str { - "Creates new dataframe with tail rows or creates a last expression" + "Creates new dataframe with tail rows or creates a last expression." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/list.rs b/crates/nu-command/src/dataframe/eager/list.rs index b0567cac70cc..05bcdfe52a18 100644 --- a/crates/nu-command/src/dataframe/eager/list.rs +++ b/crates/nu-command/src/dataframe/eager/list.rs @@ -15,7 +15,7 @@ impl Command for ListDF { } fn usage(&self) -> &str { - "Lists stored dataframes" + "Lists stored dataframes." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/melt.rs b/crates/nu-command/src/dataframe/eager/melt.rs index d82aa9814100..6ecff9120be9 100644 --- a/crates/nu-command/src/dataframe/eager/melt.rs +++ b/crates/nu-command/src/dataframe/eager/melt.rs @@ -19,7 +19,7 @@ impl Command for MeltDF { } fn usage(&self) -> &str { - "Unpivot a DataFrame from wide to long format" + "Unpivot a DataFrame from wide to long format." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/open.rs b/crates/nu-command/src/dataframe/eager/open.rs index 7d607ac81c79..319bb3aec3ab 100644 --- a/crates/nu-command/src/dataframe/eager/open.rs +++ b/crates/nu-command/src/dataframe/eager/open.rs @@ -22,7 +22,7 @@ impl Command for OpenDataFrame { } fn usage(&self) -> &str { - "Opens csv, json, arrow, or parquet file to create dataframe" + "Opens csv, json, arrow, or parquet file to create dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/rename.rs b/crates/nu-command/src/dataframe/eager/rename.rs index bf914d58fde6..9ea417655faa 100644 --- a/crates/nu-command/src/dataframe/eager/rename.rs +++ b/crates/nu-command/src/dataframe/eager/rename.rs @@ -18,7 +18,7 @@ impl Command for RenameDF { } fn usage(&self) -> &str { - "Rename a dataframe column" + "Rename a dataframe column." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/sample.rs b/crates/nu-command/src/dataframe/eager/sample.rs index fa0bc3dae635..7bd8833bf189 100644 --- a/crates/nu-command/src/dataframe/eager/sample.rs +++ b/crates/nu-command/src/dataframe/eager/sample.rs @@ -16,7 +16,7 @@ impl Command for SampleDF { } fn usage(&self) -> &str { - "Create sample dataframe" + "Create sample dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/shape.rs b/crates/nu-command/src/dataframe/eager/shape.rs index a2462a68c373..a121bf4b7afa 100644 --- a/crates/nu-command/src/dataframe/eager/shape.rs +++ b/crates/nu-command/src/dataframe/eager/shape.rs @@ -17,7 +17,7 @@ impl Command for ShapeDF { } fn usage(&self) -> &str { - "Shows column and row size for a dataframe" + "Shows column and row size for a dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/slice.rs b/crates/nu-command/src/dataframe/eager/slice.rs index 4666895d8216..67b3939bf959 100644 --- a/crates/nu-command/src/dataframe/eager/slice.rs +++ b/crates/nu-command/src/dataframe/eager/slice.rs @@ -18,7 +18,7 @@ impl Command for SliceDF { } fn usage(&self) -> &str { - "Creates new dataframe from a slice of rows" + "Creates new dataframe from a slice of rows." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/take.rs b/crates/nu-command/src/dataframe/eager/take.rs index 118a39d58086..114c77fe1a5d 100644 --- a/crates/nu-command/src/dataframe/eager/take.rs +++ b/crates/nu-command/src/dataframe/eager/take.rs @@ -19,7 +19,7 @@ impl Command for TakeDF { } fn usage(&self) -> &str { - "Creates new dataframe using the given indices" + "Creates new dataframe using the given indices." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/to_arrow.rs b/crates/nu-command/src/dataframe/eager/to_arrow.rs index eea3afa9b911..7d0dc0960bfd 100644 --- a/crates/nu-command/src/dataframe/eager/to_arrow.rs +++ b/crates/nu-command/src/dataframe/eager/to_arrow.rs @@ -19,7 +19,7 @@ impl Command for ToArrow { } fn usage(&self) -> &str { - "Saves dataframe to arrow file" + "Saves dataframe to arrow file." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/to_csv.rs b/crates/nu-command/src/dataframe/eager/to_csv.rs index 0c31129cdbcf..987d759dd81c 100644 --- a/crates/nu-command/src/dataframe/eager/to_csv.rs +++ b/crates/nu-command/src/dataframe/eager/to_csv.rs @@ -19,7 +19,7 @@ impl Command for ToCSV { } fn usage(&self) -> &str { - "Saves dataframe to csv file" + "Saves dataframe to csv file." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/to_df.rs b/crates/nu-command/src/dataframe/eager/to_df.rs index ae884ed8b3d2..fb452968c729 100644 --- a/crates/nu-command/src/dataframe/eager/to_df.rs +++ b/crates/nu-command/src/dataframe/eager/to_df.rs @@ -15,7 +15,7 @@ impl Command for ToDataFrame { } fn usage(&self) -> &str { - "Converts a list, table or record into a dataframe" + "Converts a list, table or record into a dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/to_nu.rs b/crates/nu-command/src/dataframe/eager/to_nu.rs index f610d09edc31..f0db9ef7f5d5 100644 --- a/crates/nu-command/src/dataframe/eager/to_nu.rs +++ b/crates/nu-command/src/dataframe/eager/to_nu.rs @@ -16,7 +16,7 @@ impl Command for ToNu { } fn usage(&self) -> &str { - "Converts a section of the dataframe into nushell Table" + "Converts a section of the dataframe into nushell Table." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/to_parquet.rs b/crates/nu-command/src/dataframe/eager/to_parquet.rs index 0434beb1d454..2f9bcb213353 100644 --- a/crates/nu-command/src/dataframe/eager/to_parquet.rs +++ b/crates/nu-command/src/dataframe/eager/to_parquet.rs @@ -19,7 +19,7 @@ impl Command for ToParquet { } fn usage(&self) -> &str { - "Saves dataframe to parquet file" + "Saves dataframe to parquet file." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/with_column.rs b/crates/nu-command/src/dataframe/eager/with_column.rs index 8a648008b31d..ad4ac6879b9c 100644 --- a/crates/nu-command/src/dataframe/eager/with_column.rs +++ b/crates/nu-command/src/dataframe/eager/with_column.rs @@ -16,7 +16,7 @@ impl Command for WithColumn { } fn usage(&self) -> &str { - "Adds a series to the dataframe" + "Adds a series to the dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/expressions/alias.rs b/crates/nu-command/src/dataframe/expressions/alias.rs index 53539a831f03..d03fc4f0eb83 100644 --- a/crates/nu-command/src/dataframe/expressions/alias.rs +++ b/crates/nu-command/src/dataframe/expressions/alias.rs @@ -16,7 +16,7 @@ impl Command for ExprAlias { } fn usage(&self) -> &str { - "Creates an alias expression" + "Creates an alias expression." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/expressions/arg_where.rs b/crates/nu-command/src/dataframe/expressions/arg_where.rs index b8c2b26bc146..aa8cb2dbe370 100644 --- a/crates/nu-command/src/dataframe/expressions/arg_where.rs +++ b/crates/nu-command/src/dataframe/expressions/arg_where.rs @@ -16,7 +16,7 @@ impl Command for ExprArgWhere { } fn usage(&self) -> &str { - "Creates an expression that returns the arguments where expression is true" + "Creates an expression that returns the arguments where expression is true." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/expressions/as_nu.rs b/crates/nu-command/src/dataframe/expressions/as_nu.rs index 31c890936eb9..322e6958a09c 100644 --- a/crates/nu-command/src/dataframe/expressions/as_nu.rs +++ b/crates/nu-command/src/dataframe/expressions/as_nu.rs @@ -15,7 +15,7 @@ impl Command for ExprAsNu { } fn usage(&self) -> &str { - "Convert expression into a nu value for access and exploration" + "Convert expression into a nu value for access and exploration." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/expressions/col.rs b/crates/nu-command/src/dataframe/expressions/col.rs index 09f11b1e1a60..76f1c30a0ff8 100644 --- a/crates/nu-command/src/dataframe/expressions/col.rs +++ b/crates/nu-command/src/dataframe/expressions/col.rs @@ -16,7 +16,7 @@ impl Command for ExprCol { } fn usage(&self) -> &str { - "Creates a named column expression" + "Creates a named column expression." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/expressions/concat_str.rs b/crates/nu-command/src/dataframe/expressions/concat_str.rs index 77d7d1948f36..6a0f52c2deb0 100644 --- a/crates/nu-command/src/dataframe/expressions/concat_str.rs +++ b/crates/nu-command/src/dataframe/expressions/concat_str.rs @@ -16,7 +16,7 @@ impl Command for ExprConcatStr { } fn usage(&self) -> &str { - "Creates a concat string expression" + "Creates a concat string expression." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/expressions/is_in.rs b/crates/nu-command/src/dataframe/expressions/is_in.rs index e0e12f302863..2f1dc951221a 100644 --- a/crates/nu-command/src/dataframe/expressions/is_in.rs +++ b/crates/nu-command/src/dataframe/expressions/is_in.rs @@ -16,7 +16,7 @@ impl Command for ExprIsIn { } fn usage(&self) -> &str { - "Creates an is-in expression" + "Creates an is-in expression." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/expressions/lit.rs b/crates/nu-command/src/dataframe/expressions/lit.rs index 688495da391e..36cb76512e7a 100644 --- a/crates/nu-command/src/dataframe/expressions/lit.rs +++ b/crates/nu-command/src/dataframe/expressions/lit.rs @@ -15,7 +15,7 @@ impl Command for ExprLit { } fn usage(&self) -> &str { - "Creates a literal expression" + "Creates a literal expression." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/expressions/otherwise.rs b/crates/nu-command/src/dataframe/expressions/otherwise.rs index 91ce594880af..0cad793bf9e5 100644 --- a/crates/nu-command/src/dataframe/expressions/otherwise.rs +++ b/crates/nu-command/src/dataframe/expressions/otherwise.rs @@ -15,7 +15,7 @@ impl Command for ExprOtherwise { } fn usage(&self) -> &str { - "completes a when expression" + "completes a when expression." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/expressions/quantile.rs b/crates/nu-command/src/dataframe/expressions/quantile.rs index 04dcdbf27b57..f88bc2340bd0 100644 --- a/crates/nu-command/src/dataframe/expressions/quantile.rs +++ b/crates/nu-command/src/dataframe/expressions/quantile.rs @@ -16,7 +16,7 @@ impl Command for ExprQuantile { } fn usage(&self) -> &str { - "Aggregates the columns to the selected quantile" + "Aggregates the columns to the selected quantile." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/expressions/when.rs b/crates/nu-command/src/dataframe/expressions/when.rs index d228b63c8322..b90950cf0232 100644 --- a/crates/nu-command/src/dataframe/expressions/when.rs +++ b/crates/nu-command/src/dataframe/expressions/when.rs @@ -16,7 +16,7 @@ impl Command for ExprWhen { } fn usage(&self) -> &str { - "Creates and modifies a when expression" + "Creates and modifies a when expression." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/aggregate.rs b/crates/nu-command/src/dataframe/lazy/aggregate.rs index 0b798dfd4f55..3f7c7f625c8d 100644 --- a/crates/nu-command/src/dataframe/lazy/aggregate.rs +++ b/crates/nu-command/src/dataframe/lazy/aggregate.rs @@ -17,7 +17,7 @@ impl Command for LazyAggregate { } fn usage(&self) -> &str { - "Performs a series of aggregations from a group-by" + "Performs a series of aggregations from a group-by." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/collect.rs b/crates/nu-command/src/dataframe/lazy/collect.rs index 3b04ca192a92..208869f2cb49 100644 --- a/crates/nu-command/src/dataframe/lazy/collect.rs +++ b/crates/nu-command/src/dataframe/lazy/collect.rs @@ -16,7 +16,7 @@ impl Command for LazyCollect { } fn usage(&self) -> &str { - "Collect lazy dataframe into eager dataframe" + "Collect lazy dataframe into eager dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/fetch.rs b/crates/nu-command/src/dataframe/lazy/fetch.rs index 3e014d6f132e..f1c7585470ca 100644 --- a/crates/nu-command/src/dataframe/lazy/fetch.rs +++ b/crates/nu-command/src/dataframe/lazy/fetch.rs @@ -16,7 +16,7 @@ impl Command for LazyFetch { } fn usage(&self) -> &str { - "collects the lazyframe to the selected rows" + "collects the lazyframe to the selected rows." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/fill_nan.rs b/crates/nu-command/src/dataframe/lazy/fill_nan.rs index 1b15bafa02ff..82eb7dfbb4a8 100644 --- a/crates/nu-command/src/dataframe/lazy/fill_nan.rs +++ b/crates/nu-command/src/dataframe/lazy/fill_nan.rs @@ -15,7 +15,7 @@ impl Command for LazyFillNA { } fn usage(&self) -> &str { - "Replaces NaN values with the given expression" + "Replaces NaN values with the given expression." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/fill_null.rs b/crates/nu-command/src/dataframe/lazy/fill_null.rs index 1f0814fcc3c3..32fff5460d09 100644 --- a/crates/nu-command/src/dataframe/lazy/fill_null.rs +++ b/crates/nu-command/src/dataframe/lazy/fill_null.rs @@ -15,7 +15,7 @@ impl Command for LazyFillNull { } fn usage(&self) -> &str { - "Replaces NULL values with the given expression" + "Replaces NULL values with the given expression." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/filter.rs b/crates/nu-command/src/dataframe/lazy/filter.rs index 0ab55f0572f6..b150b9d8a570 100644 --- a/crates/nu-command/src/dataframe/lazy/filter.rs +++ b/crates/nu-command/src/dataframe/lazy/filter.rs @@ -16,7 +16,7 @@ impl Command for LazyFilter { } fn usage(&self) -> &str { - "Filter dataframe based in expression" + "Filter dataframe based in expression." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/groupby.rs b/crates/nu-command/src/dataframe/lazy/groupby.rs index f735ab489a9b..4eaa756e4a7a 100644 --- a/crates/nu-command/src/dataframe/lazy/groupby.rs +++ b/crates/nu-command/src/dataframe/lazy/groupby.rs @@ -16,7 +16,7 @@ impl Command for ToLazyGroupBy { } fn usage(&self) -> &str { - "Creates a group-by object that can be used for other aggregations" + "Creates a group-by object that can be used for other aggregations." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/join.rs b/crates/nu-command/src/dataframe/lazy/join.rs index 6787e94f907b..7940f492d3f0 100644 --- a/crates/nu-command/src/dataframe/lazy/join.rs +++ b/crates/nu-command/src/dataframe/lazy/join.rs @@ -16,7 +16,7 @@ impl Command for LazyJoin { } fn usage(&self) -> &str { - "Joins a lazy frame with other lazy frame" + "Joins a lazy frame with other lazy frame." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/quantile.rs b/crates/nu-command/src/dataframe/lazy/quantile.rs index 435045384b50..055f792f4c42 100644 --- a/crates/nu-command/src/dataframe/lazy/quantile.rs +++ b/crates/nu-command/src/dataframe/lazy/quantile.rs @@ -16,7 +16,7 @@ impl Command for LazyQuantile { } fn usage(&self) -> &str { - "Aggregates the columns to the selected quantile" + "Aggregates the columns to the selected quantile." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/select.rs b/crates/nu-command/src/dataframe/lazy/select.rs index 6f7e3cd6807f..2d67cfc2e7fb 100644 --- a/crates/nu-command/src/dataframe/lazy/select.rs +++ b/crates/nu-command/src/dataframe/lazy/select.rs @@ -15,7 +15,7 @@ impl Command for LazySelect { } fn usage(&self) -> &str { - "Selects columns from lazyframe" + "Selects columns from lazyframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/sort_by_expr.rs b/crates/nu-command/src/dataframe/lazy/sort_by_expr.rs index 83b492411a67..0ac9fc687b10 100644 --- a/crates/nu-command/src/dataframe/lazy/sort_by_expr.rs +++ b/crates/nu-command/src/dataframe/lazy/sort_by_expr.rs @@ -16,7 +16,7 @@ impl Command for LazySortBy { } fn usage(&self) -> &str { - "sorts a lazy dataframe based on expression(s)" + "sorts a lazy dataframe based on expression(s)." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/lazy/to_lazy.rs b/crates/nu-command/src/dataframe/lazy/to_lazy.rs index 61120db9220f..99aabc9f60c3 100644 --- a/crates/nu-command/src/dataframe/lazy/to_lazy.rs +++ b/crates/nu-command/src/dataframe/lazy/to_lazy.rs @@ -15,7 +15,7 @@ impl Command for ToLazyFrame { } fn usage(&self) -> &str { - "Converts a dataframe into a lazy dataframe" + "Converts a dataframe into a lazy dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/all_false.rs b/crates/nu-command/src/dataframe/series/all_false.rs index c9e1e078a6a0..391534245b20 100644 --- a/crates/nu-command/src/dataframe/series/all_false.rs +++ b/crates/nu-command/src/dataframe/series/all_false.rs @@ -15,7 +15,7 @@ impl Command for AllFalse { } fn usage(&self) -> &str { - "Returns true if all values are false" + "Returns true if all values are false." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/all_true.rs b/crates/nu-command/src/dataframe/series/all_true.rs index ee4de02be26d..ac8dbf03aa06 100644 --- a/crates/nu-command/src/dataframe/series/all_true.rs +++ b/crates/nu-command/src/dataframe/series/all_true.rs @@ -15,7 +15,7 @@ impl Command for AllTrue { } fn usage(&self) -> &str { - "Returns true if all values are true" + "Returns true if all values are true." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/arg_max.rs b/crates/nu-command/src/dataframe/series/arg_max.rs index a8e4ec201102..aaec16f74711 100644 --- a/crates/nu-command/src/dataframe/series/arg_max.rs +++ b/crates/nu-command/src/dataframe/series/arg_max.rs @@ -16,7 +16,7 @@ impl Command for ArgMax { } fn usage(&self) -> &str { - "Return index for max value in series" + "Return index for max value in series." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/dataframe/series/arg_min.rs b/crates/nu-command/src/dataframe/series/arg_min.rs index 81d30f8b3eec..953f7baf0e16 100644 --- a/crates/nu-command/src/dataframe/series/arg_min.rs +++ b/crates/nu-command/src/dataframe/series/arg_min.rs @@ -16,7 +16,7 @@ impl Command for ArgMin { } fn usage(&self) -> &str { - "Return index for min value in series" + "Return index for min value in series." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/dataframe/series/cumulative.rs b/crates/nu-command/src/dataframe/series/cumulative.rs index 85b2ea36e7ed..761da4eb7bd6 100644 --- a/crates/nu-command/src/dataframe/series/cumulative.rs +++ b/crates/nu-command/src/dataframe/series/cumulative.rs @@ -49,7 +49,7 @@ impl Command for Cumulative { } fn usage(&self) -> &str { - "Cumulative calculation for a series" + "Cumulative calculation for a series." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/date/get_day.rs b/crates/nu-command/src/dataframe/series/date/get_day.rs index 694ad005b39b..65c21d3ea56c 100644 --- a/crates/nu-command/src/dataframe/series/date/get_day.rs +++ b/crates/nu-command/src/dataframe/series/date/get_day.rs @@ -16,7 +16,7 @@ impl Command for GetDay { } fn usage(&self) -> &str { - "Gets day from date" + "Gets day from date." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/date/get_hour.rs b/crates/nu-command/src/dataframe/series/date/get_hour.rs index e7a9ea05fcc8..bca8e607da2f 100644 --- a/crates/nu-command/src/dataframe/series/date/get_hour.rs +++ b/crates/nu-command/src/dataframe/series/date/get_hour.rs @@ -16,7 +16,7 @@ impl Command for GetHour { } fn usage(&self) -> &str { - "Gets hour from date" + "Gets hour from date." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/date/get_minute.rs b/crates/nu-command/src/dataframe/series/date/get_minute.rs index db4a0d569ab1..d2d8bd96eab4 100644 --- a/crates/nu-command/src/dataframe/series/date/get_minute.rs +++ b/crates/nu-command/src/dataframe/series/date/get_minute.rs @@ -16,7 +16,7 @@ impl Command for GetMinute { } fn usage(&self) -> &str { - "Gets minute from date" + "Gets minute from date." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/date/get_month.rs b/crates/nu-command/src/dataframe/series/date/get_month.rs index 7c66379bbd69..244765e01fa4 100644 --- a/crates/nu-command/src/dataframe/series/date/get_month.rs +++ b/crates/nu-command/src/dataframe/series/date/get_month.rs @@ -16,7 +16,7 @@ impl Command for GetMonth { } fn usage(&self) -> &str { - "Gets month from date" + "Gets month from date." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/date/get_nanosecond.rs b/crates/nu-command/src/dataframe/series/date/get_nanosecond.rs index 83f320ddc661..ec3ed8592f4a 100644 --- a/crates/nu-command/src/dataframe/series/date/get_nanosecond.rs +++ b/crates/nu-command/src/dataframe/series/date/get_nanosecond.rs @@ -16,7 +16,7 @@ impl Command for GetNanosecond { } fn usage(&self) -> &str { - "Gets nanosecond from date" + "Gets nanosecond from date." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/date/get_ordinal.rs b/crates/nu-command/src/dataframe/series/date/get_ordinal.rs index 70bde5130de3..bad2b936a8c6 100644 --- a/crates/nu-command/src/dataframe/series/date/get_ordinal.rs +++ b/crates/nu-command/src/dataframe/series/date/get_ordinal.rs @@ -16,7 +16,7 @@ impl Command for GetOrdinal { } fn usage(&self) -> &str { - "Gets ordinal from date" + "Gets ordinal from date." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/date/get_second.rs b/crates/nu-command/src/dataframe/series/date/get_second.rs index 52c5192d27d9..60cf11a538ce 100644 --- a/crates/nu-command/src/dataframe/series/date/get_second.rs +++ b/crates/nu-command/src/dataframe/series/date/get_second.rs @@ -16,7 +16,7 @@ impl Command for GetSecond { } fn usage(&self) -> &str { - "Gets second from date" + "Gets second from date." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/date/get_week.rs b/crates/nu-command/src/dataframe/series/date/get_week.rs index 0ff7968ef79c..c269b3b04381 100644 --- a/crates/nu-command/src/dataframe/series/date/get_week.rs +++ b/crates/nu-command/src/dataframe/series/date/get_week.rs @@ -16,7 +16,7 @@ impl Command for GetWeek { } fn usage(&self) -> &str { - "Gets week from date" + "Gets week from date." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/date/get_weekday.rs b/crates/nu-command/src/dataframe/series/date/get_weekday.rs index df1c473966e3..d93211b3401a 100644 --- a/crates/nu-command/src/dataframe/series/date/get_weekday.rs +++ b/crates/nu-command/src/dataframe/series/date/get_weekday.rs @@ -16,7 +16,7 @@ impl Command for GetWeekDay { } fn usage(&self) -> &str { - "Gets weekday from date" + "Gets weekday from date." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/date/get_year.rs b/crates/nu-command/src/dataframe/series/date/get_year.rs index 77d7d3bf1e35..bd97bc7680d6 100644 --- a/crates/nu-command/src/dataframe/series/date/get_year.rs +++ b/crates/nu-command/src/dataframe/series/date/get_year.rs @@ -16,7 +16,7 @@ impl Command for GetYear { } fn usage(&self) -> &str { - "Gets year from date" + "Gets year from date." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/indexes/arg_sort.rs b/crates/nu-command/src/dataframe/series/indexes/arg_sort.rs index c1053a10e0c7..b42fa4b2b3a6 100644 --- a/crates/nu-command/src/dataframe/series/indexes/arg_sort.rs +++ b/crates/nu-command/src/dataframe/series/indexes/arg_sort.rs @@ -16,7 +16,7 @@ impl Command for ArgSort { } fn usage(&self) -> &str { - "Returns indexes for a sorted series" + "Returns indexes for a sorted series." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/dataframe/series/indexes/arg_true.rs b/crates/nu-command/src/dataframe/series/indexes/arg_true.rs index ebed665a378e..2a067c42977b 100644 --- a/crates/nu-command/src/dataframe/series/indexes/arg_true.rs +++ b/crates/nu-command/src/dataframe/series/indexes/arg_true.rs @@ -16,7 +16,7 @@ impl Command for ArgTrue { } fn usage(&self) -> &str { - "Returns indexes where values are true" + "Returns indexes where values are true." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/dataframe/series/indexes/arg_unique.rs b/crates/nu-command/src/dataframe/series/indexes/arg_unique.rs index 4f292d51b890..5824c59ecf1e 100644 --- a/crates/nu-command/src/dataframe/series/indexes/arg_unique.rs +++ b/crates/nu-command/src/dataframe/series/indexes/arg_unique.rs @@ -16,7 +16,7 @@ impl Command for ArgUnique { } fn usage(&self) -> &str { - "Returns indexes for unique values" + "Returns indexes for unique values." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/dataframe/series/indexes/set_with_idx.rs b/crates/nu-command/src/dataframe/series/indexes/set_with_idx.rs index cb8db382b51f..0146b6c4c3fe 100644 --- a/crates/nu-command/src/dataframe/series/indexes/set_with_idx.rs +++ b/crates/nu-command/src/dataframe/series/indexes/set_with_idx.rs @@ -17,7 +17,7 @@ impl Command for SetWithIndex { } fn usage(&self) -> &str { - "Sets value in the given index" + "Sets value in the given index." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/masks/is_duplicated.rs b/crates/nu-command/src/dataframe/series/masks/is_duplicated.rs index 765d141e086f..5311e63a0bd1 100644 --- a/crates/nu-command/src/dataframe/series/masks/is_duplicated.rs +++ b/crates/nu-command/src/dataframe/series/masks/is_duplicated.rs @@ -16,7 +16,7 @@ impl Command for IsDuplicated { } fn usage(&self) -> &str { - "Creates mask indicating duplicated values" + "Creates mask indicating duplicated values." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/masks/is_in.rs b/crates/nu-command/src/dataframe/series/masks/is_in.rs index b88d0533e44a..1edb98e59f64 100644 --- a/crates/nu-command/src/dataframe/series/masks/is_in.rs +++ b/crates/nu-command/src/dataframe/series/masks/is_in.rs @@ -17,7 +17,7 @@ impl Command for IsIn { } fn usage(&self) -> &str { - "Checks if elements from a series are contained in right series" + "Checks if elements from a series are contained in right series." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/masks/is_not_null.rs b/crates/nu-command/src/dataframe/series/masks/is_not_null.rs index f75b997a3797..d58bd13d21d6 100644 --- a/crates/nu-command/src/dataframe/series/masks/is_not_null.rs +++ b/crates/nu-command/src/dataframe/series/masks/is_not_null.rs @@ -15,7 +15,7 @@ impl Command for IsNotNull { } fn usage(&self) -> &str { - "Creates mask where value is not null" + "Creates mask where value is not null." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/masks/is_null.rs b/crates/nu-command/src/dataframe/series/masks/is_null.rs index 798e2d24d611..be2d653e8870 100644 --- a/crates/nu-command/src/dataframe/series/masks/is_null.rs +++ b/crates/nu-command/src/dataframe/series/masks/is_null.rs @@ -15,7 +15,7 @@ impl Command for IsNull { } fn usage(&self) -> &str { - "Creates mask where value is null" + "Creates mask where value is null." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/masks/is_unique.rs b/crates/nu-command/src/dataframe/series/masks/is_unique.rs index 3f13f8b39459..84ca8b737a53 100644 --- a/crates/nu-command/src/dataframe/series/masks/is_unique.rs +++ b/crates/nu-command/src/dataframe/series/masks/is_unique.rs @@ -16,7 +16,7 @@ impl Command for IsUnique { } fn usage(&self) -> &str { - "Creates mask indicating unique values" + "Creates mask indicating unique values." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/masks/not.rs b/crates/nu-command/src/dataframe/series/masks/not.rs index 46435e5dc956..990c7935dcf0 100644 --- a/crates/nu-command/src/dataframe/series/masks/not.rs +++ b/crates/nu-command/src/dataframe/series/masks/not.rs @@ -17,7 +17,7 @@ impl Command for NotSeries { } fn usage(&self) -> &str { - "Inverts boolean mask" + "Inverts boolean mask." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/masks/set.rs b/crates/nu-command/src/dataframe/series/masks/set.rs index ef467971d588..87fe24293012 100644 --- a/crates/nu-command/src/dataframe/series/masks/set.rs +++ b/crates/nu-command/src/dataframe/series/masks/set.rs @@ -17,7 +17,7 @@ impl Command for SetSeries { } fn usage(&self) -> &str { - "Sets value where given mask is true" + "Sets value where given mask is true." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/n_null.rs b/crates/nu-command/src/dataframe/series/n_null.rs index d604bfd3fd5b..bd9b2c8cd8e9 100644 --- a/crates/nu-command/src/dataframe/series/n_null.rs +++ b/crates/nu-command/src/dataframe/series/n_null.rs @@ -15,7 +15,7 @@ impl Command for NNull { } fn usage(&self) -> &str { - "Counts null values" + "Counts null values." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/n_unique.rs b/crates/nu-command/src/dataframe/series/n_unique.rs index 1b9f2157dcd8..b80dac305aa6 100644 --- a/crates/nu-command/src/dataframe/series/n_unique.rs +++ b/crates/nu-command/src/dataframe/series/n_unique.rs @@ -14,7 +14,7 @@ impl Command for NUnique { } fn usage(&self) -> &str { - "Counts unique values" + "Counts unique values." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/rolling.rs b/crates/nu-command/src/dataframe/series/rolling.rs index f9c83336f2fb..d6fc5c5554b4 100644 --- a/crates/nu-command/src/dataframe/series/rolling.rs +++ b/crates/nu-command/src/dataframe/series/rolling.rs @@ -52,7 +52,7 @@ impl Command for Rolling { } fn usage(&self) -> &str { - "Rolling calculation for a series" + "Rolling calculation for a series." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/shift.rs b/crates/nu-command/src/dataframe/series/shift.rs index 82741d375b82..e04d607f9aee 100644 --- a/crates/nu-command/src/dataframe/series/shift.rs +++ b/crates/nu-command/src/dataframe/series/shift.rs @@ -18,7 +18,7 @@ impl Command for Shift { } fn usage(&self) -> &str { - "Shifts the values by a given period" + "Shifts the values by a given period." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/string/concatenate.rs b/crates/nu-command/src/dataframe/series/string/concatenate.rs index 9b7c3ecd3c28..4e12f867df2c 100644 --- a/crates/nu-command/src/dataframe/series/string/concatenate.rs +++ b/crates/nu-command/src/dataframe/series/string/concatenate.rs @@ -17,7 +17,7 @@ impl Command for Concatenate { } fn usage(&self) -> &str { - "Concatenates strings with other array" + "Concatenates strings with other array." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/string/contains.rs b/crates/nu-command/src/dataframe/series/string/contains.rs index 569c8d717064..772a9f13fffd 100644 --- a/crates/nu-command/src/dataframe/series/string/contains.rs +++ b/crates/nu-command/src/dataframe/series/string/contains.rs @@ -17,7 +17,7 @@ impl Command for Contains { } fn usage(&self) -> &str { - "Checks if a pattern is contained in a string" + "Checks if a pattern is contained in a string." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/string/replace.rs b/crates/nu-command/src/dataframe/series/string/replace.rs index 152cd8d01bad..0a6876123756 100644 --- a/crates/nu-command/src/dataframe/series/string/replace.rs +++ b/crates/nu-command/src/dataframe/series/string/replace.rs @@ -17,7 +17,7 @@ impl Command for Replace { } fn usage(&self) -> &str { - "Replace the leftmost (sub)string by a regex pattern" + "Replace the leftmost (sub)string by a regex pattern." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/string/replace_all.rs b/crates/nu-command/src/dataframe/series/string/replace_all.rs index 4bcaf54542ae..9e1125568ce4 100644 --- a/crates/nu-command/src/dataframe/series/string/replace_all.rs +++ b/crates/nu-command/src/dataframe/series/string/replace_all.rs @@ -17,7 +17,7 @@ impl Command for ReplaceAll { } fn usage(&self) -> &str { - "Replace all (sub)strings by a regex pattern" + "Replace all (sub)strings by a regex pattern." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/string/str_lengths.rs b/crates/nu-command/src/dataframe/series/string/str_lengths.rs index 2f2c65fee421..b90c48f3bb0b 100644 --- a/crates/nu-command/src/dataframe/series/string/str_lengths.rs +++ b/crates/nu-command/src/dataframe/series/string/str_lengths.rs @@ -16,7 +16,7 @@ impl Command for StrLengths { } fn usage(&self) -> &str { - "Get lengths of all strings" + "Get lengths of all strings." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/string/str_slice.rs b/crates/nu-command/src/dataframe/series/string/str_slice.rs index 272b86146965..8bfca0eed8e8 100644 --- a/crates/nu-command/src/dataframe/series/string/str_slice.rs +++ b/crates/nu-command/src/dataframe/series/string/str_slice.rs @@ -17,7 +17,7 @@ impl Command for StrSlice { } fn usage(&self) -> &str { - "Slices the string from the start position until the selected length" + "Slices the string from the start position until the selected length." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/string/strftime.rs b/crates/nu-command/src/dataframe/series/string/strftime.rs index ba4eb3a0bfa3..bf40cf727fd9 100644 --- a/crates/nu-command/src/dataframe/series/string/strftime.rs +++ b/crates/nu-command/src/dataframe/series/string/strftime.rs @@ -17,7 +17,7 @@ impl Command for StrFTime { } fn usage(&self) -> &str { - "Formats date based on string rule" + "Formats date based on string rule." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/string/to_lowercase.rs b/crates/nu-command/src/dataframe/series/string/to_lowercase.rs index e6a6fe324f4c..26d0931c0dd6 100644 --- a/crates/nu-command/src/dataframe/series/string/to_lowercase.rs +++ b/crates/nu-command/src/dataframe/series/string/to_lowercase.rs @@ -16,7 +16,7 @@ impl Command for ToLowerCase { } fn usage(&self) -> &str { - "Lowercase the strings in the column" + "Lowercase the strings in the column." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/string/to_uppercase.rs b/crates/nu-command/src/dataframe/series/string/to_uppercase.rs index 4375ca9869f6..13c7702f84e2 100644 --- a/crates/nu-command/src/dataframe/series/string/to_uppercase.rs +++ b/crates/nu-command/src/dataframe/series/string/to_uppercase.rs @@ -16,7 +16,7 @@ impl Command for ToUpperCase { } fn usage(&self) -> &str { - "Uppercase the strings in the column" + "Uppercase the strings in the column." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/dataframe/series/unique.rs b/crates/nu-command/src/dataframe/series/unique.rs index 1f8f48af1eff..b6794d9ab841 100644 --- a/crates/nu-command/src/dataframe/series/unique.rs +++ b/crates/nu-command/src/dataframe/series/unique.rs @@ -19,7 +19,7 @@ impl Command for Unique { } fn usage(&self) -> &str { - "Returns unique values from a dataframe" + "Returns unique values from a dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/series/value_counts.rs b/crates/nu-command/src/dataframe/series/value_counts.rs index f4c7eca995a2..6fcbe522b8a8 100644 --- a/crates/nu-command/src/dataframe/series/value_counts.rs +++ b/crates/nu-command/src/dataframe/series/value_counts.rs @@ -17,7 +17,7 @@ impl Command for ValueCount { } fn usage(&self) -> &str { - "Returns a dataframe with the counts for unique values in series" + "Returns a dataframe with the counts for unique values in series." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/date/date_.rs b/crates/nu-command/src/date/date_.rs index eb7bbebd958c..b875ac24e2c0 100644 --- a/crates/nu-command/src/date/date_.rs +++ b/crates/nu-command/src/date/date_.rs @@ -20,7 +20,7 @@ impl Command for Date { } fn usage(&self) -> &str { - "Date-related commands" + "Date-related commands." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/debug/inspect.rs b/crates/nu-command/src/debug/inspect.rs index d9ce0585f77f..bb7edcaf504f 100644 --- a/crates/nu-command/src/debug/inspect.rs +++ b/crates/nu-command/src/debug/inspect.rs @@ -15,7 +15,7 @@ impl Command for Inspect { } fn usage(&self) -> &str { - "Inspect pipeline results while running a pipeline" + "Inspect pipeline results while running a pipeline." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/debug/metadata.rs b/crates/nu-command/src/debug/metadata.rs index 9799c011798e..d4c8ff856760 100644 --- a/crates/nu-command/src/debug/metadata.rs +++ b/crates/nu-command/src/debug/metadata.rs @@ -15,7 +15,7 @@ impl Command for Metadata { } fn usage(&self) -> &str { - "Get the metadata for items in the stream" + "Get the metadata for items in the stream." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/debug/timeit.rs b/crates/nu-command/src/debug/timeit.rs index d9e003693aad..1430b2e63569 100644 --- a/crates/nu-command/src/debug/timeit.rs +++ b/crates/nu-command/src/debug/timeit.rs @@ -16,7 +16,7 @@ impl Command for TimeIt { } fn usage(&self) -> &str { - "Time the running time of a closure" + "Time the running time of a closure." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/debug/view.rs b/crates/nu-command/src/debug/view.rs index 387cf5482209..b92ec5d6d2c6 100644 --- a/crates/nu-command/src/debug/view.rs +++ b/crates/nu-command/src/debug/view.rs @@ -20,7 +20,7 @@ impl Command for View { } fn usage(&self) -> &str { - "Various commands for viewing debug information" + "Various commands for viewing debug information." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/debug/view_files.rs b/crates/nu-command/src/debug/view_files.rs index 5ccd2a4d5d02..9fb18a6663de 100644 --- a/crates/nu-command/src/debug/view_files.rs +++ b/crates/nu-command/src/debug/view_files.rs @@ -13,7 +13,7 @@ impl Command for ViewFiles { } fn usage(&self) -> &str { - "View the files registered in nushell's EngineState memory" + "View the files registered in nushell's EngineState memory." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/debug/view_source.rs b/crates/nu-command/src/debug/view_source.rs index b4e63d2582dc..d9684c107d58 100644 --- a/crates/nu-command/src/debug/view_source.rs +++ b/crates/nu-command/src/debug/view_source.rs @@ -16,7 +16,7 @@ impl Command for ViewSource { } fn usage(&self) -> &str { - "View a block, module, or a definition" + "View a block, module, or a definition." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/debug/view_span.rs b/crates/nu-command/src/debug/view_span.rs index 0423a90a6f4b..e0bc602de4c8 100644 --- a/crates/nu-command/src/debug/view_span.rs +++ b/crates/nu-command/src/debug/view_span.rs @@ -15,7 +15,7 @@ impl Command for ViewSpan { } fn usage(&self) -> &str { - "View the contents of a span" + "View the contents of a span." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/deprecated/export_old_alias.rs b/crates/nu-command/src/deprecated/export_old_alias.rs index 76bd70f2e35e..dc630d090d6d 100644 --- a/crates/nu-command/src/deprecated/export_old_alias.rs +++ b/crates/nu-command/src/deprecated/export_old_alias.rs @@ -11,7 +11,7 @@ impl Command for ExportOldAlias { } fn usage(&self) -> &str { - "Define an alias and export it from a module" + "Define an alias and export it from a module." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/deprecated/hash_base64.rs b/crates/nu-command/src/deprecated/hash_base64.rs index 3896e8ea18bd..1d5b23f93429 100644 --- a/crates/nu-command/src/deprecated/hash_base64.rs +++ b/crates/nu-command/src/deprecated/hash_base64.rs @@ -15,7 +15,7 @@ impl Command for HashBase64 { } fn usage(&self) -> &str { - "Deprecated command" + "Deprecated command." } fn run( diff --git a/crates/nu-command/src/deprecated/lpad.rs b/crates/nu-command/src/deprecated/lpad.rs index b2d5f8a0e4d8..fcc401f8ad68 100644 --- a/crates/nu-command/src/deprecated/lpad.rs +++ b/crates/nu-command/src/deprecated/lpad.rs @@ -16,7 +16,7 @@ impl Command for LPadDeprecated { } fn usage(&self) -> &str { - "Deprecated command" + "Deprecated command." } fn run( diff --git a/crates/nu-command/src/deprecated/math_eval.rs b/crates/nu-command/src/deprecated/math_eval.rs index e62567c6ec3c..2264a99c2142 100644 --- a/crates/nu-command/src/deprecated/math_eval.rs +++ b/crates/nu-command/src/deprecated/math_eval.rs @@ -21,7 +21,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Deprecated command" + "Deprecated command." } fn run( diff --git a/crates/nu-command/src/deprecated/old_alias.rs b/crates/nu-command/src/deprecated/old_alias.rs index 6848645f5363..0077e61ff3b2 100644 --- a/crates/nu-command/src/deprecated/old_alias.rs +++ b/crates/nu-command/src/deprecated/old_alias.rs @@ -13,7 +13,7 @@ impl Command for OldAlias { } fn usage(&self) -> &str { - "Alias a command (with optional flags) to a new name" + "Alias a command (with optional flags) to a new name." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/deprecated/rpad.rs b/crates/nu-command/src/deprecated/rpad.rs index 957b51d99071..890b358ffc04 100644 --- a/crates/nu-command/src/deprecated/rpad.rs +++ b/crates/nu-command/src/deprecated/rpad.rs @@ -16,7 +16,7 @@ impl Command for RPadDeprecated { } fn usage(&self) -> &str { - "Deprecated command" + "Deprecated command." } fn run( diff --git a/crates/nu-command/src/deprecated/str_datetime.rs b/crates/nu-command/src/deprecated/str_datetime.rs index 45cfb85f834e..33bca9fc927e 100644 --- a/crates/nu-command/src/deprecated/str_datetime.rs +++ b/crates/nu-command/src/deprecated/str_datetime.rs @@ -17,7 +17,7 @@ impl Command for StrDatetimeDeprecated { } fn usage(&self) -> &str { - "Deprecated command" + "Deprecated command." } fn run( diff --git a/crates/nu-command/src/deprecated/str_decimal.rs b/crates/nu-command/src/deprecated/str_decimal.rs index e1be3271660c..9163b86bd4b6 100644 --- a/crates/nu-command/src/deprecated/str_decimal.rs +++ b/crates/nu-command/src/deprecated/str_decimal.rs @@ -17,7 +17,7 @@ impl Command for StrDecimalDeprecated { } fn usage(&self) -> &str { - "Deprecated command" + "Deprecated command." } fn run( diff --git a/crates/nu-command/src/deprecated/str_find_replace.rs b/crates/nu-command/src/deprecated/str_find_replace.rs index c86bc065e9a5..093b56668cdf 100644 --- a/crates/nu-command/src/deprecated/str_find_replace.rs +++ b/crates/nu-command/src/deprecated/str_find_replace.rs @@ -17,7 +17,7 @@ impl Command for StrFindReplaceDeprecated { } fn usage(&self) -> &str { - "Deprecated command" + "Deprecated command." } fn run( diff --git a/crates/nu-command/src/deprecated/str_int.rs b/crates/nu-command/src/deprecated/str_int.rs index 853fa48652d1..be609778fbbc 100644 --- a/crates/nu-command/src/deprecated/str_int.rs +++ b/crates/nu-command/src/deprecated/str_int.rs @@ -17,7 +17,7 @@ impl Command for StrIntDeprecated { } fn usage(&self) -> &str { - "Deprecated command" + "Deprecated command." } fn run( diff --git a/crates/nu-command/src/env/config/config_.rs b/crates/nu-command/src/env/config/config_.rs index e9ea554f0dc3..18ae5c6c2ee8 100644 --- a/crates/nu-command/src/env/config/config_.rs +++ b/crates/nu-command/src/env/config/config_.rs @@ -20,7 +20,7 @@ impl Command for ConfigMeta { } fn usage(&self) -> &str { - "Edit nushell configuration files" + "Edit nushell configuration files." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/env/config/config_env.rs b/crates/nu-command/src/env/config/config_env.rs index aedf2e7b0b20..51e6e8624623 100644 --- a/crates/nu-command/src/env/config/config_env.rs +++ b/crates/nu-command/src/env/config/config_env.rs @@ -23,7 +23,7 @@ impl Command for ConfigEnv { } fn usage(&self) -> &str { - "Edit nu environment configurations" + "Edit nu environment configurations." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/env/config/config_nu.rs b/crates/nu-command/src/env/config/config_nu.rs index 62e70c375512..122aeaae24fd 100644 --- a/crates/nu-command/src/env/config/config_nu.rs +++ b/crates/nu-command/src/env/config/config_nu.rs @@ -23,7 +23,7 @@ impl Command for ConfigNu { } fn usage(&self) -> &str { - "Edit nu configurations" + "Edit nu configurations." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/env/config/config_reset.rs b/crates/nu-command/src/env/config/config_reset.rs index f8b9e925fc08..76a0ea8e51c0 100644 --- a/crates/nu-command/src/env/config/config_reset.rs +++ b/crates/nu-command/src/env/config/config_reset.rs @@ -26,7 +26,7 @@ impl Command for ConfigReset { } fn usage(&self) -> &str { - "Reset nushell environment configurations to default, and saves old config files in the config location as oldconfig.nu and oldenv.nu" + "Reset nushell environment configurations to default, and saves old config files in the config location as oldconfig.nu and oldenv.nu." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/env/env_command.rs b/crates/nu-command/src/env/env_command.rs index a2c1e26c4485..5235e3b3cae2 100644 --- a/crates/nu-command/src/env/env_command.rs +++ b/crates/nu-command/src/env/env_command.rs @@ -14,7 +14,7 @@ impl Command for Env { } fn usage(&self) -> &str { - "Display current environment variables" + "Display current environment variables." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/experimental/is_admin.rs b/crates/nu-command/src/experimental/is_admin.rs index 15b0d1f0f8d8..e9c404730042 100644 --- a/crates/nu-command/src/experimental/is_admin.rs +++ b/crates/nu-command/src/experimental/is_admin.rs @@ -14,7 +14,7 @@ impl Command for IsAdmin { } fn usage(&self) -> &str { - "Check if nushell is running with administrator or root privileges" + "Check if nushell is running with administrator or root privileges." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/filters/lines.rs b/crates/nu-command/src/filters/lines.rs index 302d9fc26816..d5c7cad6991a 100644 --- a/crates/nu-command/src/filters/lines.rs +++ b/crates/nu-command/src/filters/lines.rs @@ -18,7 +18,7 @@ impl Command for Lines { } fn usage(&self) -> &str { - "Converts input to lines" + "Converts input to lines." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/filters/move_.rs b/crates/nu-command/src/filters/move_.rs index 9d436e1cc114..73fa91dcdba7 100644 --- a/crates/nu-command/src/filters/move_.rs +++ b/crates/nu-command/src/filters/move_.rs @@ -21,7 +21,7 @@ impl Command for Move { } fn usage(&self) -> &str { - "Move columns before or after other columns" + "Move columns before or after other columns." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/filters/roll/roll_.rs b/crates/nu-command/src/filters/roll/roll_.rs index 093b5d67110d..b3e8cd0f4d28 100644 --- a/crates/nu-command/src/filters/roll/roll_.rs +++ b/crates/nu-command/src/filters/roll/roll_.rs @@ -22,7 +22,7 @@ impl Command for Roll { } fn usage(&self) -> &str { - "Rolling commands for tables" + "Rolling commands for tables." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/filters/roll/roll_down.rs b/crates/nu-command/src/filters/roll/roll_down.rs index ede1901993f9..feb6ecb13654 100644 --- a/crates/nu-command/src/filters/roll/roll_down.rs +++ b/crates/nu-command/src/filters/roll/roll_down.rs @@ -29,7 +29,7 @@ impl Command for RollDown { } fn usage(&self) -> &str { - "Roll table rows down" + "Roll table rows down." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/filters/roll/roll_left.rs b/crates/nu-command/src/filters/roll/roll_left.rs index 33c35b7f4782..c562825ced0d 100644 --- a/crates/nu-command/src/filters/roll/roll_left.rs +++ b/crates/nu-command/src/filters/roll/roll_left.rs @@ -41,7 +41,7 @@ impl Command for RollLeft { } fn usage(&self) -> &str { - "Roll record or table columns left" + "Roll record or table columns left." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/filters/roll/roll_right.rs b/crates/nu-command/src/filters/roll/roll_right.rs index ff9d1d308af5..9286c34ed120 100644 --- a/crates/nu-command/src/filters/roll/roll_right.rs +++ b/crates/nu-command/src/filters/roll/roll_right.rs @@ -41,7 +41,7 @@ impl Command for RollRight { } fn usage(&self) -> &str { - "Roll table columns right" + "Roll table columns right." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/filters/roll/roll_up.rs b/crates/nu-command/src/filters/roll/roll_up.rs index 70ddf60b9004..67243cb70b97 100644 --- a/crates/nu-command/src/filters/roll/roll_up.rs +++ b/crates/nu-command/src/filters/roll/roll_up.rs @@ -29,7 +29,7 @@ impl Command for RollUp { } fn usage(&self) -> &str { - "Roll table rows up" + "Roll table rows up." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/filters/zip.rs b/crates/nu-command/src/filters/zip.rs index e21feaeaa006..b90a187deeb6 100644 --- a/crates/nu-command/src/filters/zip.rs +++ b/crates/nu-command/src/filters/zip.rs @@ -15,7 +15,7 @@ impl Command for Zip { } fn usage(&self) -> &str { - "Combine a stream with the input" + "Combine a stream with the input." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/formats/from/command.rs b/crates/nu-command/src/formats/from/command.rs index ee02bd7cfd68..84a4718d1726 100644 --- a/crates/nu-command/src/formats/from/command.rs +++ b/crates/nu-command/src/formats/from/command.rs @@ -12,7 +12,7 @@ impl Command for From { } fn usage(&self) -> &str { - "Parse a string or binary data into structured data" + "Parse a string or binary data into structured data." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/formats/from/json.rs b/crates/nu-command/src/formats/from/json.rs index d068b6fb9b69..9e3392e7412c 100644 --- a/crates/nu-command/src/formats/from/json.rs +++ b/crates/nu-command/src/formats/from/json.rs @@ -14,7 +14,7 @@ impl Command for FromJson { } fn usage(&self) -> &str { - "Convert from json to structured data" + "Convert from json to structured data." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/formats/from/nuon.rs b/crates/nu-command/src/formats/from/nuon.rs index 40912ffa7f29..91a3128c5c3a 100644 --- a/crates/nu-command/src/formats/from/nuon.rs +++ b/crates/nu-command/src/formats/from/nuon.rs @@ -13,7 +13,7 @@ impl Command for FromNuon { } fn usage(&self) -> &str { - "Convert from nuon to structured data" + "Convert from nuon to structured data." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/formats/to/command.rs b/crates/nu-command/src/formats/to/command.rs index 9b942cd01df8..a4f21fde9540 100644 --- a/crates/nu-command/src/formats/to/command.rs +++ b/crates/nu-command/src/formats/to/command.rs @@ -12,7 +12,7 @@ impl Command for To { } fn usage(&self) -> &str { - "Translate structured data to a format" + "Translate structured data to a format." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/formats/to/csv.rs b/crates/nu-command/src/formats/to/csv.rs index 08659b658da1..64d27f366454 100644 --- a/crates/nu-command/src/formats/to/csv.rs +++ b/crates/nu-command/src/formats/to/csv.rs @@ -56,7 +56,7 @@ impl Command for ToCsv { } fn usage(&self) -> &str { - "Convert table into .csv text " + "Convert table into .csv text ." } fn run( diff --git a/crates/nu-command/src/formats/to/html.rs b/crates/nu-command/src/formats/to/html.rs index 1a8371b09464..1f129e949aa1 100644 --- a/crates/nu-command/src/formats/to/html.rs +++ b/crates/nu-command/src/formats/to/html.rs @@ -144,11 +144,11 @@ impl Command for ToHtml { } fn usage(&self) -> &str { - "Convert table into simple HTML" + "Convert table into simple HTML." } fn extra_usage(&self) -> &str { - "Screenshots of the themes can be browsed here: https://github.com/mbadolato/iTerm2-Color-Schemes" + "Screenshots of the themes can be browsed here: https://github.com/mbadolato/iTerm2-Color-Schemes." } fn run( diff --git a/crates/nu-command/src/formats/to/md.rs b/crates/nu-command/src/formats/to/md.rs index 90d187e91726..50ddeaf67466 100644 --- a/crates/nu-command/src/formats/to/md.rs +++ b/crates/nu-command/src/formats/to/md.rs @@ -32,7 +32,7 @@ impl Command for ToMd { } fn usage(&self) -> &str { - "Convert table into simple Markdown" + "Convert table into simple Markdown." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/formats/to/toml.rs b/crates/nu-command/src/formats/to/toml.rs index f3e2236fac71..ec47f20167ff 100644 --- a/crates/nu-command/src/formats/to/toml.rs +++ b/crates/nu-command/src/formats/to/toml.rs @@ -19,7 +19,7 @@ impl Command for ToToml { } fn usage(&self) -> &str { - "Convert record into .toml text" + "Convert record into .toml text." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/formats/to/tsv.rs b/crates/nu-command/src/formats/to/tsv.rs index edcb2ab7fc66..a424458a806a 100644 --- a/crates/nu-command/src/formats/to/tsv.rs +++ b/crates/nu-command/src/formats/to/tsv.rs @@ -28,7 +28,7 @@ impl Command for ToTsv { } fn usage(&self) -> &str { - "Convert table into .tsv text" + "Convert table into .tsv text." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/formats/to/xml.rs b/crates/nu-command/src/formats/to/xml.rs index 7b9669a53b73..9444f4500b6b 100644 --- a/crates/nu-command/src/formats/to/xml.rs +++ b/crates/nu-command/src/formats/to/xml.rs @@ -51,7 +51,7 @@ impl Command for ToXml { } fn usage(&self) -> &str { - "Convert table into .xml text" + "Convert table into .xml text." } fn run( diff --git a/crates/nu-command/src/formats/to/yaml.rs b/crates/nu-command/src/formats/to/yaml.rs index b83dadf8aed0..ec2e8fbe2abd 100644 --- a/crates/nu-command/src/formats/to/yaml.rs +++ b/crates/nu-command/src/formats/to/yaml.rs @@ -19,7 +19,7 @@ impl Command for ToYaml { } fn usage(&self) -> &str { - "Convert table into .yaml/.yml text" + "Convert table into .yaml/.yml text." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/generators/seq_char.rs b/crates/nu-command/src/generators/seq_char.rs index 1f33af3de4e1..8529008f2c4a 100644 --- a/crates/nu-command/src/generators/seq_char.rs +++ b/crates/nu-command/src/generators/seq_char.rs @@ -14,7 +14,7 @@ impl Command for SeqChar { } fn usage(&self) -> &str { - "Print a sequence of ASCII characters" + "Print a sequence of ASCII characters." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/generators/seq_date.rs b/crates/nu-command/src/generators/seq_date.rs index 7bbb319ba094..882edbde1ea1 100644 --- a/crates/nu-command/src/generators/seq_date.rs +++ b/crates/nu-command/src/generators/seq_date.rs @@ -17,7 +17,7 @@ impl Command for SeqDate { } fn usage(&self) -> &str { - "Print sequences of dates" + "Print sequences of dates." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/math/abs.rs b/crates/nu-command/src/math/abs.rs index 64dd860b62bc..abec41ea08cb 100644 --- a/crates/nu-command/src/math/abs.rs +++ b/crates/nu-command/src/math/abs.rs @@ -18,7 +18,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the absolute value of a number" + "Returns the absolute value of a number." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/avg.rs b/crates/nu-command/src/math/avg.rs index 8c38cdda8ec6..95cce92306a3 100644 --- a/crates/nu-command/src/math/avg.rs +++ b/crates/nu-command/src/math/avg.rs @@ -19,7 +19,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the average of a list of numbers" + "Returns the average of a list of numbers." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/ceil.rs b/crates/nu-command/src/math/ceil.rs index 3627827fadc8..862e1058013a 100644 --- a/crates/nu-command/src/math/ceil.rs +++ b/crates/nu-command/src/math/ceil.rs @@ -18,7 +18,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the ceil of a number (smallest integer greater than or equal to that number)" + "Returns the ceil of a number (smallest integer greater than or equal to that number)." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/floor.rs b/crates/nu-command/src/math/floor.rs index b93dbce0d92b..9fbeb3709f43 100644 --- a/crates/nu-command/src/math/floor.rs +++ b/crates/nu-command/src/math/floor.rs @@ -18,7 +18,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the floor of a number (largest integer less than or equal to that number)" + "Returns the floor of a number (largest integer less than or equal to that number)." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/ln.rs b/crates/nu-command/src/math/ln.rs index 3f154c14453b..15556cb316d5 100644 --- a/crates/nu-command/src/math/ln.rs +++ b/crates/nu-command/src/math/ln.rs @@ -18,7 +18,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the natural logarithm. Base: (math e)" + "Returns the natural logarithm. Base: (math e)." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/max.rs b/crates/nu-command/src/math/max.rs index 956d82719dc1..1d6e18358385 100644 --- a/crates/nu-command/src/math/max.rs +++ b/crates/nu-command/src/math/max.rs @@ -22,7 +22,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the maximum of a list of numbers, or of columns in a table" + "Returns the maximum of a list of numbers, or of columns in a table." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/median.rs b/crates/nu-command/src/math/median.rs index d79d335924ab..b0f6a2df0e4d 100644 --- a/crates/nu-command/src/math/median.rs +++ b/crates/nu-command/src/math/median.rs @@ -24,7 +24,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Computes the median of a list of numbers" + "Computes the median of a list of numbers." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/min.rs b/crates/nu-command/src/math/min.rs index e63e0b607e82..bfe10c6b31dc 100644 --- a/crates/nu-command/src/math/min.rs +++ b/crates/nu-command/src/math/min.rs @@ -22,7 +22,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Finds the minimum within a list of numbers or tables" + "Finds the minimum within a list of numbers or tables." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/mode.rs b/crates/nu-command/src/math/mode.rs index 7647d9f17ad7..9e0c787d5e23 100644 --- a/crates/nu-command/src/math/mode.rs +++ b/crates/nu-command/src/math/mode.rs @@ -48,7 +48,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the most frequent element(s) from a list of numbers or tables" + "Returns the most frequent element(s) from a list of numbers or tables." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/product.rs b/crates/nu-command/src/math/product.rs index 4d46acbecb7b..f64cf3648eec 100644 --- a/crates/nu-command/src/math/product.rs +++ b/crates/nu-command/src/math/product.rs @@ -19,7 +19,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the product of a list of numbers or the products of each column of a table" + "Returns the product of a list of numbers or the products of each column of a table." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/round.rs b/crates/nu-command/src/math/round.rs index 80b18b645600..7ee836123c8c 100644 --- a/crates/nu-command/src/math/round.rs +++ b/crates/nu-command/src/math/round.rs @@ -27,7 +27,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the input number rounded to the specified precision" + "Returns the input number rounded to the specified precision." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/sqrt.rs b/crates/nu-command/src/math/sqrt.rs index 489f45162fb8..b0427d7a704b 100644 --- a/crates/nu-command/src/math/sqrt.rs +++ b/crates/nu-command/src/math/sqrt.rs @@ -18,7 +18,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the square root of the input number" + "Returns the square root of the input number." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/stddev.rs b/crates/nu-command/src/math/stddev.rs index 99e211ab792d..5f085ddc4fd0 100644 --- a/crates/nu-command/src/math/stddev.rs +++ b/crates/nu-command/src/math/stddev.rs @@ -24,7 +24,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the standard deviation of a list of numbers, or of each column in a table" + "Returns the standard deviation of a list of numbers, or of each column in a table." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/sum.rs b/crates/nu-command/src/math/sum.rs index 8e22eb14da90..60d91a543fab 100644 --- a/crates/nu-command/src/math/sum.rs +++ b/crates/nu-command/src/math/sum.rs @@ -19,7 +19,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the sum of a list of numbers or of each column in a table" + "Returns the sum of a list of numbers or of each column in a table." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/math/variance.rs b/crates/nu-command/src/math/variance.rs index 64291f0d44a9..062ca36370d3 100644 --- a/crates/nu-command/src/math/variance.rs +++ b/crates/nu-command/src/math/variance.rs @@ -23,7 +23,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns the variance of a list of numbers or of each column in a table" + "Returns the variance of a list of numbers or of each column in a table." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/misc/history.rs b/crates/nu-command/src/misc/history.rs index cc2a06bca29e..dbcba501c5c2 100644 --- a/crates/nu-command/src/misc/history.rs +++ b/crates/nu-command/src/misc/history.rs @@ -18,7 +18,7 @@ impl Command for History { } fn usage(&self) -> &str { - "Get the command history" + "Get the command history." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/misc/history_session.rs b/crates/nu-command/src/misc/history_session.rs index fe4d372d294c..5d08b4e7e2be 100644 --- a/crates/nu-command/src/misc/history_session.rs +++ b/crates/nu-command/src/misc/history_session.rs @@ -13,7 +13,7 @@ impl Command for HistorySession { } fn usage(&self) -> &str { - "Get the command history session" + "Get the command history session." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/misc/tutor.rs b/crates/nu-command/src/misc/tutor.rs index 78ffad38e3aa..815537a62890 100644 --- a/crates/nu-command/src/misc/tutor.rs +++ b/crates/nu-command/src/misc/tutor.rs @@ -34,7 +34,7 @@ impl Command for Tutor { } fn usage(&self) -> &str { - "Run the tutorial. To begin, run: tutor" + "Run the tutorial. To begin, run: tutor." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/network/http/http_.rs b/crates/nu-command/src/network/http/http_.rs index 91e8129761b5..81493437faa1 100644 --- a/crates/nu-command/src/network/http/http_.rs +++ b/crates/nu-command/src/network/http/http_.rs @@ -20,7 +20,7 @@ impl Command for Http { } fn usage(&self) -> &str { - "Various commands for working with http methods" + "Various commands for working with http methods." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/network/port.rs b/crates/nu-command/src/network/port.rs index 02fd1fb08f4a..79db5bd9c26a 100644 --- a/crates/nu-command/src/network/port.rs +++ b/crates/nu-command/src/network/port.rs @@ -29,7 +29,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Get a free port from system" + "Get a free port from system." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/network/url/encode.rs b/crates/nu-command/src/network/url/encode.rs index 21448e0340af..0ae9513d1e4a 100644 --- a/crates/nu-command/src/network/url/encode.rs +++ b/crates/nu-command/src/network/url/encode.rs @@ -20,7 +20,7 @@ impl Command for SubCommand { .input_output_types(vec![(Type::String, Type::String)]) .vectorizes_over_list(true) .switch( - "all", + "all", "encode all non-alphanumeric chars including `/`, `.`, `:`", Some('a')) .rest( @@ -32,7 +32,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Converts a string to a percent encoded web safe string" + "Converts a string to a percent encoded web safe string." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/network/url/join.rs b/crates/nu-command/src/network/url/join.rs index f08e7c64e529..14afc556d7da 100644 --- a/crates/nu-command/src/network/url/join.rs +++ b/crates/nu-command/src/network/url/join.rs @@ -19,7 +19,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Converts a record to url" + "Converts a record to url." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/network/url/parse.rs b/crates/nu-command/src/network/url/parse.rs index d1820dba24d5..1676a6c6b1b0 100644 --- a/crates/nu-command/src/network/url/parse.rs +++ b/crates/nu-command/src/network/url/parse.rs @@ -27,7 +27,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Parses a url" + "Parses a url." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/network/url/url_.rs b/crates/nu-command/src/network/url/url_.rs index 0aa177b986d6..cc94b0746051 100644 --- a/crates/nu-command/src/network/url/url_.rs +++ b/crates/nu-command/src/network/url/url_.rs @@ -20,7 +20,7 @@ impl Command for Url { } fn usage(&self) -> &str { - "Various commands for working with URLs" + "Various commands for working with URLs." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/path/basename.rs b/crates/nu-command/src/path/basename.rs index 47ee054c07bc..f60feb988204 100644 --- a/crates/nu-command/src/path/basename.rs +++ b/crates/nu-command/src/path/basename.rs @@ -51,7 +51,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Get the final component of a path" + "Get the final component of a path." } fn run( diff --git a/crates/nu-command/src/path/dirname.rs b/crates/nu-command/src/path/dirname.rs index 88217fc22b78..a307177a86ec 100644 --- a/crates/nu-command/src/path/dirname.rs +++ b/crates/nu-command/src/path/dirname.rs @@ -54,7 +54,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Get the parent directory of a path" + "Get the parent directory of a path." } fn run( diff --git a/crates/nu-command/src/path/exists.rs b/crates/nu-command/src/path/exists.rs index f25f94ffab77..ddd8f378628f 100644 --- a/crates/nu-command/src/path/exists.rs +++ b/crates/nu-command/src/path/exists.rs @@ -41,7 +41,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Check whether a path exists" + "Check whether a path exists." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/path/expand.rs b/crates/nu-command/src/path/expand.rs index 0bd6b2b6cf57..3d5841a5bbb6 100644 --- a/crates/nu-command/src/path/expand.rs +++ b/crates/nu-command/src/path/expand.rs @@ -50,7 +50,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Try to expand a path to its absolute form" + "Try to expand a path to its absolute form." } fn run( diff --git a/crates/nu-command/src/path/type.rs b/crates/nu-command/src/path/type.rs index 5279b3d8ee5c..c1d1fa1a3218 100644 --- a/crates/nu-command/src/path/type.rs +++ b/crates/nu-command/src/path/type.rs @@ -39,7 +39,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Get the type of the object a path refers to (e.g., file, dir, symlink)" + "Get the type of the object a path refers to (e.g., file, dir, symlink)." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/platform/ansi/gradient.rs b/crates/nu-command/src/platform/ansi/gradient.rs index 696b625e3894..03a3a82ddbce 100644 --- a/crates/nu-command/src/platform/ansi/gradient.rs +++ b/crates/nu-command/src/platform/ansi/gradient.rs @@ -54,7 +54,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Add a color gradient (using ANSI color codes) to the given string" + "Add a color gradient (using ANSI color codes) to the given string." } fn run( diff --git a/crates/nu-command/src/platform/ansi/link.rs b/crates/nu-command/src/platform/ansi/link.rs index 7b22f895039e..fdf92c1a2c4d 100644 --- a/crates/nu-command/src/platform/ansi/link.rs +++ b/crates/nu-command/src/platform/ansi/link.rs @@ -45,7 +45,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Add a link (using OSC 8 escape sequence) to the given string" + "Add a link (using OSC 8 escape sequence) to the given string." } fn run( diff --git a/crates/nu-command/src/platform/ansi/strip.rs b/crates/nu-command/src/platform/ansi/strip.rs index d3846584ebcf..68b96cc2ef37 100644 --- a/crates/nu-command/src/platform/ansi/strip.rs +++ b/crates/nu-command/src/platform/ansi/strip.rs @@ -25,7 +25,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Strip ANSI escape sequences from a string" + "Strip ANSI escape sequences from a string." } fn run( diff --git a/crates/nu-command/src/platform/reedline_commands/keybindings.rs b/crates/nu-command/src/platform/reedline_commands/keybindings.rs index b3b796f73cf9..96b18798412d 100644 --- a/crates/nu-command/src/platform/reedline_commands/keybindings.rs +++ b/crates/nu-command/src/platform/reedline_commands/keybindings.rs @@ -20,7 +20,7 @@ impl Command for Keybindings { } fn usage(&self) -> &str { - "Keybindings related commands" + "Keybindings related commands." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/platform/reedline_commands/keybindings_default.rs b/crates/nu-command/src/platform/reedline_commands/keybindings_default.rs index 139a35d1fe32..3700fe30ced0 100644 --- a/crates/nu-command/src/platform/reedline_commands/keybindings_default.rs +++ b/crates/nu-command/src/platform/reedline_commands/keybindings_default.rs @@ -20,7 +20,7 @@ impl Command for KeybindingsDefault { } fn usage(&self) -> &str { - "List default keybindings" + "List default keybindings." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/platform/reedline_commands/keybindings_list.rs b/crates/nu-command/src/platform/reedline_commands/keybindings_list.rs index b1ce07f4335e..cf63409edc79 100644 --- a/crates/nu-command/src/platform/reedline_commands/keybindings_list.rs +++ b/crates/nu-command/src/platform/reedline_commands/keybindings_list.rs @@ -28,7 +28,7 @@ impl Command for KeybindingsList { } fn usage(&self) -> &str { - "List available options that can be used to create keybindings" + "List available options that can be used to create keybindings." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/platform/term_size.rs b/crates/nu-command/src/platform/term_size.rs index 0e2e5db31ab8..e2684c4751f8 100644 --- a/crates/nu-command/src/platform/term_size.rs +++ b/crates/nu-command/src/platform/term_size.rs @@ -14,7 +14,7 @@ impl Command for TermSize { } fn usage(&self) -> &str { - "Returns a record containing the number of columns (width) and rows (height) of the terminal" + "Returns a record containing the number of columns (width) and rows (height) of the terminal." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/random/bool.rs b/crates/nu-command/src/random/bool.rs index a79d5aa8f5f2..419ea59ef30b 100644 --- a/crates/nu-command/src/random/bool.rs +++ b/crates/nu-command/src/random/bool.rs @@ -28,7 +28,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Generate a random boolean value" + "Generate a random boolean value." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/random/chars.rs b/crates/nu-command/src/random/chars.rs index b16f83187393..23a29aafee0f 100644 --- a/crates/nu-command/src/random/chars.rs +++ b/crates/nu-command/src/random/chars.rs @@ -28,7 +28,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Generate random chars" + "Generate random chars." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/random/decimal.rs b/crates/nu-command/src/random/decimal.rs index fe366b3d19de..242f840bea62 100644 --- a/crates/nu-command/src/random/decimal.rs +++ b/crates/nu-command/src/random/decimal.rs @@ -24,7 +24,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Generate a random decimal within a range [min..max]" + "Generate a random decimal within a range [min..max]." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/random/dice.rs b/crates/nu-command/src/random/dice.rs index 895779650aca..f885e390fb25 100644 --- a/crates/nu-command/src/random/dice.rs +++ b/crates/nu-command/src/random/dice.rs @@ -34,7 +34,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Generate a random dice roll" + "Generate a random dice roll." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/random/integer.rs b/crates/nu-command/src/random/integer.rs index 1949e85d2bf9..a69608018282 100644 --- a/crates/nu-command/src/random/integer.rs +++ b/crates/nu-command/src/random/integer.rs @@ -24,7 +24,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Generate a random integer [min..max]" + "Generate a random integer [min..max]." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/random/uuid.rs b/crates/nu-command/src/random/uuid.rs index dee946a5a05a..4cff36dd9aa4 100644 --- a/crates/nu-command/src/random/uuid.rs +++ b/crates/nu-command/src/random/uuid.rs @@ -19,7 +19,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Generate a random uuid4 string" + "Generate a random uuid4 string." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/detect_columns.rs b/crates/nu-command/src/strings/detect_columns.rs index 5aa379ddfb7c..5752eaf084f5 100644 --- a/crates/nu-command/src/strings/detect_columns.rs +++ b/crates/nu-command/src/strings/detect_columns.rs @@ -33,7 +33,7 @@ impl Command for DetectColumns { } fn usage(&self) -> &str { - "Attempt to automatically split text into multiple columns" + "Attempt to automatically split text into multiple columns." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/encode_decode/decode_base64.rs b/crates/nu-command/src/strings/encode_decode/decode_base64.rs index 4dcaee9e24aa..8bf6804ffc64 100644 --- a/crates/nu-command/src/strings/encode_decode/decode_base64.rs +++ b/crates/nu-command/src/strings/encode_decode/decode_base64.rs @@ -40,7 +40,7 @@ impl Command for DecodeBase64 { } fn usage(&self) -> &str { - "Base64 decode a value" + "Base64 decode a value." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/strings/encode_decode/encode_base64.rs b/crates/nu-command/src/strings/encode_decode/encode_base64.rs index 4782afa7fb81..65e390aa58a0 100644 --- a/crates/nu-command/src/strings/encode_decode/encode_base64.rs +++ b/crates/nu-command/src/strings/encode_decode/encode_base64.rs @@ -36,7 +36,7 @@ impl Command for EncodeBase64 { } fn usage(&self) -> &str { - "Encode a string or binary value using Base64" + "Encode a string or binary value using Base64." } fn examples(&self) -> Vec { diff --git a/crates/nu-command/src/strings/format/filesize.rs b/crates/nu-command/src/strings/format/filesize.rs index a8ddd2264bce..2c38bdebca2a 100644 --- a/crates/nu-command/src/strings/format/filesize.rs +++ b/crates/nu-command/src/strings/format/filesize.rs @@ -43,7 +43,7 @@ impl Command for FileSize { } fn usage(&self) -> &str { - "Converts a column of filesizes to some specified format" + "Converts a column of filesizes to some specified format." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/split/chars.rs b/crates/nu-command/src/strings/split/chars.rs index bceff10cad18..7d8f05d15afc 100644 --- a/crates/nu-command/src/strings/split/chars.rs +++ b/crates/nu-command/src/strings/split/chars.rs @@ -28,7 +28,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Split a string into a list of characters" + "Split a string into a list of characters." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/split/column.rs b/crates/nu-command/src/strings/split/column.rs index ab45d66c80cc..95a7a69a531c 100644 --- a/crates/nu-command/src/strings/split/column.rs +++ b/crates/nu-command/src/strings/split/column.rs @@ -39,7 +39,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Split a string into multiple columns using a separator" + "Split a string into multiple columns using a separator." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/split/list.rs b/crates/nu-command/src/strings/split/list.rs index 80fd5ca0209b..d8aec8ecf767 100644 --- a/crates/nu-command/src/strings/split/list.rs +++ b/crates/nu-command/src/strings/split/list.rs @@ -29,7 +29,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Split a list into multiple lists using a separator" + "Split a list into multiple lists using a separator." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/split/row.rs b/crates/nu-command/src/strings/split/row.rs index 61fc9fae1e57..1d700c82c665 100644 --- a/crates/nu-command/src/strings/split/row.rs +++ b/crates/nu-command/src/strings/split/row.rs @@ -33,7 +33,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Split a string into multiple rows using a separator" + "Split a string into multiple rows using a separator." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/split/words.rs b/crates/nu-command/src/strings/split/words.rs index 58b9d8684b36..24734e133cf6 100644 --- a/crates/nu-command/src/strings/split/words.rs +++ b/crates/nu-command/src/strings/split/words.rs @@ -55,7 +55,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Split a string's words into separate rows" + "Split a string's words into separate rows." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/case/camel_case.rs b/crates/nu-command/src/strings/str_/case/camel_case.rs index d3ed041a9569..051599add59f 100644 --- a/crates/nu-command/src/strings/str_/case/camel_case.rs +++ b/crates/nu-command/src/strings/str_/case/camel_case.rs @@ -28,7 +28,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert a string to camelCase" + "Convert a string to camelCase." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/case/capitalize.rs b/crates/nu-command/src/strings/str_/case/capitalize.rs index 2f7c4205321c..d1dd23d2fb45 100644 --- a/crates/nu-command/src/strings/str_/case/capitalize.rs +++ b/crates/nu-command/src/strings/str_/case/capitalize.rs @@ -26,7 +26,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Capitalize first letter of text" + "Capitalize first letter of text." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/case/downcase.rs b/crates/nu-command/src/strings/str_/case/downcase.rs index 9150b40d16a9..aed85cc2c94d 100644 --- a/crates/nu-command/src/strings/str_/case/downcase.rs +++ b/crates/nu-command/src/strings/str_/case/downcase.rs @@ -26,7 +26,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Make text lowercase" + "Make text lowercase." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/case/kebab_case.rs b/crates/nu-command/src/strings/str_/case/kebab_case.rs index 9b215ecfde1a..44c55d124517 100644 --- a/crates/nu-command/src/strings/str_/case/kebab_case.rs +++ b/crates/nu-command/src/strings/str_/case/kebab_case.rs @@ -28,7 +28,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert a string to kebab-case" + "Convert a string to kebab-case." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/case/pascal_case.rs b/crates/nu-command/src/strings/str_/case/pascal_case.rs index 49da88d02d92..757aab1883f8 100644 --- a/crates/nu-command/src/strings/str_/case/pascal_case.rs +++ b/crates/nu-command/src/strings/str_/case/pascal_case.rs @@ -28,7 +28,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert a string to PascalCase" + "Convert a string to PascalCase." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/case/screaming_snake_case.rs b/crates/nu-command/src/strings/str_/case/screaming_snake_case.rs index 6489da39025f..4e4d6f677e76 100644 --- a/crates/nu-command/src/strings/str_/case/screaming_snake_case.rs +++ b/crates/nu-command/src/strings/str_/case/screaming_snake_case.rs @@ -27,7 +27,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert a string to SCREAMING_SNAKE_CASE" + "Convert a string to SCREAMING_SNAKE_CASE." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/case/snake_case.rs b/crates/nu-command/src/strings/str_/case/snake_case.rs index 61133d395ad6..137908421ea7 100644 --- a/crates/nu-command/src/strings/str_/case/snake_case.rs +++ b/crates/nu-command/src/strings/str_/case/snake_case.rs @@ -27,7 +27,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert a string to snake_case" + "Convert a string to snake_case." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/case/str_.rs b/crates/nu-command/src/strings/str_/case/str_.rs index 6f86c5c644b8..6cfd59b71574 100644 --- a/crates/nu-command/src/strings/str_/case/str_.rs +++ b/crates/nu-command/src/strings/str_/case/str_.rs @@ -20,7 +20,7 @@ impl Command for Str { } fn usage(&self) -> &str { - "Various commands for working with string data" + "Various commands for working with string data." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/strings/str_/case/title_case.rs b/crates/nu-command/src/strings/str_/case/title_case.rs index 6c42d03c2e4c..1690c2fa3c21 100644 --- a/crates/nu-command/src/strings/str_/case/title_case.rs +++ b/crates/nu-command/src/strings/str_/case/title_case.rs @@ -28,7 +28,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Convert a string to Title Case" + "Convert a string to Title Case." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/case/upcase.rs b/crates/nu-command/src/strings/str_/case/upcase.rs index 61f51b9dc92e..d2204aea722b 100644 --- a/crates/nu-command/src/strings/str_/case/upcase.rs +++ b/crates/nu-command/src/strings/str_/case/upcase.rs @@ -24,7 +24,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Make text uppercase" + "Make text uppercase." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/collect.rs b/crates/nu-command/src/strings/str_/collect.rs index ec217c59a286..2ebf1efcfa9c 100644 --- a/crates/nu-command/src/strings/str_/collect.rs +++ b/crates/nu-command/src/strings/str_/collect.rs @@ -26,7 +26,7 @@ impl Command for StrCollect { } fn usage(&self) -> &str { - "Deprecated command" + "Deprecated command." } fn run( diff --git a/crates/nu-command/src/strings/str_/contains.rs b/crates/nu-command/src/strings/str_/contains.rs index f1df1b126af2..95a5f24a27ed 100644 --- a/crates/nu-command/src/strings/str_/contains.rs +++ b/crates/nu-command/src/strings/str_/contains.rs @@ -43,7 +43,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Checks if string input contains a substring" + "Checks if string input contains a substring." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/distance.rs b/crates/nu-command/src/strings/str_/distance.rs index 1b5d4daf7d69..ff5c62c7066a 100644 --- a/crates/nu-command/src/strings/str_/distance.rs +++ b/crates/nu-command/src/strings/str_/distance.rs @@ -43,7 +43,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Compare two strings and return the edit distance/Levenshtein distance" + "Compare two strings and return the edit distance/Levenshtein distance." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/ends_with.rs b/crates/nu-command/src/strings/str_/ends_with.rs index 1edaccb31adc..de9f990aad07 100644 --- a/crates/nu-command/src/strings/str_/ends_with.rs +++ b/crates/nu-command/src/strings/str_/ends_with.rs @@ -41,7 +41,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Check if an input ends with a string" + "Check if an input ends with a string." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/index_of.rs b/crates/nu-command/src/strings/str_/index_of.rs index c08a45c93bbc..b9bc0bf33505 100644 --- a/crates/nu-command/src/strings/str_/index_of.rs +++ b/crates/nu-command/src/strings/str_/index_of.rs @@ -65,7 +65,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Returns start index of first occurrence of string in input, or -1 if no match" + "Returns start index of first occurrence of string in input, or -1 if no match." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/join.rs b/crates/nu-command/src/strings/str_/join.rs index ea8fe7f813fa..21f79ed2beae 100644 --- a/crates/nu-command/src/strings/str_/join.rs +++ b/crates/nu-command/src/strings/str_/join.rs @@ -26,7 +26,7 @@ impl Command for StrJoin { } fn usage(&self) -> &str { - "Concatenate multiple strings into a single string, with an optional separator between each" + "Concatenate multiple strings into a single string, with an optional separator between each." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/length.rs b/crates/nu-command/src/strings/str_/length.rs index f5518ba2d53a..79e6deb1283c 100644 --- a/crates/nu-command/src/strings/str_/length.rs +++ b/crates/nu-command/src/strings/str_/length.rs @@ -50,7 +50,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Output the length of any strings in the pipeline" + "Output the length of any strings in the pipeline." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/replace.rs b/crates/nu-command/src/strings/str_/replace.rs index ed131f48ebcc..bb2f9660389a 100644 --- a/crates/nu-command/src/strings/str_/replace.rs +++ b/crates/nu-command/src/strings/str_/replace.rs @@ -57,7 +57,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Find and replace text" + "Find and replace text." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/reverse.rs b/crates/nu-command/src/strings/str_/reverse.rs index f7db72989b79..ae847ac4a155 100644 --- a/crates/nu-command/src/strings/str_/reverse.rs +++ b/crates/nu-command/src/strings/str_/reverse.rs @@ -27,7 +27,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Reverse every string in the pipeline" + "Reverse every string in the pipeline." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/starts_with.rs b/crates/nu-command/src/strings/str_/starts_with.rs index bc43923d7835..325eebad82a5 100644 --- a/crates/nu-command/src/strings/str_/starts_with.rs +++ b/crates/nu-command/src/strings/str_/starts_with.rs @@ -43,7 +43,7 @@ impl Command for SubCommand { } fn usage(&self) -> &str { - "Check if an input starts with a string" + "Check if an input starts with a string." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/strings/str_/trim/trim_.rs b/crates/nu-command/src/strings/str_/trim/trim_.rs index 627056fb3be7..148520dada24 100644 --- a/crates/nu-command/src/strings/str_/trim/trim_.rs +++ b/crates/nu-command/src/strings/str_/trim/trim_.rs @@ -60,7 +60,7 @@ impl Command for SubCommand { ) } fn usage(&self) -> &str { - "Trim whitespace or specific character" + "Trim whitespace or specific character." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/system/complete.rs b/crates/nu-command/src/system/complete.rs index 511f352a5718..2f1f61a309ab 100644 --- a/crates/nu-command/src/system/complete.rs +++ b/crates/nu-command/src/system/complete.rs @@ -21,7 +21,7 @@ impl Command for Complete { } fn usage(&self) -> &str { - "Capture the outputs and exit code from an external piped in command in a nushell table" + "Capture the outputs and exit code from an external piped in command in a nushell table." } fn extra_usage(&self) -> &str { diff --git a/crates/nu-command/src/system/nu_check.rs b/crates/nu-command/src/system/nu_check.rs index 8399c7ee81b4..37f48eaed9c8 100644 --- a/crates/nu-command/src/system/nu_check.rs +++ b/crates/nu-command/src/system/nu_check.rs @@ -28,7 +28,7 @@ impl Command for NuCheck { } fn usage(&self) -> &str { - "Validate and parse input content" + "Validate and parse input content." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-command/src/system/run_external.rs b/crates/nu-command/src/system/run_external.rs index a065ebe68c35..c941843ba817 100644 --- a/crates/nu-command/src/system/run_external.rs +++ b/crates/nu-command/src/system/run_external.rs @@ -32,7 +32,7 @@ impl Command for External { } fn usage(&self) -> &str { - "Runs external command" + "Runs external command." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/viewers/explore.rs b/crates/nu-command/src/viewers/explore.rs index ad7138b916b2..22ecd187d31d 100644 --- a/crates/nu-command/src/viewers/explore.rs +++ b/crates/nu-command/src/viewers/explore.rs @@ -23,7 +23,7 @@ impl Command for Explore { } fn usage(&self) -> &str { - "Explore acts as a table pager, just like `less` does for text" + "Explore acts as a table pager, just like `less` does for text." } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/viewers/table.rs b/crates/nu-command/src/viewers/table.rs index f8acbee44d1b..80c71765d530 100644 --- a/crates/nu-command/src/viewers/table.rs +++ b/crates/nu-command/src/viewers/table.rs @@ -48,7 +48,7 @@ impl Command for Table { } fn extra_usage(&self) -> &str { - "If the table contains a column called 'index', this column is used as the table index instead of the usual continuous index" + "If the table contains a column called 'index', this column is used as the table index instead of the usual continuous index." } fn search_terms(&self) -> Vec<&str> { diff --git a/crates/nu-parser/tests/test_parser.rs b/crates/nu-parser/tests/test_parser.rs index 7140bb838383..d9758b80426b 100644 --- a/crates/nu-parser/tests/test_parser.rs +++ b/crates/nu-parser/tests/test_parser.rs @@ -1201,7 +1201,7 @@ mod input_types { } fn usage(&self) -> &str { - "Mock ls command" + "Mock ls command." } fn signature(&self) -> nu_protocol::Signature { @@ -1228,7 +1228,7 @@ mod input_types { } fn usage(&self) -> &str { - "Mock group-by command" + "Mock group-by command." } fn signature(&self) -> nu_protocol::Signature { @@ -1257,7 +1257,7 @@ mod input_types { } fn usage(&self) -> &str { - "Mock converter command" + "Mock converter command." } fn signature(&self) -> nu_protocol::Signature { @@ -1287,7 +1287,7 @@ mod input_types { } fn usage(&self) -> &str { - "Mock custom group-by command" + "Mock custom group-by command." } fn signature(&self) -> nu_protocol::Signature { @@ -1319,7 +1319,7 @@ mod input_types { } fn usage(&self) -> &str { - "Mock custom agg command" + "Mock custom agg command." } fn signature(&self) -> nu_protocol::Signature { @@ -1349,7 +1349,7 @@ mod input_types { } fn usage(&self) -> &str { - "Mock custom min command" + "Mock custom min command." } fn signature(&self) -> nu_protocol::Signature { @@ -1376,7 +1376,7 @@ mod input_types { } fn usage(&self) -> &str { - "Mock custom with-column command" + "Mock custom with-column command." } fn signature(&self) -> nu_protocol::Signature { @@ -1407,7 +1407,7 @@ mod input_types { } fn usage(&self) -> &str { - "Mock custom collect command" + "Mock custom collect command." } fn signature(&self) -> nu_protocol::Signature { @@ -1437,7 +1437,7 @@ mod input_types { } fn usage(&self) -> &str { - "Mock if command" + "Mock if command." } fn signature(&self) -> nu_protocol::Signature {