From 9cd6b509ddde3b213fa617febf0ee0c406700ff2 Mon Sep 17 00:00:00 2001 From: hustcer Date: Sat, 22 Nov 2025 19:22:38 +0800 Subject: [PATCH 1/5] Refresh Nu command docs for v0.109.0 --- commands/docs/alias.md | 2 +- commands/docs/all.md | 2 +- commands/docs/ansi.md | 2 +- commands/docs/ansi_gradient.md | 2 +- commands/docs/ansi_link.md | 2 +- commands/docs/ansi_strip.md | 22 ++- commands/docs/any.md | 2 +- commands/docs/append.md | 2 +- commands/docs/ast.md | 2 +- commands/docs/attr.md | 2 +- commands/docs/attr_category.md | 2 +- commands/docs/attr_complete.md | 2 +- commands/docs/attr_complete_external.md | 2 +- commands/docs/attr_deprecated.md | 2 +- commands/docs/attr_example.md | 2 +- commands/docs/attr_search-terms.md | 2 +- commands/docs/banner.md | 2 +- commands/docs/bits.md | 2 +- commands/docs/bits_and.md | 2 +- commands/docs/bits_not.md | 2 +- commands/docs/bits_or.md | 2 +- commands/docs/bits_rol.md | 2 +- commands/docs/bits_ror.md | 2 +- commands/docs/bits_shl.md | 2 +- commands/docs/bits_shr.md | 2 +- commands/docs/bits_xor.md | 2 +- commands/docs/break.md | 2 +- commands/docs/bytes.md | 2 +- commands/docs/bytes_add.md | 2 +- commands/docs/bytes_at.md | 2 +- commands/docs/bytes_build.md | 2 +- commands/docs/bytes_collect.md | 2 +- commands/docs/bytes_ends-with.md | 2 +- commands/docs/bytes_index-of.md | 2 +- commands/docs/bytes_length.md | 2 +- commands/docs/bytes_remove.md | 2 +- commands/docs/bytes_replace.md | 2 +- commands/docs/bytes_reverse.md | 2 +- commands/docs/bytes_split.md | 2 +- commands/docs/bytes_starts-with.md | 2 +- commands/docs/cal.md | 2 +- commands/docs/cd.md | 2 +- commands/docs/char.md | 2 +- commands/docs/chunk-by.md | 2 +- commands/docs/chunks.md | 2 +- commands/docs/clear.md | 2 +- commands/docs/collect.md | 2 +- commands/docs/columns.md | 2 +- commands/docs/commandline.md | 2 +- commands/docs/commandline_edit.md | 2 +- commands/docs/commandline_get-cursor.md | 2 +- commands/docs/commandline_set-cursor.md | 2 +- commands/docs/compact.md | 2 +- commands/docs/complete.md | 2 +- commands/docs/config.md | 2 +- commands/docs/config_env.md | 2 +- commands/docs/config_flatten.md | 2 +- commands/docs/config_nu.md | 2 +- commands/docs/config_reset.md | 2 +- commands/docs/config_use-colors.md | 2 +- commands/docs/const.md | 2 +- commands/docs/continue.md | 2 +- commands/docs/cp.md | 2 +- commands/docs/date.md | 2 +- commands/docs/date_format.md | 2 +- commands/docs/date_from-human.md | 2 +- commands/docs/date_humanize.md | 2 +- commands/docs/date_list-timezone.md | 2 +- commands/docs/date_now.md | 2 +- commands/docs/date_to-timezone.md | 2 +- commands/docs/debug.md | 2 +- commands/docs/debug_env.md | 2 +- commands/docs/debug_experimental-options.md | 2 +- commands/docs/debug_info.md | 2 +- commands/docs/debug_profile.md | 2 +- commands/docs/decode.md | 2 +- commands/docs/decode_base32.md | 2 +- commands/docs/decode_base32hex.md | 2 +- commands/docs/decode_base64.md | 2 +- commands/docs/decode_hex.md | 2 +- commands/docs/def.md | 2 +- commands/docs/default.md | 2 +- commands/docs/describe.md | 170 ++++++++++---------- commands/docs/detect.md | 2 +- commands/docs/detect_columns.md | 2 +- commands/docs/detect_type.md | 2 +- commands/docs/do.md | 2 +- commands/docs/drop.md | 2 +- commands/docs/drop_column.md | 2 +- commands/docs/drop_nth.md | 2 +- commands/docs/du.md | 2 +- commands/docs/each.md | 2 +- commands/docs/each_while.md | 2 +- commands/docs/echo.md | 2 +- commands/docs/encode.md | 2 +- commands/docs/encode_base32.md | 2 +- commands/docs/encode_base32hex.md | 2 +- commands/docs/encode_base64.md | 2 +- commands/docs/encode_hex.md | 2 +- commands/docs/enumerate.md | 2 +- commands/docs/error.md | 2 +- commands/docs/error_make.md | 62 ++++--- commands/docs/every.md | 2 +- commands/docs/exec.md | 2 +- commands/docs/exit.md | 2 +- commands/docs/explain.md | 2 +- commands/docs/explore.md | 10 +- commands/docs/explore_regex.md | 45 ++++++ commands/docs/export-env.md | 2 +- commands/docs/export.md | 2 +- commands/docs/export_alias.md | 2 +- commands/docs/export_const.md | 2 +- commands/docs/export_def.md | 2 +- commands/docs/export_extern.md | 2 +- commands/docs/export_module.md | 2 +- commands/docs/export_use.md | 2 +- commands/docs/extern.md | 2 +- commands/docs/fill.md | 2 +- commands/docs/filter.md | 2 +- commands/docs/find.md | 19 ++- commands/docs/first.md | 2 +- commands/docs/flatten.md | 2 +- commands/docs/for.md | 2 +- commands/docs/format.md | 2 +- commands/docs/format_bits.md | 2 +- commands/docs/format_date.md | 2 +- commands/docs/format_duration.md | 2 +- commands/docs/format_filesize.md | 2 +- commands/docs/format_number.md | 2 +- commands/docs/format_pattern.md | 8 +- commands/docs/from.md | 2 +- commands/docs/from_csv.md | 2 +- commands/docs/from_eml.md | 9 +- commands/docs/from_ics.md | 24 ++- commands/docs/from_ini.md | 9 +- commands/docs/from_json.md | 2 +- commands/docs/from_msgpack.md | 2 +- commands/docs/from_msgpackz.md | 2 +- commands/docs/from_nuon.md | 2 +- commands/docs/from_ods.md | 2 +- commands/docs/from_plist.md | 9 +- commands/docs/from_ssv.md | 2 +- commands/docs/from_toml.md | 2 +- commands/docs/from_tsv.md | 2 +- commands/docs/from_url.md | 2 +- commands/docs/from_vcf.md | 9 +- commands/docs/from_xlsx.md | 2 +- commands/docs/from_xml.md | 28 ++-- commands/docs/from_yaml.md | 2 +- commands/docs/from_yml.md | 2 +- commands/docs/generate.md | 2 +- commands/docs/get.md | 2 +- commands/docs/glob.md | 2 +- commands/docs/grid.md | 2 +- commands/docs/group-by.md | 26 ++- commands/docs/gstat.md | 9 +- commands/docs/hash.md | 2 +- commands/docs/hash_md5.md | 2 +- commands/docs/hash_sha256.md | 2 +- commands/docs/headers.md | 2 +- commands/docs/help.md | 2 +- commands/docs/help_aliases.md | 2 +- commands/docs/help_commands.md | 2 +- commands/docs/help_escapes.md | 2 +- commands/docs/help_externs.md | 2 +- commands/docs/help_modules.md | 2 +- commands/docs/help_operators.md | 2 +- commands/docs/help_pipe-and-redirect.md | 2 +- commands/docs/hide-env.md | 2 +- commands/docs/hide.md | 2 +- commands/docs/histogram.md | 15 +- commands/docs/history.md | 2 +- commands/docs/history_import.md | 2 +- commands/docs/history_session.md | 2 +- commands/docs/http.md | 2 +- commands/docs/http_delete.md | 3 +- commands/docs/http_get.md | 9 +- commands/docs/http_head.md | 3 +- commands/docs/http_options.md | 3 +- commands/docs/http_patch.md | 3 +- commands/docs/http_post.md | 3 +- commands/docs/http_put.md | 3 +- commands/docs/if.md | 2 +- commands/docs/ignore.md | 2 +- commands/docs/inc.md | 9 +- commands/docs/input.md | 2 +- commands/docs/input_list.md | 2 +- commands/docs/input_listen.md | 2 +- commands/docs/insert.md | 2 +- commands/docs/inspect.md | 2 +- commands/docs/interleave.md | 2 +- commands/docs/into.md | 2 +- commands/docs/into_binary.md | 2 +- commands/docs/into_bool.md | 2 +- commands/docs/into_cell-path.md | 2 +- commands/docs/into_datetime.md | 6 +- commands/docs/into_duration.md | 2 +- commands/docs/into_filesize.md | 2 +- commands/docs/into_float.md | 2 +- commands/docs/into_glob.md | 2 +- commands/docs/into_int.md | 2 +- commands/docs/into_record.md | 2 +- commands/docs/into_sqlite.md | 2 +- commands/docs/into_string.md | 2 +- commands/docs/into_value.md | 2 +- commands/docs/is-admin.md | 2 +- commands/docs/is-empty.md | 2 +- commands/docs/is-not-empty.md | 2 +- commands/docs/is-terminal.md | 2 +- commands/docs/items.md | 4 +- commands/docs/job.md | 2 +- commands/docs/job_flush.md | 2 +- commands/docs/job_id.md | 2 +- commands/docs/job_kill.md | 2 +- commands/docs/job_list.md | 2 +- commands/docs/job_recv.md | 2 +- commands/docs/job_send.md | 2 +- commands/docs/job_spawn.md | 2 +- commands/docs/job_tag.md | 2 +- commands/docs/job_unfreeze.md | 2 +- commands/docs/join.md | 2 +- commands/docs/keybindings.md | 2 +- commands/docs/keybindings_default.md | 2 +- commands/docs/keybindings_list.md | 2 +- commands/docs/keybindings_listen.md | 2 +- commands/docs/kill.md | 2 +- commands/docs/last.md | 2 +- commands/docs/length.md | 2 +- commands/docs/let-env.md | 2 +- commands/docs/let.md | 2 +- commands/docs/lines.md | 2 +- commands/docs/load-env.md | 2 +- commands/docs/loop.md | 2 +- commands/docs/ls.md | 2 +- commands/docs/match.md | 2 +- commands/docs/math.md | 2 +- commands/docs/math_abs.md | 2 +- commands/docs/math_arccos.md | 2 +- commands/docs/math_arccosh.md | 2 +- commands/docs/math_arcsin.md | 2 +- commands/docs/math_arcsinh.md | 2 +- commands/docs/math_arctan.md | 2 +- commands/docs/math_arctanh.md | 2 +- commands/docs/math_avg.md | 2 +- commands/docs/math_ceil.md | 2 +- commands/docs/math_cos.md | 2 +- commands/docs/math_cosh.md | 2 +- commands/docs/math_exp.md | 2 +- commands/docs/math_floor.md | 2 +- commands/docs/math_ln.md | 2 +- commands/docs/math_log.md | 2 +- commands/docs/math_max.md | 2 +- commands/docs/math_median.md | 2 +- commands/docs/math_min.md | 2 +- commands/docs/math_mode.md | 2 +- commands/docs/math_product.md | 2 +- commands/docs/math_round.md | 2 +- commands/docs/math_sin.md | 2 +- commands/docs/math_sinh.md | 2 +- commands/docs/math_sqrt.md | 2 +- commands/docs/math_stddev.md | 2 +- commands/docs/math_sum.md | 2 +- commands/docs/math_tan.md | 2 +- commands/docs/math_tanh.md | 2 +- commands/docs/math_variance.md | 2 +- commands/docs/merge.md | 2 +- commands/docs/merge_deep.md | 2 +- commands/docs/metadata.md | 2 +- commands/docs/metadata_access.md | 2 +- commands/docs/metadata_set.md | 14 +- commands/docs/mkdir.md | 2 +- commands/docs/mktemp.md | 3 +- commands/docs/module.md | 2 +- commands/docs/move.md | 2 +- commands/docs/mut.md | 2 +- commands/docs/mv.md | 2 +- commands/docs/nu-check.md | 2 +- commands/docs/nu-highlight.md | 2 +- commands/docs/open.md | 2 +- commands/docs/overlay.md | 2 +- commands/docs/overlay_hide.md | 2 +- commands/docs/overlay_list.md | 2 +- commands/docs/overlay_new.md | 2 +- commands/docs/overlay_use.md | 2 +- commands/docs/panic.md | 2 +- commands/docs/par-each.md | 2 +- commands/docs/parse.md | 2 +- commands/docs/path.md | 2 +- commands/docs/path_basename.md | 2 +- commands/docs/path_dirname.md | 2 +- commands/docs/path_exists.md | 2 +- commands/docs/path_expand.md | 2 +- commands/docs/path_join.md | 2 +- commands/docs/path_parse.md | 2 +- commands/docs/path_relative-to.md | 2 +- commands/docs/path_self.md | 2 +- commands/docs/path_split.md | 2 +- commands/docs/path_type.md | 2 +- commands/docs/plugin.md | 2 +- commands/docs/plugin_add.md | 2 +- commands/docs/plugin_list.md | 16 +- commands/docs/plugin_rm.md | 2 +- commands/docs/plugin_stop.md | 2 +- commands/docs/plugin_use.md | 2 +- commands/docs/polars.md | 9 +- commands/docs/polars_agg-groups.md | 9 +- commands/docs/polars_agg.md | 9 +- commands/docs/polars_all-false.md | 9 +- commands/docs/polars_all-true.md | 9 +- commands/docs/polars_append.md | 9 +- commands/docs/polars_arg-max.md | 9 +- commands/docs/polars_arg-min.md | 9 +- commands/docs/polars_arg-sort.md | 9 +- commands/docs/polars_arg-true.md | 9 +- commands/docs/polars_arg-unique.md | 9 +- commands/docs/polars_arg-where.md | 9 +- commands/docs/polars_as-date.md | 9 +- commands/docs/polars_as-datetime.md | 25 ++- commands/docs/polars_as.md | 9 +- commands/docs/polars_cache.md | 9 +- commands/docs/polars_cast.md | 9 +- commands/docs/polars_col.md | 9 +- commands/docs/polars_collect.md | 9 +- commands/docs/polars_columns.md | 9 +- commands/docs/polars_concat-str.md | 9 +- commands/docs/polars_concat.md | 9 +- commands/docs/polars_contains.md | 9 +- commands/docs/polars_convert-time-zone.md | 17 +- commands/docs/polars_count-null.md | 9 +- commands/docs/polars_count.md | 9 +- commands/docs/polars_cumulative.md | 9 +- commands/docs/polars_cut.md | 9 +- commands/docs/polars_datepart.md | 37 +++-- commands/docs/polars_decimal.md | 9 +- commands/docs/polars_drop-duplicates.md | 9 +- commands/docs/polars_drop-nulls.md | 9 +- commands/docs/polars_drop.md | 9 +- commands/docs/polars_dummies.md | 9 +- commands/docs/polars_explode.md | 9 +- commands/docs/polars_expr-not.md | 9 +- commands/docs/polars_fill-nan.md | 9 +- commands/docs/polars_fill-null.md | 9 +- commands/docs/polars_filter-with.md | 9 +- commands/docs/polars_filter.md | 13 +- commands/docs/polars_first.md | 9 +- commands/docs/polars_flatten.md | 9 +- commands/docs/polars_get-day.md | 9 +- commands/docs/polars_get-hour.md | 9 +- commands/docs/polars_get-minute.md | 9 +- commands/docs/polars_get-month.md | 9 +- commands/docs/polars_get-nanosecond.md | 9 +- commands/docs/polars_get-ordinal.md | 9 +- commands/docs/polars_get-second.md | 9 +- commands/docs/polars_get-week.md | 9 +- commands/docs/polars_get-weekday.md | 9 +- commands/docs/polars_get-year.md | 9 +- commands/docs/polars_get.md | 9 +- commands/docs/polars_group-by.md | 9 +- commands/docs/polars_horizontal.md | 9 +- commands/docs/polars_implode.md | 9 +- commands/docs/polars_integer.md | 9 +- commands/docs/polars_into-df.md | 9 +- commands/docs/polars_into-dtype.md | 9 +- commands/docs/polars_into-lazy.md | 9 +- commands/docs/polars_into-nu.md | 9 +- commands/docs/polars_into-repr.md | 9 +- commands/docs/polars_into-schema.md | 9 +- commands/docs/polars_is-duplicated.md | 9 +- commands/docs/polars_is-in.md | 9 +- commands/docs/polars_is-not-null.md | 9 +- commands/docs/polars_is-null.md | 9 +- commands/docs/polars_is-unique.md | 9 +- commands/docs/polars_join-where.md | 9 +- commands/docs/polars_join.md | 9 +- commands/docs/polars_last.md | 9 +- commands/docs/polars_len.md | 9 +- commands/docs/polars_list-contains.md | 9 +- commands/docs/polars_lit.md | 9 +- commands/docs/polars_lowercase.md | 9 +- commands/docs/polars_math.md | 9 +- commands/docs/polars_max.md | 9 +- commands/docs/polars_mean.md | 9 +- commands/docs/polars_median.md | 9 +- commands/docs/polars_min.md | 9 +- commands/docs/polars_n-unique.md | 9 +- commands/docs/polars_not.md | 9 +- commands/docs/polars_open.md | 9 +- commands/docs/polars_otherwise.md | 9 +- commands/docs/polars_over.md | 9 +- commands/docs/polars_pivot.md | 13 +- commands/docs/polars_profile.md | 9 +- commands/docs/polars_qcut.md | 9 +- commands/docs/polars_quantile.md | 9 +- commands/docs/polars_query.md | 9 +- commands/docs/polars_rename.md | 9 +- commands/docs/polars_replace-time-zone.md | 31 ++-- commands/docs/polars_replace.md | 9 +- commands/docs/polars_reverse.md | 9 +- commands/docs/polars_rolling.md | 9 +- commands/docs/polars_sample.md | 9 +- commands/docs/polars_save.md | 9 +- commands/docs/polars_schema.md | 9 +- commands/docs/polars_select.md | 9 +- commands/docs/polars_set-with-idx.md | 9 +- commands/docs/polars_set.md | 9 +- commands/docs/polars_shape.md | 9 +- commands/docs/polars_shift.md | 9 +- commands/docs/polars_slice.md | 9 +- commands/docs/polars_sort-by.md | 9 +- commands/docs/polars_std.md | 9 +- commands/docs/polars_store-get.md | 9 +- commands/docs/polars_store-ls.md | 9 +- commands/docs/polars_store-rm.md | 9 +- commands/docs/polars_str-join.md | 9 +- commands/docs/polars_str-lengths.md | 9 +- commands/docs/polars_str-replace-all.md | 9 +- commands/docs/polars_str-replace.md | 9 +- commands/docs/polars_str-slice.md | 9 +- commands/docs/polars_str-split.md | 9 +- commands/docs/polars_str-strip-chars.md | 9 +- commands/docs/polars_strftime.md | 9 +- commands/docs/polars_struct-json-encode.md | 9 +- commands/docs/polars_sum.md | 9 +- commands/docs/polars_summary.md | 9 +- commands/docs/polars_take.md | 9 +- commands/docs/polars_truncate.md | 25 ++- commands/docs/polars_unique.md | 9 +- commands/docs/polars_unnest.md | 29 +++- commands/docs/polars_unpivot.md | 9 +- commands/docs/polars_uppercase.md | 9 +- commands/docs/polars_value-counts.md | 9 +- commands/docs/polars_var.md | 9 +- commands/docs/polars_when.md | 9 +- commands/docs/polars_with-column.md | 9 +- commands/docs/port.md | 2 +- commands/docs/prepend.md | 2 +- commands/docs/print.md | 2 +- commands/docs/ps.md | 2 +- commands/docs/pwd.md | 2 +- commands/docs/query.md | 9 +- commands/docs/query_db.md | 2 +- commands/docs/query_json.md | 9 +- commands/docs/query_web.md | 9 +- commands/docs/query_webpage-info.md | 9 +- commands/docs/query_xml.md | 9 +- commands/docs/random.md | 2 +- commands/docs/random_binary.md | 2 +- commands/docs/random_bool.md | 2 +- commands/docs/random_chars.md | 2 +- commands/docs/random_dice.md | 2 +- commands/docs/random_float.md | 2 +- commands/docs/random_int.md | 2 +- commands/docs/random_uuid.md | 2 +- commands/docs/reduce.md | 2 +- commands/docs/reject.md | 2 +- commands/docs/rename.md | 2 +- commands/docs/return.md | 2 +- commands/docs/reverse.md | 2 +- commands/docs/rm.md | 2 +- commands/docs/roll.md | 2 +- commands/docs/roll_down.md | 2 +- commands/docs/roll_left.md | 2 +- commands/docs/roll_right.md | 2 +- commands/docs/roll_up.md | 2 +- commands/docs/rotate.md | 2 +- commands/docs/run-external.md | 2 +- commands/docs/save.md | 2 +- commands/docs/schema.md | 2 +- commands/docs/scope.md | 2 +- commands/docs/scope_aliases.md | 2 +- commands/docs/scope_commands.md | 2 +- commands/docs/scope_engine-stats.md | 2 +- commands/docs/scope_externs.md | 2 +- commands/docs/scope_modules.md | 2 +- commands/docs/scope_variables.md | 2 +- commands/docs/select.md | 2 +- commands/docs/seq.md | 2 +- commands/docs/seq_char.md | 2 +- commands/docs/seq_date.md | 2 +- commands/docs/shuffle.md | 2 +- commands/docs/skip.md | 2 +- commands/docs/skip_until.md | 2 +- commands/docs/skip_while.md | 2 +- commands/docs/sleep.md | 2 +- commands/docs/slice.md | 2 +- commands/docs/sort-by.md | 2 +- commands/docs/sort.md | 2 +- commands/docs/source-env.md | 2 +- commands/docs/source.md | 2 +- commands/docs/split.md | 2 +- commands/docs/split_cell-path.md | 2 +- commands/docs/split_chars.md | 2 +- commands/docs/split_column.md | 2 +- commands/docs/split_list.md | 2 +- commands/docs/split_row.md | 2 +- commands/docs/split_words.md | 2 +- commands/docs/start.md | 2 +- commands/docs/stor.md | 2 +- commands/docs/stor_create.md | 2 +- commands/docs/stor_delete.md | 2 +- commands/docs/stor_export.md | 2 +- commands/docs/stor_import.md | 2 +- commands/docs/stor_insert.md | 2 +- commands/docs/stor_open.md | 2 +- commands/docs/stor_reset.md | 2 +- commands/docs/stor_update.md | 2 +- commands/docs/str.md | 2 +- commands/docs/str_camel-case.md | 2 +- commands/docs/str_capitalize.md | 2 +- commands/docs/str_contains.md | 2 +- commands/docs/str_distance.md | 2 +- commands/docs/str_downcase.md | 2 +- commands/docs/str_ends-with.md | 2 +- commands/docs/str_expand.md | 2 +- commands/docs/str_index-of.md | 2 +- commands/docs/str_join.md | 2 +- commands/docs/str_kebab-case.md | 2 +- commands/docs/str_length.md | 2 +- commands/docs/str_pascal-case.md | 2 +- commands/docs/str_replace.md | 19 ++- commands/docs/str_reverse.md | 2 +- commands/docs/str_screaming-snake-case.md | 2 +- commands/docs/str_snake-case.md | 2 +- commands/docs/str_starts-with.md | 2 +- commands/docs/str_stats.md | 2 +- commands/docs/str_substring.md | 2 +- commands/docs/str_title-case.md | 2 +- commands/docs/str_trim.md | 2 +- commands/docs/str_upcase.md | 2 +- commands/docs/sys.md | 2 +- commands/docs/sys_cpu.md | 2 +- commands/docs/sys_disks.md | 2 +- commands/docs/sys_host.md | 2 +- commands/docs/sys_mem.md | 2 +- commands/docs/sys_net.md | 2 +- commands/docs/sys_temp.md | 2 +- commands/docs/sys_users.md | 2 +- commands/docs/table.md | 2 +- commands/docs/take.md | 2 +- commands/docs/take_until.md | 2 +- commands/docs/take_while.md | 2 +- commands/docs/tee.md | 2 +- commands/docs/term.md | 2 +- commands/docs/term_query.md | 2 +- commands/docs/term_size.md | 2 +- commands/docs/timeit.md | 2 +- commands/docs/to.md | 2 +- commands/docs/to_csv.md | 2 +- commands/docs/to_html.md | 2 +- commands/docs/to_json.md | 2 +- commands/docs/to_md.md | 2 +- commands/docs/to_msgpack.md | 2 +- commands/docs/to_msgpackz.md | 2 +- commands/docs/to_nuon.md | 2 +- commands/docs/to_plist.md | 9 +- commands/docs/to_text.md | 2 +- commands/docs/to_toml.md | 2 +- commands/docs/to_tsv.md | 2 +- commands/docs/to_xml.md | 2 +- commands/docs/to_yaml.md | 2 +- commands/docs/to_yml.md | 2 +- commands/docs/touch.md | 2 +- commands/docs/transpose.md | 2 +- commands/docs/try.md | 2 +- commands/docs/tutor.md | 2 +- commands/docs/ulimit.md | 2 +- commands/docs/uname.md | 2 +- commands/docs/uniq-by.md | 2 +- commands/docs/uniq.md | 2 +- commands/docs/update.md | 2 +- commands/docs/update_cells.md | 22 +-- commands/docs/upsert.md | 2 +- commands/docs/url.md | 2 +- commands/docs/url_build-query.md | 2 +- commands/docs/url_decode.md | 2 +- commands/docs/url_encode.md | 2 +- commands/docs/url_join.md | 2 +- commands/docs/url_parse.md | 2 +- commands/docs/url_split-query.md | 2 +- commands/docs/use.md | 2 +- commands/docs/values.md | 2 +- commands/docs/version.md | 2 +- commands/docs/version_check.md | 4 +- commands/docs/view.md | 2 +- commands/docs/view_blocks.md | 2 +- commands/docs/view_files.md | 2 +- commands/docs/view_ir.md | 2 +- commands/docs/view_source.md | 2 +- commands/docs/view_span.md | 2 +- commands/docs/watch.md | 2 +- commands/docs/where.md | 2 +- commands/docs/which.md | 2 +- commands/docs/while.md | 2 +- commands/docs/whoami.md | 2 +- commands/docs/window.md | 2 +- commands/docs/with-env.md | 2 +- commands/docs/wrap.md | 2 +- commands/docs/zip.md | 2 +- 598 files changed, 1010 insertions(+), 1790 deletions(-) create mode 100644 commands/docs/explore_regex.md diff --git a/commands/docs/alias.md b/commands/docs/alias.md index 237a018b842..0ad54b427c7 100644 --- a/commands/docs/alias.md +++ b/commands/docs/alias.md @@ -2,7 +2,7 @@ title: alias categories: | core -version: 0.108.0 +version: 0.109.0 core: | Alias a command (with optional flags) to a new name. usage: | diff --git a/commands/docs/all.md b/commands/docs/all.md index e9c69342ba4..b9451436fd5 100644 --- a/commands/docs/all.md +++ b/commands/docs/all.md @@ -2,7 +2,7 @@ title: all categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Test if every element of the input fulfills a predicate expression. usage: | diff --git a/commands/docs/ansi.md b/commands/docs/ansi.md index 534d2047ca9..d18e8e7802e 100644 --- a/commands/docs/ansi.md +++ b/commands/docs/ansi.md @@ -2,7 +2,7 @@ title: ansi categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Output ANSI codes to change color and style of text. usage: | diff --git a/commands/docs/ansi_gradient.md b/commands/docs/ansi_gradient.md index 76a27a944d1..352e6f188b7 100644 --- a/commands/docs/ansi_gradient.md +++ b/commands/docs/ansi_gradient.md @@ -2,7 +2,7 @@ title: ansi gradient categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Add a color gradient (using ANSI color codes) to the given string. usage: | diff --git a/commands/docs/ansi_link.md b/commands/docs/ansi_link.md index 7c895c5504b..0398b632eb2 100644 --- a/commands/docs/ansi_link.md +++ b/commands/docs/ansi_link.md @@ -2,7 +2,7 @@ title: ansi link categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Add a link (using OSC 8 escape sequence) to the given string. usage: | diff --git a/commands/docs/ansi_strip.md b/commands/docs/ansi_strip.md index ed3adb029d8..d7a4587f0b2 100644 --- a/commands/docs/ansi_strip.md +++ b/commands/docs/ansi_strip.md @@ -2,7 +2,7 @@ title: ansi strip categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Strip ANSI escape sequences from a string. usage: | @@ -40,3 +40,23 @@ Strip ANSI escape sequences from a string > $'(ansi green)(ansi cursor_on)hello' | ansi strip hello ``` + +Strip ANSI escape sequences from a record field +```nu +> { greeting: $'hello (ansi red)world' exclamation: false } | ansi strip greeting +╭─────────────┬─────────────╮ +│ greeting │ hello world │ +│ exclamation │ false │ +╰─────────────┴─────────────╯ +``` + +Strip ANSI escape sequences from multiple table columns +```nu +> [[language feature]; [$'(ansi red)rust' $'(ansi i)safety']] | ansi strip language feature +╭───┬──────────┬─────────╮ +│ # │ language │ feature │ +├───┼──────────┼─────────┤ +│ 0 │ rust │ safety │ +╰───┴──────────┴─────────╯ + +``` diff --git a/commands/docs/any.md b/commands/docs/any.md index c827bb6e712..0822cef09b2 100644 --- a/commands/docs/any.md +++ b/commands/docs/any.md @@ -2,7 +2,7 @@ title: any categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Tests if any element of the input fulfills a predicate expression. usage: | diff --git a/commands/docs/append.md b/commands/docs/append.md index 81588ad04b1..93e66aa5172 100644 --- a/commands/docs/append.md +++ b/commands/docs/append.md @@ -2,7 +2,7 @@ title: append categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Append any number of rows to a table. usage: | diff --git a/commands/docs/ast.md b/commands/docs/ast.md index 836bbbe6685..eed206fab96 100644 --- a/commands/docs/ast.md +++ b/commands/docs/ast.md @@ -2,7 +2,7 @@ title: ast categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Print the abstract syntax tree (ast) for a pipeline. usage: | diff --git a/commands/docs/attr.md b/commands/docs/attr.md index df24794fc64..2a9c95d951e 100644 --- a/commands/docs/attr.md +++ b/commands/docs/attr.md @@ -2,7 +2,7 @@ title: attr categories: | core -version: 0.108.0 +version: 0.109.0 core: | Various attributes for custom commands. usage: | diff --git a/commands/docs/attr_category.md b/commands/docs/attr_category.md index 89d8dbee1ab..3d255e84957 100644 --- a/commands/docs/attr_category.md +++ b/commands/docs/attr_category.md @@ -2,7 +2,7 @@ title: attr category categories: | core -version: 0.108.0 +version: 0.109.0 core: | Attribute for adding a category to custom commands. usage: | diff --git a/commands/docs/attr_complete.md b/commands/docs/attr_complete.md index a782545f490..20dd8ab71f5 100644 --- a/commands/docs/attr_complete.md +++ b/commands/docs/attr_complete.md @@ -2,7 +2,7 @@ title: attr complete categories: | core -version: 0.108.0 +version: 0.109.0 core: | Attribute for using another command as a completion source for all arguments. usage: | diff --git a/commands/docs/attr_complete_external.md b/commands/docs/attr_complete_external.md index d123f6e99a1..59f80a23195 100644 --- a/commands/docs/attr_complete_external.md +++ b/commands/docs/attr_complete_external.md @@ -2,7 +2,7 @@ title: attr complete external categories: | core -version: 0.108.0 +version: 0.109.0 core: | Attribute for enabling use of the external completer for internal commands. usage: | diff --git a/commands/docs/attr_deprecated.md b/commands/docs/attr_deprecated.md index b44da5b3cfa..b5c2deef9cb 100644 --- a/commands/docs/attr_deprecated.md +++ b/commands/docs/attr_deprecated.md @@ -2,7 +2,7 @@ title: attr deprecated categories: | core -version: 0.108.0 +version: 0.109.0 core: | Attribute for marking a command or flag as deprecated. usage: | diff --git a/commands/docs/attr_example.md b/commands/docs/attr_example.md index 4657ef0f546..622a6bc1b51 100644 --- a/commands/docs/attr_example.md +++ b/commands/docs/attr_example.md @@ -2,7 +2,7 @@ title: attr example categories: | core -version: 0.108.0 +version: 0.109.0 core: | Attribute for adding examples to custom commands. usage: | diff --git a/commands/docs/attr_search-terms.md b/commands/docs/attr_search-terms.md index e021ce7ef63..82cf88ea222 100644 --- a/commands/docs/attr_search-terms.md +++ b/commands/docs/attr_search-terms.md @@ -2,7 +2,7 @@ title: attr search-terms categories: | core -version: 0.108.0 +version: 0.109.0 core: | Attribute for adding search terms to custom commands. usage: | diff --git a/commands/docs/banner.md b/commands/docs/banner.md index 8530dc17ae2..ecd5d2900d3 100644 --- a/commands/docs/banner.md +++ b/commands/docs/banner.md @@ -2,7 +2,7 @@ title: banner categories: | default -version: 0.108.0 +version: 0.109.0 default: | Print a banner for Nushell with information about the project usage: | diff --git a/commands/docs/bits.md b/commands/docs/bits.md index 963a7892c00..d65d38674b8 100644 --- a/commands/docs/bits.md +++ b/commands/docs/bits.md @@ -2,7 +2,7 @@ title: bits categories: | bits -version: 0.108.0 +version: 0.109.0 bits: | Various commands for working with bits. usage: | diff --git a/commands/docs/bits_and.md b/commands/docs/bits_and.md index 20e68624fdf..334999cc36d 100644 --- a/commands/docs/bits_and.md +++ b/commands/docs/bits_and.md @@ -2,7 +2,7 @@ title: bits and categories: | bits -version: 0.108.0 +version: 0.109.0 bits: | Performs bitwise and for ints or binary values. usage: | diff --git a/commands/docs/bits_not.md b/commands/docs/bits_not.md index 06fd5dd1d99..ec82e0cbe4c 100644 --- a/commands/docs/bits_not.md +++ b/commands/docs/bits_not.md @@ -2,7 +2,7 @@ title: bits not categories: | bits -version: 0.108.0 +version: 0.109.0 bits: | Performs logical negation on each bit. usage: | diff --git a/commands/docs/bits_or.md b/commands/docs/bits_or.md index 27b005539a7..cae21a5568e 100644 --- a/commands/docs/bits_or.md +++ b/commands/docs/bits_or.md @@ -2,7 +2,7 @@ title: bits or categories: | bits -version: 0.108.0 +version: 0.109.0 bits: | Performs bitwise or for ints or binary values. usage: | diff --git a/commands/docs/bits_rol.md b/commands/docs/bits_rol.md index 10a57f76c21..ab536f39fe2 100644 --- a/commands/docs/bits_rol.md +++ b/commands/docs/bits_rol.md @@ -2,7 +2,7 @@ title: bits rol categories: | bits -version: 0.108.0 +version: 0.109.0 bits: | Bitwise rotate left for ints or binary values. usage: | diff --git a/commands/docs/bits_ror.md b/commands/docs/bits_ror.md index ec07f2f1b0e..465d0771a32 100644 --- a/commands/docs/bits_ror.md +++ b/commands/docs/bits_ror.md @@ -2,7 +2,7 @@ title: bits ror categories: | bits -version: 0.108.0 +version: 0.109.0 bits: | Bitwise rotate right for ints or binary values. usage: | diff --git a/commands/docs/bits_shl.md b/commands/docs/bits_shl.md index e0b7b0c7281..1263f010f73 100644 --- a/commands/docs/bits_shl.md +++ b/commands/docs/bits_shl.md @@ -2,7 +2,7 @@ title: bits shl categories: | bits -version: 0.108.0 +version: 0.109.0 bits: | Bitwise shift left for ints or binary values. usage: | diff --git a/commands/docs/bits_shr.md b/commands/docs/bits_shr.md index 73cec34c86b..58afeca1cf2 100644 --- a/commands/docs/bits_shr.md +++ b/commands/docs/bits_shr.md @@ -2,7 +2,7 @@ title: bits shr categories: | bits -version: 0.108.0 +version: 0.109.0 bits: | Bitwise shift right for ints or binary values. usage: | diff --git a/commands/docs/bits_xor.md b/commands/docs/bits_xor.md index 14973bce6b3..6fca023b799 100644 --- a/commands/docs/bits_xor.md +++ b/commands/docs/bits_xor.md @@ -2,7 +2,7 @@ title: bits xor categories: | bits -version: 0.108.0 +version: 0.109.0 bits: | Performs bitwise xor for ints or binary values. usage: | diff --git a/commands/docs/break.md b/commands/docs/break.md index e74f4d0afe6..32181244c7d 100644 --- a/commands/docs/break.md +++ b/commands/docs/break.md @@ -2,7 +2,7 @@ title: break categories: | core -version: 0.108.0 +version: 0.109.0 core: | Break a loop. usage: | diff --git a/commands/docs/bytes.md b/commands/docs/bytes.md index c7565c36894..2e1501a74d9 100644 --- a/commands/docs/bytes.md +++ b/commands/docs/bytes.md @@ -2,7 +2,7 @@ title: bytes categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Various commands for working with byte data. usage: | diff --git a/commands/docs/bytes_add.md b/commands/docs/bytes_add.md index f0f7473377f..3b29cb54ca1 100644 --- a/commands/docs/bytes_add.md +++ b/commands/docs/bytes_add.md @@ -2,7 +2,7 @@ title: bytes add categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Add specified bytes to the input. usage: | diff --git a/commands/docs/bytes_at.md b/commands/docs/bytes_at.md index ae753b729b9..5e0714f9d70 100644 --- a/commands/docs/bytes_at.md +++ b/commands/docs/bytes_at.md @@ -2,7 +2,7 @@ title: bytes at categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Get bytes defined by a range. usage: | diff --git a/commands/docs/bytes_build.md b/commands/docs/bytes_build.md index 931ba9e65a7..680a8628857 100644 --- a/commands/docs/bytes_build.md +++ b/commands/docs/bytes_build.md @@ -2,7 +2,7 @@ title: bytes build categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Create bytes from the arguments. usage: | diff --git a/commands/docs/bytes_collect.md b/commands/docs/bytes_collect.md index 60f21a908dd..bd538ad8d45 100644 --- a/commands/docs/bytes_collect.md +++ b/commands/docs/bytes_collect.md @@ -2,7 +2,7 @@ title: bytes collect categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Concatenate multiple binary into a single binary, with an optional separator between each. usage: | diff --git a/commands/docs/bytes_ends-with.md b/commands/docs/bytes_ends-with.md index c179d9c9163..98552195dda 100644 --- a/commands/docs/bytes_ends-with.md +++ b/commands/docs/bytes_ends-with.md @@ -2,7 +2,7 @@ title: bytes ends-with categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Check if bytes ends with a pattern. usage: | diff --git a/commands/docs/bytes_index-of.md b/commands/docs/bytes_index-of.md index ce206eb41ed..2117da44065 100644 --- a/commands/docs/bytes_index-of.md +++ b/commands/docs/bytes_index-of.md @@ -2,7 +2,7 @@ title: bytes index-of categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Returns start index of first occurrence of pattern in bytes, or -1 if no match. usage: | diff --git a/commands/docs/bytes_length.md b/commands/docs/bytes_length.md index a74d78b39ed..d75338105e5 100644 --- a/commands/docs/bytes_length.md +++ b/commands/docs/bytes_length.md @@ -2,7 +2,7 @@ title: bytes length categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Output the length of any bytes in the pipeline. usage: | diff --git a/commands/docs/bytes_remove.md b/commands/docs/bytes_remove.md index 0cee051b11e..80a2bf1be0d 100644 --- a/commands/docs/bytes_remove.md +++ b/commands/docs/bytes_remove.md @@ -2,7 +2,7 @@ title: bytes remove categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Remove bytes. usage: | diff --git a/commands/docs/bytes_replace.md b/commands/docs/bytes_replace.md index 848dd01f401..455cae60583 100644 --- a/commands/docs/bytes_replace.md +++ b/commands/docs/bytes_replace.md @@ -2,7 +2,7 @@ title: bytes replace categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Find and replace binary. usage: | diff --git a/commands/docs/bytes_reverse.md b/commands/docs/bytes_reverse.md index 58a572f698c..f847119dd1b 100644 --- a/commands/docs/bytes_reverse.md +++ b/commands/docs/bytes_reverse.md @@ -2,7 +2,7 @@ title: bytes reverse categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Reverse the bytes in the pipeline. usage: | diff --git a/commands/docs/bytes_split.md b/commands/docs/bytes_split.md index ca96ab85dff..6cc9ef38d77 100644 --- a/commands/docs/bytes_split.md +++ b/commands/docs/bytes_split.md @@ -2,7 +2,7 @@ title: bytes split categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Split input into multiple items using a separator. usage: | diff --git a/commands/docs/bytes_starts-with.md b/commands/docs/bytes_starts-with.md index 43eee915040..0cc24873e48 100644 --- a/commands/docs/bytes_starts-with.md +++ b/commands/docs/bytes_starts-with.md @@ -2,7 +2,7 @@ title: bytes starts-with categories: | bytes -version: 0.108.0 +version: 0.109.0 bytes: | Check if bytes starts with a pattern. usage: | diff --git a/commands/docs/cal.md b/commands/docs/cal.md index 8749aca0361..d4d419a02f3 100644 --- a/commands/docs/cal.md +++ b/commands/docs/cal.md @@ -2,7 +2,7 @@ title: cal categories: | generators -version: 0.108.0 +version: 0.109.0 generators: | Display a calendar. usage: | diff --git a/commands/docs/cd.md b/commands/docs/cd.md index 18fea0d7cfb..83996e8fc1b 100644 --- a/commands/docs/cd.md +++ b/commands/docs/cd.md @@ -2,7 +2,7 @@ title: cd categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Change directory. usage: | diff --git a/commands/docs/char.md b/commands/docs/char.md index c42dacb06cb..b721feab517 100644 --- a/commands/docs/char.md +++ b/commands/docs/char.md @@ -2,7 +2,7 @@ title: char categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Output special characters (e.g., 'newline'). usage: | diff --git a/commands/docs/chunk-by.md b/commands/docs/chunk-by.md index 9db4e228224..11eeba34c0c 100644 --- a/commands/docs/chunk-by.md +++ b/commands/docs/chunk-by.md @@ -2,7 +2,7 @@ title: chunk-by categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Divides a sequence into sub-sequences based on a closure. usage: | diff --git a/commands/docs/chunks.md b/commands/docs/chunks.md index 7b272534f49..ce6fb127312 100644 --- a/commands/docs/chunks.md +++ b/commands/docs/chunks.md @@ -2,7 +2,7 @@ title: chunks categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Divide a list, table or binary input into chunks of `chunk_size`. usage: | diff --git a/commands/docs/clear.md b/commands/docs/clear.md index a01ce07cc19..f5aa358595b 100644 --- a/commands/docs/clear.md +++ b/commands/docs/clear.md @@ -2,7 +2,7 @@ title: clear categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Clear the terminal. usage: | diff --git a/commands/docs/collect.md b/commands/docs/collect.md index 0a49b76a078..01273baa9fd 100644 --- a/commands/docs/collect.md +++ b/commands/docs/collect.md @@ -2,7 +2,7 @@ title: collect categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Collect a stream into a value. usage: | diff --git a/commands/docs/columns.md b/commands/docs/columns.md index c428c43f67e..1c9614e6d21 100644 --- a/commands/docs/columns.md +++ b/commands/docs/columns.md @@ -2,7 +2,7 @@ title: columns categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Given a record or table, produce a list of its columns' names. usage: | diff --git a/commands/docs/commandline.md b/commands/docs/commandline.md index 315b0173ac8..290b0f2ecba 100644 --- a/commands/docs/commandline.md +++ b/commands/docs/commandline.md @@ -2,7 +2,7 @@ title: commandline categories: | core -version: 0.108.0 +version: 0.109.0 core: | View the current command line input buffer. usage: | diff --git a/commands/docs/commandline_edit.md b/commands/docs/commandline_edit.md index 8258fb01631..2310b87f40b 100644 --- a/commands/docs/commandline_edit.md +++ b/commands/docs/commandline_edit.md @@ -2,7 +2,7 @@ title: commandline edit categories: | core -version: 0.108.0 +version: 0.109.0 core: | Modify the current command line input buffer. usage: | diff --git a/commands/docs/commandline_get-cursor.md b/commands/docs/commandline_get-cursor.md index d9f68f6af7e..30eb29e1d0b 100644 --- a/commands/docs/commandline_get-cursor.md +++ b/commands/docs/commandline_get-cursor.md @@ -2,7 +2,7 @@ title: commandline get-cursor categories: | core -version: 0.108.0 +version: 0.109.0 core: | Get the current cursor position. usage: | diff --git a/commands/docs/commandline_set-cursor.md b/commands/docs/commandline_set-cursor.md index 3bee377a1cf..89d4ef3ba6f 100644 --- a/commands/docs/commandline_set-cursor.md +++ b/commands/docs/commandline_set-cursor.md @@ -2,7 +2,7 @@ title: commandline set-cursor categories: | core -version: 0.108.0 +version: 0.109.0 core: | Set the current cursor position. usage: | diff --git a/commands/docs/compact.md b/commands/docs/compact.md index a79d82b3877..80c5fb2b103 100644 --- a/commands/docs/compact.md +++ b/commands/docs/compact.md @@ -2,7 +2,7 @@ title: compact categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Creates a table with non-empty rows. usage: | diff --git a/commands/docs/complete.md b/commands/docs/complete.md index 23efda7587d..ffb651ffa96 100644 --- a/commands/docs/complete.md +++ b/commands/docs/complete.md @@ -2,7 +2,7 @@ title: complete categories: | system -version: 0.108.0 +version: 0.109.0 system: | Capture the outputs and exit code from an external piped in command in a nushell table. usage: | diff --git a/commands/docs/config.md b/commands/docs/config.md index 19bb3342b84..b354e8202f7 100644 --- a/commands/docs/config.md +++ b/commands/docs/config.md @@ -2,7 +2,7 @@ title: config categories: | env -version: 0.108.0 +version: 0.109.0 env: | Edit nushell configuration files. usage: | diff --git a/commands/docs/config_env.md b/commands/docs/config_env.md index f4ae9f9b03e..0f432e5a428 100644 --- a/commands/docs/config_env.md +++ b/commands/docs/config_env.md @@ -2,7 +2,7 @@ title: config env categories: | env -version: 0.108.0 +version: 0.109.0 env: | Edit nu environment configurations. usage: | diff --git a/commands/docs/config_flatten.md b/commands/docs/config_flatten.md index 5bb2fc60e65..be2afcbc8c0 100644 --- a/commands/docs/config_flatten.md +++ b/commands/docs/config_flatten.md @@ -2,7 +2,7 @@ title: config flatten categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Show the current configuration in a flattened form. usage: | diff --git a/commands/docs/config_nu.md b/commands/docs/config_nu.md index c1305a9578e..3fd53c7fceb 100644 --- a/commands/docs/config_nu.md +++ b/commands/docs/config_nu.md @@ -2,7 +2,7 @@ title: config nu categories: | env -version: 0.108.0 +version: 0.109.0 env: | Edit nu configurations. usage: | diff --git a/commands/docs/config_reset.md b/commands/docs/config_reset.md index 0c77a3dfb5e..37ef5909838 100644 --- a/commands/docs/config_reset.md +++ b/commands/docs/config_reset.md @@ -2,7 +2,7 @@ title: config reset categories: | env -version: 0.108.0 +version: 0.109.0 env: | Reset nushell environment configurations to default, and saves old config files in the config location as oldconfig.nu and oldenv.nu. usage: | diff --git a/commands/docs/config_use-colors.md b/commands/docs/config_use-colors.md index b77887e85e0..104d61df243 100644 --- a/commands/docs/config_use-colors.md +++ b/commands/docs/config_use-colors.md @@ -2,7 +2,7 @@ title: config use-colors categories: | env -version: 0.108.0 +version: 0.109.0 env: | Get the configuration for color output. usage: | diff --git a/commands/docs/const.md b/commands/docs/const.md index 793290cd36a..675d1e034d6 100644 --- a/commands/docs/const.md +++ b/commands/docs/const.md @@ -2,7 +2,7 @@ title: const categories: | core -version: 0.108.0 +version: 0.109.0 core: | Create a parse-time constant. usage: | diff --git a/commands/docs/continue.md b/commands/docs/continue.md index a036e5eeb2c..6d7ab05bc1d 100644 --- a/commands/docs/continue.md +++ b/commands/docs/continue.md @@ -2,7 +2,7 @@ title: continue categories: | core -version: 0.108.0 +version: 0.109.0 core: | Continue a loop from the next iteration. usage: | diff --git a/commands/docs/cp.md b/commands/docs/cp.md index d561cd78c87..808c2a143eb 100644 --- a/commands/docs/cp.md +++ b/commands/docs/cp.md @@ -2,7 +2,7 @@ title: cp categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Copy files using uutils/coreutils cp. usage: | diff --git a/commands/docs/date.md b/commands/docs/date.md index db950fed190..35d6017590e 100644 --- a/commands/docs/date.md +++ b/commands/docs/date.md @@ -2,7 +2,7 @@ title: date categories: | date -version: 0.108.0 +version: 0.109.0 date: | Date-related commands. usage: | diff --git a/commands/docs/date_format.md b/commands/docs/date_format.md index b9503eda423..71d4fbe02e1 100644 --- a/commands/docs/date_format.md +++ b/commands/docs/date_format.md @@ -2,7 +2,7 @@ title: date format categories: | removed -version: 0.108.0 +version: 0.109.0 removed: | Removed command: use `format date` instead. usage: | diff --git a/commands/docs/date_from-human.md b/commands/docs/date_from-human.md index 18756da4344..fb57d976887 100644 --- a/commands/docs/date_from-human.md +++ b/commands/docs/date_from-human.md @@ -2,7 +2,7 @@ title: date from-human categories: | date -version: 0.108.0 +version: 0.109.0 date: | Convert a human readable datetime string to a datetime. usage: | diff --git a/commands/docs/date_humanize.md b/commands/docs/date_humanize.md index 80c898b5e79..b54d16a8423 100644 --- a/commands/docs/date_humanize.md +++ b/commands/docs/date_humanize.md @@ -2,7 +2,7 @@ title: date humanize categories: | date -version: 0.108.0 +version: 0.109.0 date: | Print a 'humanized' format for the date, relative to now. usage: | diff --git a/commands/docs/date_list-timezone.md b/commands/docs/date_list-timezone.md index 351e77ebebd..c43ad4d4597 100644 --- a/commands/docs/date_list-timezone.md +++ b/commands/docs/date_list-timezone.md @@ -2,7 +2,7 @@ title: date list-timezone categories: | date -version: 0.108.0 +version: 0.109.0 date: | List supported time zones. usage: | diff --git a/commands/docs/date_now.md b/commands/docs/date_now.md index 7531808ccf9..9ae49a273fa 100644 --- a/commands/docs/date_now.md +++ b/commands/docs/date_now.md @@ -2,7 +2,7 @@ title: date now categories: | date -version: 0.108.0 +version: 0.109.0 date: | Get the current date. usage: | diff --git a/commands/docs/date_to-timezone.md b/commands/docs/date_to-timezone.md index 8ff1957736a..67bc3b4beb0 100644 --- a/commands/docs/date_to-timezone.md +++ b/commands/docs/date_to-timezone.md @@ -2,7 +2,7 @@ title: date to-timezone categories: | date -version: 0.108.0 +version: 0.109.0 date: | Convert a date to a given time zone. usage: | diff --git a/commands/docs/debug.md b/commands/docs/debug.md index 9d304a7f03b..fc2268bfd90 100644 --- a/commands/docs/debug.md +++ b/commands/docs/debug.md @@ -2,7 +2,7 @@ title: debug categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Debug print the value(s) piped in. usage: | diff --git a/commands/docs/debug_env.md b/commands/docs/debug_env.md index 92b9be80814..69e54c45be8 100644 --- a/commands/docs/debug_env.md +++ b/commands/docs/debug_env.md @@ -2,7 +2,7 @@ title: debug env categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Show environment variables as external commands would get it. usage: | diff --git a/commands/docs/debug_experimental-options.md b/commands/docs/debug_experimental-options.md index 0f46fc054fc..8973572ec00 100644 --- a/commands/docs/debug_experimental-options.md +++ b/commands/docs/debug_experimental-options.md @@ -2,7 +2,7 @@ title: debug experimental-options categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Show all experimental options. usage: | diff --git a/commands/docs/debug_info.md b/commands/docs/debug_info.md index 4a5c96b0081..f1cf40805b7 100644 --- a/commands/docs/debug_info.md +++ b/commands/docs/debug_info.md @@ -2,7 +2,7 @@ title: debug info categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | View process memory info. usage: | diff --git a/commands/docs/debug_profile.md b/commands/docs/debug_profile.md index 86f7ef502c2..3e143e9934a 100644 --- a/commands/docs/debug_profile.md +++ b/commands/docs/debug_profile.md @@ -2,7 +2,7 @@ title: debug profile categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Profile pipeline elements in a closure. usage: | diff --git a/commands/docs/decode.md b/commands/docs/decode.md index f004233ac87..4c5c079ff81 100644 --- a/commands/docs/decode.md +++ b/commands/docs/decode.md @@ -2,7 +2,7 @@ title: decode categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Decode bytes into a string. usage: | diff --git a/commands/docs/decode_base32.md b/commands/docs/decode_base32.md index 305ed76dc69..5c153247621 100644 --- a/commands/docs/decode_base32.md +++ b/commands/docs/decode_base32.md @@ -2,7 +2,7 @@ title: decode base32 categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Decode a Base32 value. usage: | diff --git a/commands/docs/decode_base32hex.md b/commands/docs/decode_base32hex.md index f53d067655d..24811888f3f 100644 --- a/commands/docs/decode_base32hex.md +++ b/commands/docs/decode_base32hex.md @@ -2,7 +2,7 @@ title: decode base32hex categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Encode a base32hex value. usage: | diff --git a/commands/docs/decode_base64.md b/commands/docs/decode_base64.md index f0796e6bbad..7a8625b6497 100644 --- a/commands/docs/decode_base64.md +++ b/commands/docs/decode_base64.md @@ -2,7 +2,7 @@ title: decode base64 categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Decode a Base64 value. usage: | diff --git a/commands/docs/decode_hex.md b/commands/docs/decode_hex.md index aefd2595622..ad4013ca823 100644 --- a/commands/docs/decode_hex.md +++ b/commands/docs/decode_hex.md @@ -2,7 +2,7 @@ title: decode hex categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Hex decode a value. usage: | diff --git a/commands/docs/def.md b/commands/docs/def.md index 091dd6728f3..22c37d115c9 100644 --- a/commands/docs/def.md +++ b/commands/docs/def.md @@ -2,7 +2,7 @@ title: def categories: | core -version: 0.108.0 +version: 0.109.0 core: | Define a custom command. usage: | diff --git a/commands/docs/default.md b/commands/docs/default.md index f44942a33e3..2be38c89fca 100644 --- a/commands/docs/default.md +++ b/commands/docs/default.md @@ -2,7 +2,7 @@ title: default categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Sets a default value if a row's column is missing or null. usage: | diff --git a/commands/docs/describe.md b/commands/docs/describe.md index 18eeee565e2..98210533b31 100644 --- a/commands/docs/describe.md +++ b/commands/docs/describe.md @@ -2,7 +2,7 @@ title: describe categories: | core -version: 0.108.0 +version: 0.109.0 core: | Describe the type and structure of the value(s) piped in. usage: | @@ -42,88 +42,92 @@ string Describe the type of a record in a detailed way ```nu > {shell:'true', uwu:true, features: {bugs:false, multiplatform:true, speed: 10}, fib: [1 1 2 3 5 8], on_save: {|x| $'Saving ($x)'}, first_commit: 2019-05-10, my_duration: (4min + 20sec)} | describe -d -╭───────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ type │ record │ -│ detailed_type │ record, fib: list, on_save: closure, first_commit: datetime, my_duration: duration> │ -│ │ ╭──────────────┬──────────────────────────────────────────────────────────────────────────────────────────╮ │ -│ columns │ │ │ ╭───────────────┬────────────────────────╮ │ │ -│ │ │ shell │ │ type │ string │ │ │ -│ │ │ │ │ detailed_type │ string │ │ │ -│ │ │ │ │ rust_type │ &alloc::string::String │ │ │ -│ │ │ │ │ value │ true │ │ │ -│ │ │ │ ╰───────────────┴────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬──────╮ │ │ -│ │ │ uwu │ │ type │ bool │ │ │ -│ │ │ │ │ detailed_type │ bool │ │ │ -│ │ │ │ │ rust_type │ bool │ │ │ -│ │ │ │ │ value │ true │ │ │ -│ │ │ │ ╰───────────────┴──────╯ │ │ -│ │ │ │ ╭───────────────┬──────────────────────────────────────────────────────────────────────╮ │ │ -│ │ │ features │ │ type │ record │ │ │ -│ │ │ │ │ detailed_type │ record │ │ │ -│ │ │ │ │ │ ╭───────────────┬───────────────────────────╮ │ │ │ -│ │ │ │ │ columns │ │ │ ╭───────────────┬───────╮ │ │ │ │ -│ │ │ │ │ │ │ bugs │ │ type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ value │ false │ │ │ │ │ -│ │ │ │ │ │ │ │ ╰───────────────┴───────╯ │ │ │ │ -│ │ │ │ │ │ │ │ ╭───────────────┬──────╮ │ │ │ │ -│ │ │ │ │ │ │ multiplatform │ │ type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ value │ true │ │ │ │ │ -│ │ │ │ │ │ │ │ ╰───────────────┴──────╯ │ │ │ │ -│ │ │ │ │ │ │ │ ╭───────────────┬─────╮ │ │ │ │ -│ │ │ │ │ │ │ speed │ │ type │ int │ │ │ │ │ -│ │ │ │ │ │ │ │ │ detailed_type │ int │ │ │ │ │ -│ │ │ │ │ │ │ │ │ rust_type │ i64 │ │ │ │ │ -│ │ │ │ │ │ │ │ │ value │ 10 │ │ │ │ │ -│ │ │ │ │ │ │ │ ╰───────────────┴─────╯ │ │ │ │ -│ │ │ │ │ │ ╰───────────────┴───────────────────────────╯ │ │ │ -│ │ │ │ │ rust_type │ &nu_utils::shared_cow::SharedCow │ │ │ -│ │ │ │ ╰───────────────┴──────────────────────────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬──────────────────────────────────────────────────╮ │ │ -│ │ │ fib │ │ type │ list │ │ │ -│ │ │ │ │ detailed_type │ list │ │ │ -│ │ │ │ │ length │ 6 │ │ │ -│ │ │ │ │ rust_type │ &mut alloc::vec::Vec │ │ │ -│ │ │ │ │ │ ╭───┬──────┬───────────────┬───────────┬───────╮ │ │ │ -│ │ │ │ │ value │ │ # │ type │ detailed_type │ rust_type │ value │ │ │ │ -│ │ │ │ │ │ ├───┼──────┼───────────────┼───────────┼───────┤ │ │ │ -│ │ │ │ │ │ │ 0 │ int │ int │ i64 │ 1 │ │ │ │ -│ │ │ │ │ │ │ 1 │ int │ int │ i64 │ 1 │ │ │ │ -│ │ │ │ │ │ │ 2 │ int │ int │ i64 │ 2 │ │ │ │ -│ │ │ │ │ │ │ 3 │ int │ int │ i64 │ 3 │ │ │ │ -│ │ │ │ │ │ │ 4 │ int │ int │ i64 │ 5 │ │ │ │ -│ │ │ │ │ │ │ 5 │ int │ int │ i64 │ 8 │ │ │ │ -│ │ │ │ │ │ ╰───┴──────┴───────────────┴───────────┴───────╯ │ │ │ -│ │ │ │ ╰───────────────┴──────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬───────────────────────────────────────────────────────────╮ │ │ -│ │ │ on_save │ │ type │ closure │ │ │ -│ │ │ │ │ detailed_type │ closure │ │ │ -│ │ │ │ │ rust_type │ &alloc::boxed::Box │ │ │ -│ │ │ │ │ value │ closure_1 │ │ │ -│ │ │ │ │ │ ╭──────────┬─────────╮ │ │ │ -│ │ │ │ │ signature │ │ name │ │ │ │ │ -│ │ │ │ │ │ │ category │ default │ │ │ │ -│ │ │ │ │ │ ╰──────────┴─────────╯ │ │ │ -│ │ │ │ ╰───────────────┴───────────────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬────────────────────────────────────────────────────────────────╮ │ │ -│ │ │ first_commit │ │ type │ datetime │ │ │ -│ │ │ │ │ detailed_type │ datetime │ │ │ -│ │ │ │ │ rust_type │ chrono::datetime::DateTime │ │ │ -│ │ │ │ │ value │ 6 years ago │ │ │ -│ │ │ │ ╰───────────────┴────────────────────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬────────────╮ │ │ -│ │ │ my_duration │ │ type │ duration │ │ │ -│ │ │ │ │ detailed_type │ duration │ │ │ -│ │ │ │ │ rust_type │ i64 │ │ │ -│ │ │ │ │ value │ 4min 20sec │ │ │ -│ │ │ │ ╰───────────────┴────────────╯ │ │ -│ │ ╰──────────────┴──────────────────────────────────────────────────────────────────────────────────────────╯ │ -│ rust_type │ &nu_utils::shared_cow::SharedCow │ -╰───────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────┬────────────────────────────────────────────────────────────────────────────────────────────╮ +│ type │ record │ +│ detailed_type │ record, fib: list, on_save: closure, first_commit: datetime, my_duration: duration> │ +│ │ ╭──────────────┬─────────────────────────────────────────────────────────────────────────╮ │ +│ columns │ │ │ ╭───────────────┬────────────────────────╮ │ │ +│ │ │ shell │ │ type │ string │ │ │ +│ │ │ │ │ detailed_type │ string │ │ │ +│ │ │ │ │ rust_type │ &alloc::string::String │ │ │ +│ │ │ │ │ value │ true │ │ │ +│ │ │ │ ╰───────────────┴────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬──────╮ │ │ +│ │ │ uwu │ │ type │ bool │ │ │ +│ │ │ │ │ detailed_type │ bool │ │ │ +│ │ │ │ │ rust_type │ bool │ │ │ +│ │ │ │ │ value │ true │ │ │ +│ │ │ │ ╰───────────────┴──────╯ │ │ +│ │ │ │ ╭───────────────┬─────────────────────────────────────────────────────╮ │ │ +│ │ │ features │ │ type │ record │ │ │ +│ │ │ │ │ detailed_type │ record │ │ │ +│ │ │ │ │ │ ╭───────────────┬─────────────────────────────────╮ │ │ │ +│ │ │ │ │ columns │ │ │ ╭──────────────────┬──────────╮ │ │ │ │ +│ │ │ │ │ │ │ bugs │ │ type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ value │ false │ │ │ │ │ +│ │ │ │ │ │ │ │ ╰──────────────────┴──────────╯ │ │ │ │ +│ │ │ │ │ │ │ │ ╭───────────────┬──────╮ │ │ │ │ +│ │ │ │ │ │ │ multiplatform │ │ type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ value │ true │ │ │ │ │ +│ │ │ │ │ │ │ │ ╰───────────────┴──────╯ │ │ │ │ +│ │ │ │ │ │ │ │ ╭───────────────┬─────╮ │ │ │ │ +│ │ │ │ │ │ │ speed │ │ type │ int │ │ │ │ │ +│ │ │ │ │ │ │ │ │ detailed_type │ int │ │ │ │ │ +│ │ │ │ │ │ │ │ │ rust_type │ i64 │ │ │ │ │ +│ │ │ │ │ │ │ │ │ value │ 10 │ │ │ │ │ +│ │ │ │ │ │ │ │ ╰───────────────┴─────╯ │ │ │ │ +│ │ │ │ │ │ ╰───────────────┴─────────────────────────────────╯ │ │ │ +│ │ │ │ │ rust_type │ &nu_utils::shared_cow::SharedCow │ │ │ +│ │ │ │ ╰───────────────┴─────────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭─────────────────┬───────────────────────────────────────────────────╮ │ │ +│ │ │ fib │ │ type │ list │ │ │ +│ │ │ │ │ detailed_type │ list │ │ │ +│ │ │ │ │ length │ 6 │ │ │ +│ │ │ │ │ rust_type │ &mut alloc::vec::Vec │ │ │ +│ │ │ │ │ │ ╭───┬──────┬───────────────┬───────────┬───────╮ │ │ │ +│ │ │ │ │ value │ │ # │ type │ detailed_type │ rust_type │ value │ │ │ │ +│ │ │ │ │ │ ├───┼──────┼───────────────┼───────────┼───────┤ │ │ │ +│ │ │ │ │ │ │ 0 │ int │ int │ i64 │ 1 │ │ │ │ +│ │ │ │ │ │ │ 1 │ int │ int │ i64 │ 1 │ │ │ │ +│ │ │ │ │ │ │ 2 │ int │ int │ i64 │ 2 │ │ │ │ +│ │ │ │ │ │ │ 3 │ int │ int │ i64 │ 3 │ │ │ │ +│ │ │ │ │ │ │ 4 │ int │ int │ i64 │ 5 │ │ │ │ +│ │ │ │ │ │ │ 5 │ int │ int │ i64 │ 8 │ │ │ │ +│ │ │ │ │ │ ╰───┴──────┴───────────────┴───────────┴───────╯ │ │ │ +│ │ │ │ ╰─────────────────┴───────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬─────────────────────────────────────────────────────╮ │ │ +│ │ │ on_save │ │ type │ closure │ │ │ +│ │ │ │ │ detailed_type │ closure │ │ │ +│ │ │ │ │ rust_type │ &alloc::boxed::Box │ │ │ +│ │ │ │ │ value │ closure_1 │ │ │ +│ │ │ │ │ │ ╭──────────┬─────────╮ │ │ │ +│ │ │ │ │ signature │ │ name │ │ │ │ │ +│ │ │ │ │ │ │ category │ default │ │ │ │ +│ │ │ │ │ │ ╰──────────┴─────────╯ │ │ │ +│ │ │ │ ╰───────────────┴─────────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬─────────────────────────────────────────────────────╮ │ │ +│ │ │ first_commit │ │ type │ datetime │ │ │ +│ │ │ │ │ detailed_type │ datetime │ │ │ +│ │ │ │ │ rust_type │ chrono::datetime::DateTime │ │ │ +│ │ │ │ │ value │ 6 years ago │ │ │ +│ │ │ │ ╰───────────────┴─────────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬────────────╮ │ │ +│ │ │ my_duration │ │ type │ duration │ │ │ +│ │ │ │ │ detailed_type │ duration │ │ │ +│ │ │ │ │ rust_type │ i64 │ │ │ +│ │ │ │ │ value │ 4min 20sec │ │ │ +│ │ │ │ ╰───────────────┴────────────╯ │ │ +│ │ ╰──────────────┴─────────────────────────────────────────────────────────────────────────╯ │ +│ rust_type │ &nu_utils::shared_cow::SharedCow │ +╰───────────────┴────────────────────────────────────────────────────────────────────────────────────────────╯ ``` Describe the type of a stream with detailed information diff --git a/commands/docs/detect.md b/commands/docs/detect.md index 651cd82f4c0..c5bbfe20e9b 100644 --- a/commands/docs/detect.md +++ b/commands/docs/detect.md @@ -2,7 +2,7 @@ title: detect categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Various commands for detecting things. usage: | diff --git a/commands/docs/detect_columns.md b/commands/docs/detect_columns.md index 8016e628461..465c5589ae0 100644 --- a/commands/docs/detect_columns.md +++ b/commands/docs/detect_columns.md @@ -2,7 +2,7 @@ title: detect columns categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Attempt to automatically split text into multiple columns. usage: | diff --git a/commands/docs/detect_type.md b/commands/docs/detect_type.md index 6da51a87684..a047c3b5693 100644 --- a/commands/docs/detect_type.md +++ b/commands/docs/detect_type.md @@ -2,7 +2,7 @@ title: detect type categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Infer Nushell datatype from a string. usage: | diff --git a/commands/docs/do.md b/commands/docs/do.md index 8a0f35b8b17..85a3913532e 100644 --- a/commands/docs/do.md +++ b/commands/docs/do.md @@ -2,7 +2,7 @@ title: do categories: | core -version: 0.108.0 +version: 0.109.0 core: | Run a closure, providing it with the pipeline input. usage: | diff --git a/commands/docs/drop.md b/commands/docs/drop.md index f223419b88f..b88e3b43d35 100644 --- a/commands/docs/drop.md +++ b/commands/docs/drop.md @@ -2,7 +2,7 @@ title: drop categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Remove items/rows from the end of the input list/table. Counterpart of `skip`. Opposite of `last`. usage: | diff --git a/commands/docs/drop_column.md b/commands/docs/drop_column.md index 90879d7fc8a..5b4737a8e4e 100644 --- a/commands/docs/drop_column.md +++ b/commands/docs/drop_column.md @@ -2,7 +2,7 @@ title: drop column categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Remove N columns at the right-hand end of the input table. To remove columns by name, use `reject`. usage: | diff --git a/commands/docs/drop_nth.md b/commands/docs/drop_nth.md index 8dfe9ab35fa..852f8e876e1 100644 --- a/commands/docs/drop_nth.md +++ b/commands/docs/drop_nth.md @@ -2,7 +2,7 @@ title: drop nth categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Drop the selected rows. usage: | diff --git a/commands/docs/du.md b/commands/docs/du.md index 45ef88c528d..a9b5487f4d7 100644 --- a/commands/docs/du.md +++ b/commands/docs/du.md @@ -2,7 +2,7 @@ title: du categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Find disk usage sizes of specified items. usage: | diff --git a/commands/docs/each.md b/commands/docs/each.md index 8592d7ae755..86ca3c23b2a 100644 --- a/commands/docs/each.md +++ b/commands/docs/each.md @@ -2,7 +2,7 @@ title: each categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Run a closure on each row of the input list, creating a new list with the results. usage: | diff --git a/commands/docs/each_while.md b/commands/docs/each_while.md index 5a8a455009e..75fee5ad853 100644 --- a/commands/docs/each_while.md +++ b/commands/docs/each_while.md @@ -2,7 +2,7 @@ title: each while categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Run a closure on each row of the input list until a null is found, then create a new list with the results. usage: | diff --git a/commands/docs/echo.md b/commands/docs/echo.md index 7dea9c31f0d..0b5c3f2717c 100644 --- a/commands/docs/echo.md +++ b/commands/docs/echo.md @@ -2,7 +2,7 @@ title: echo categories: | core -version: 0.108.0 +version: 0.109.0 core: | Returns its arguments, ignoring the piped-in value. usage: | diff --git a/commands/docs/encode.md b/commands/docs/encode.md index d6967981329..89d4f37d0d1 100644 --- a/commands/docs/encode.md +++ b/commands/docs/encode.md @@ -2,7 +2,7 @@ title: encode categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Encode a string into bytes. usage: | diff --git a/commands/docs/encode_base32.md b/commands/docs/encode_base32.md index 08dee4075ae..8927f921d1b 100644 --- a/commands/docs/encode_base32.md +++ b/commands/docs/encode_base32.md @@ -2,7 +2,7 @@ title: encode base32 categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Encode a string or binary value using Base32. usage: | diff --git a/commands/docs/encode_base32hex.md b/commands/docs/encode_base32hex.md index 78bc1908ef2..d87c2a19a54 100644 --- a/commands/docs/encode_base32hex.md +++ b/commands/docs/encode_base32hex.md @@ -2,7 +2,7 @@ title: encode base32hex categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Encode a binary value or a string using base32hex. usage: | diff --git a/commands/docs/encode_base64.md b/commands/docs/encode_base64.md index b134e40504d..727d3c463cb 100644 --- a/commands/docs/encode_base64.md +++ b/commands/docs/encode_base64.md @@ -2,7 +2,7 @@ title: encode base64 categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Encode a string or binary value using Base64. usage: | diff --git a/commands/docs/encode_hex.md b/commands/docs/encode_hex.md index 3254f2b1957..288fde968dc 100644 --- a/commands/docs/encode_hex.md +++ b/commands/docs/encode_hex.md @@ -2,7 +2,7 @@ title: encode hex categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Hex encode a binary value or a string. usage: | diff --git a/commands/docs/enumerate.md b/commands/docs/enumerate.md index aff6cdbec2a..08852717a3f 100644 --- a/commands/docs/enumerate.md +++ b/commands/docs/enumerate.md @@ -2,7 +2,7 @@ title: enumerate categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Enumerate the elements in a stream. usage: | diff --git a/commands/docs/error.md b/commands/docs/error.md index 247d48fc7f2..a1189711eef 100644 --- a/commands/docs/error.md +++ b/commands/docs/error.md @@ -2,7 +2,7 @@ title: error categories: | core -version: 0.108.0 +version: 0.109.0 core: | Various commands for working with errors. usage: | diff --git a/commands/docs/error_make.md b/commands/docs/error_make.md index 5dbfa5f558e..5fbb4ff1bb8 100644 --- a/commands/docs/error_make.md +++ b/commands/docs/error_make.md @@ -2,7 +2,7 @@ title: error make categories: | core -version: 0.108.0 +version: 0.109.0 core: | Create an error. usage: | @@ -42,34 +42,54 @@ Create a simple custom error ``` -Create a more complex custom error +Create a complex error for a custom command that shows a full `error_struct` ```nu -> error make { - msg: "my custom error message" - label: { - text: "my custom label text" # not mandatory unless $.label exists - # optional - span: { - # if $.label.span exists, both start and end must be present - start: 123 - end: 456 +> def foo [x] { + error make { + msg: "this is fishy" + code: "my::error" # optional error type to use + labels: { # optional, a table or single record + text: "fish right here" # Required if $.labels exists + # use (metadata $var).span to get the {start: x end: y} of the variable + span: (metadata $x).span # optional } + help: "something to tell the user as help" # optional + url: "https://nushell.sh" # optional } - help: "A help string, suggesting a fix to the user" # optional } ``` -Create a custom error for a custom command that shows the span of the argument +Create a nested error from a try/catch statement with multiple labels ```nu -> def foo [x] { - error make { - msg: "this is fishy" - label: { - text: "fish right here" - span: (metadata $x).span - } - } +> try { + error make {msg: "foo" labels: [{text: one} {text: two}]} + } catch {|err| + error make {msg: "bar", inner: [($err.json | from json)]} } ``` + +## Notes +Errors are defined by an `error_record`, which is a record with a specific +structure. (`*`) indicates a required key: + + * `msg: string` (`*`) + * `code: string` + * `labels: oneof` + * `help: string` + * `url: string` + * `inner: table` + +The `labels` key allow for placing arrows to points in the code, optionally +using `span` to choose where it points (see `metadata`). `label` can be a table +(list of records) or a single record. There is an example of both in the +examples. Each record has the following structure: + + * `text: string` (`*`) + * `span: record` + +The `inner` table takes a list of `error_struct` records, and can be used to +have detail the errors that happened in a previous `try {} catch {}` statement +or can be manually created. To use them from a `catch` statement, see the +example below. \ No newline at end of file diff --git a/commands/docs/every.md b/commands/docs/every.md index 8c5574c7003..7d5c0fdc361 100644 --- a/commands/docs/every.md +++ b/commands/docs/every.md @@ -2,7 +2,7 @@ title: every categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Show (or skip) every n-th row, starting from the first one. usage: | diff --git a/commands/docs/exec.md b/commands/docs/exec.md index c15e602b62a..75d54a3dccf 100644 --- a/commands/docs/exec.md +++ b/commands/docs/exec.md @@ -2,7 +2,7 @@ title: exec categories: | system -version: 0.108.0 +version: 0.109.0 system: | Execute a command, replacing or exiting the current process, depending on platform. usage: | diff --git a/commands/docs/exit.md b/commands/docs/exit.md index 41efe0a7e08..a2e356f5406 100644 --- a/commands/docs/exit.md +++ b/commands/docs/exit.md @@ -2,7 +2,7 @@ title: exit categories: | shells -version: 0.108.0 +version: 0.109.0 shells: | Exit Nu. usage: | diff --git a/commands/docs/explain.md b/commands/docs/explain.md index 5535053f565..ca62f41f71c 100644 --- a/commands/docs/explain.md +++ b/commands/docs/explain.md @@ -2,7 +2,7 @@ title: explain categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Explain closure contents. usage: | diff --git a/commands/docs/explore.md b/commands/docs/explore.md index 6839bbc2db0..91df337dd00 100644 --- a/commands/docs/explore.md +++ b/commands/docs/explore.md @@ -2,7 +2,7 @@ title: explore categories: | viewers -version: 0.108.0 +version: 0.109.0 viewers: | Explore acts as a table pager, just like `less` does for text. usage: | @@ -60,4 +60,10 @@ Explore a JSON file, then save the last visited sub-structure to a file ``` ## Notes -Press `:` then `h` to get a help menu. \ No newline at end of file +Press `:` then `h` to get a help menu. + +## Subcommands: + +| name | description | type | +| -------------------------------------------------- | --------------------------------------------------------------------- | -------- | +| [`explore regex`](/commands/docs/explore_regex.md) | Launch a TUI to create and explore regular expressions interactively. | built-in | \ No newline at end of file diff --git a/commands/docs/explore_regex.md b/commands/docs/explore_regex.md new file mode 100644 index 00000000000..8ea38cf3cd7 --- /dev/null +++ b/commands/docs/explore_regex.md @@ -0,0 +1,45 @@ +--- +title: explore regex +categories: | + viewers +version: 0.109.0 +viewers: | + Launch a TUI to create and explore regular expressions interactively. +usage: | + Launch a TUI to create and explore regular expressions interactively. +editLink: false +contributors: false +--- + + +# `explore regex` for [viewers](/commands/categories/viewers.md) + +
Launch a TUI to create and explore regular expressions interactively.
+ +## Signature + +```> explore regex {flags} ``` + + +## Input/output types: + +| input | output | +| ------- | ------ | +| nothing | string | +| string | string | +## Examples + +Explore a regular expression interactively +```nu +> explore regex + +``` + +Explore a regular expression interactively with sample text +```nu +> open -r Cargo.toml | explore regex + +``` + +## Notes +Press `Ctrl-Q` to quit and provide constructed regular expression as the output. \ No newline at end of file diff --git a/commands/docs/export-env.md b/commands/docs/export-env.md index 55e4a1c9fe1..5c02ea676ee 100644 --- a/commands/docs/export-env.md +++ b/commands/docs/export-env.md @@ -2,7 +2,7 @@ title: export-env categories: | env -version: 0.108.0 +version: 0.109.0 env: | Run a block and preserve its environment in a current scope. usage: | diff --git a/commands/docs/export.md b/commands/docs/export.md index eac84d5bb47..cdf4ad10c09 100644 --- a/commands/docs/export.md +++ b/commands/docs/export.md @@ -2,7 +2,7 @@ title: export categories: | core -version: 0.108.0 +version: 0.109.0 core: | Export definitions or environment variables from a module. usage: | diff --git a/commands/docs/export_alias.md b/commands/docs/export_alias.md index 2e74da8be8e..df54fb1f334 100644 --- a/commands/docs/export_alias.md +++ b/commands/docs/export_alias.md @@ -2,7 +2,7 @@ title: export alias categories: | core -version: 0.108.0 +version: 0.109.0 core: | Alias a command (with optional flags) to a new name and export it from a module. usage: | diff --git a/commands/docs/export_const.md b/commands/docs/export_const.md index 0ec0ac00878..74ba8522b97 100644 --- a/commands/docs/export_const.md +++ b/commands/docs/export_const.md @@ -2,7 +2,7 @@ title: export const categories: | core -version: 0.108.0 +version: 0.109.0 core: | Use parse-time constant from a module and export them from this module. usage: | diff --git a/commands/docs/export_def.md b/commands/docs/export_def.md index ab349d44a57..8ae66b47bb0 100644 --- a/commands/docs/export_def.md +++ b/commands/docs/export_def.md @@ -2,7 +2,7 @@ title: export def categories: | core -version: 0.108.0 +version: 0.109.0 core: | Define a custom command and export it from a module. usage: | diff --git a/commands/docs/export_extern.md b/commands/docs/export_extern.md index 4a5b60d2db6..9df78a59b5c 100644 --- a/commands/docs/export_extern.md +++ b/commands/docs/export_extern.md @@ -2,7 +2,7 @@ title: export extern categories: | core -version: 0.108.0 +version: 0.109.0 core: | Define an extern and export it from a module. usage: | diff --git a/commands/docs/export_module.md b/commands/docs/export_module.md index 5b774a2f860..1f219c7303a 100644 --- a/commands/docs/export_module.md +++ b/commands/docs/export_module.md @@ -2,7 +2,7 @@ title: export module categories: | core -version: 0.108.0 +version: 0.109.0 core: | Export a custom module from a module. usage: | diff --git a/commands/docs/export_use.md b/commands/docs/export_use.md index 1f567afff00..7485a653074 100644 --- a/commands/docs/export_use.md +++ b/commands/docs/export_use.md @@ -2,7 +2,7 @@ title: export use categories: | core -version: 0.108.0 +version: 0.109.0 core: | Use definitions from a module and export them from this module. usage: | diff --git a/commands/docs/extern.md b/commands/docs/extern.md index a84bb4f290f..3c037d9cf54 100644 --- a/commands/docs/extern.md +++ b/commands/docs/extern.md @@ -2,7 +2,7 @@ title: extern categories: | core -version: 0.108.0 +version: 0.109.0 core: | Define a signature for an external command. usage: | diff --git a/commands/docs/fill.md b/commands/docs/fill.md index 6934d7c31d5..8424dfe98a7 100644 --- a/commands/docs/fill.md +++ b/commands/docs/fill.md @@ -2,7 +2,7 @@ title: fill categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Fill and Align. usage: | diff --git a/commands/docs/filter.md b/commands/docs/filter.md index 9556b9715ed..e8c0645d267 100644 --- a/commands/docs/filter.md +++ b/commands/docs/filter.md @@ -2,7 +2,7 @@ title: filter categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Filter values based on a predicate closure. usage: | diff --git a/commands/docs/find.md b/commands/docs/find.md index 2c2990644aa..634e96b20ff 100644 --- a/commands/docs/find.md +++ b/commands/docs/find.md @@ -2,7 +2,7 @@ title: find categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Searches terms in the input. usage: | @@ -29,6 +29,7 @@ contributors: false - `--columns, -c {list}`: column names to be searched - `--no-highlight, -n`: no-highlight mode: find without marking with ansi code - `--invert, -v`: invert the match + - `--rfind, -R`: search from the end of the string and only return the first match ## Parameters @@ -166,7 +167,10 @@ Find and highlight text in specific columns Find in a multi-line string ```nu -> "Violets are red\nAnd roses are blue\nWhen metamaterials\nAlter their hue" | find "ue" +> 'Violets are red +And roses are blue +When metamaterials +Alter their hue' | find ue ╭───┬────────────────────╮ │ 0 │ And roses are blue │ │ 1 │ Alter their hue │ @@ -176,9 +180,18 @@ Find in a multi-line string Find in a multi-line string without splitting the input into a list of lines ```nu -> "Violets are red\nAnd roses are blue\nWhen metamaterials\nAlter their hue" | find --multiline "ue" +> 'Violets are red +And roses are blue +When metamaterials +Alter their hue' | find --multiline ue Violets are red And roses are blue When metamaterials Alter their hue ``` + +Find and highlight the last occurrence in a string +```nu +> 'hello world hello' | find --rfind hello +hello world hello +``` diff --git a/commands/docs/first.md b/commands/docs/first.md index ebdeb65e864..118d5d6e20e 100644 --- a/commands/docs/first.md +++ b/commands/docs/first.md @@ -2,7 +2,7 @@ title: first categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Return only the first several rows of the input. Counterpart of `last`. Opposite of `skip`. usage: | diff --git a/commands/docs/flatten.md b/commands/docs/flatten.md index 50a60efb364..ffc3093b21c 100644 --- a/commands/docs/flatten.md +++ b/commands/docs/flatten.md @@ -2,7 +2,7 @@ title: flatten categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Flatten the table. usage: | diff --git a/commands/docs/for.md b/commands/docs/for.md index 10eaeb437f1..858a78e3c93 100644 --- a/commands/docs/for.md +++ b/commands/docs/for.md @@ -2,7 +2,7 @@ title: for categories: | core -version: 0.108.0 +version: 0.109.0 core: | Loop over a range. usage: | diff --git a/commands/docs/format.md b/commands/docs/format.md index 9efc134a9c8..661e4be1035 100644 --- a/commands/docs/format.md +++ b/commands/docs/format.md @@ -2,7 +2,7 @@ title: format categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Various commands for formatting data. usage: | diff --git a/commands/docs/format_bits.md b/commands/docs/format_bits.md index 186e9d4e280..3054a87e46d 100644 --- a/commands/docs/format_bits.md +++ b/commands/docs/format_bits.md @@ -2,7 +2,7 @@ title: format bits categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert value to a string of binary data represented by 0 and 1. usage: | diff --git a/commands/docs/format_date.md b/commands/docs/format_date.md index cc9e636827f..27b42207f18 100644 --- a/commands/docs/format_date.md +++ b/commands/docs/format_date.md @@ -2,7 +2,7 @@ title: format date categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Format a given date using a format string. usage: | diff --git a/commands/docs/format_duration.md b/commands/docs/format_duration.md index 56d2e106cdf..c0d0c06e7df 100644 --- a/commands/docs/format_duration.md +++ b/commands/docs/format_duration.md @@ -2,7 +2,7 @@ title: format duration categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Outputs duration with a specified unit of time. usage: | diff --git a/commands/docs/format_filesize.md b/commands/docs/format_filesize.md index c79fddc5588..3f29dc5f86c 100644 --- a/commands/docs/format_filesize.md +++ b/commands/docs/format_filesize.md @@ -2,7 +2,7 @@ title: format filesize categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Converts a column of filesizes to some specified format. usage: | diff --git a/commands/docs/format_number.md b/commands/docs/format_number.md index 3756c907070..0cc50dcb0e8 100644 --- a/commands/docs/format_number.md +++ b/commands/docs/format_number.md @@ -2,7 +2,7 @@ title: format number categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Format a number. usage: | diff --git a/commands/docs/format_pattern.md b/commands/docs/format_pattern.md index dc13452daa5..f78d5229cc4 100644 --- a/commands/docs/format_pattern.md +++ b/commands/docs/format_pattern.md @@ -2,7 +2,7 @@ title: format pattern categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Format columns into a string using a simple pattern. usage: | @@ -48,3 +48,9 @@ Print elements from some columns of a table ╰───┴────╯ ``` + +Escape braces by repeating them +```nu +> {start: 3, end: 5} | format pattern 'if {start} < {end} {{ "correct" }} else {{ "incorrect" }}' +if 3 < 5 { "correct" } else { "incorrect" } +``` diff --git a/commands/docs/from.md b/commands/docs/from.md index ecf61f644ee..c3af0e41604 100644 --- a/commands/docs/from.md +++ b/commands/docs/from.md @@ -2,7 +2,7 @@ title: from categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse a string or binary data into structured data. usage: | diff --git a/commands/docs/from_csv.md b/commands/docs/from_csv.md index f3c71fbe4fb..781102ddcb7 100644 --- a/commands/docs/from_csv.md +++ b/commands/docs/from_csv.md @@ -2,7 +2,7 @@ title: from csv categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse text as .csv and create table. usage: | diff --git a/commands/docs/from_eml.md b/commands/docs/from_eml.md index a62febbf510..2827bfa65b8 100644 --- a/commands/docs/from_eml.md +++ b/commands/docs/from_eml.md @@ -2,7 +2,7 @@ title: from eml categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse text as .eml and create record. usage: | @@ -16,13 +16,6 @@ contributors: false
Parse text as .eml and create record.
-::: warning This command requires a plugin -The `from eml` command resides in the `formats` plugin. -To use this command, you must install and register `nu_plugin_formats`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> from eml {flags} ``` diff --git a/commands/docs/from_ics.md b/commands/docs/from_ics.md index 420623b2ff9..378da3af17f 100644 --- a/commands/docs/from_ics.md +++ b/commands/docs/from_ics.md @@ -2,7 +2,7 @@ title: from ics categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse text as .ics and create table. usage: | @@ -16,13 +16,6 @@ contributors: false
Parse text as .ics and create table.
-::: warning This command requires a plugin -The `from ics` command resides in the `formats` plugin. -To use this command, you must install and register `nu_plugin_formats`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> from ics {flags} ``` @@ -39,10 +32,15 @@ Converts ics formatted string to table ```nu > 'BEGIN:VCALENDAR END:VCALENDAR' | from ics -╭───┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────╮ -│ # │ properties │ events │ alarms │ to-Dos │ journals │ free-busys │ timezones │ -├───┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┤ -│ 0 │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ -╰───┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────╯ +╭───┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────┬──────╮ +│ # │ properties │ events │ alarms │ to-Dos │ journals │ free-busys │ time │ +│ │ │ │ │ │ │ │ zone │ +│ │ │ │ │ │ │ │ s │ +├───┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────┼──────┤ +│ 0 │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 │ [lis │ +│ │ │ │ │ │ │ items] │ t 0 │ +│ │ │ │ │ │ │ │ item │ +│ │ │ │ │ │ │ │ s] │ +╰───┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────┴──────╯ ``` diff --git a/commands/docs/from_ini.md b/commands/docs/from_ini.md index 0f32d616f58..7f5001ba6bf 100644 --- a/commands/docs/from_ini.md +++ b/commands/docs/from_ini.md @@ -2,7 +2,7 @@ title: from ini categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse text as .ini and create table. usage: | @@ -16,13 +16,6 @@ contributors: false
Parse text as .ini and create table.
-::: warning This command requires a plugin -The `from ini` command resides in the `formats` plugin. -To use this command, you must install and register `nu_plugin_formats`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> from ini {flags} ``` diff --git a/commands/docs/from_json.md b/commands/docs/from_json.md index 14189d9ab85..1d305a377aa 100644 --- a/commands/docs/from_json.md +++ b/commands/docs/from_json.md @@ -2,7 +2,7 @@ title: from json categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert from json to structured data. usage: | diff --git a/commands/docs/from_msgpack.md b/commands/docs/from_msgpack.md index 5f8cfa79028..e1d59812506 100644 --- a/commands/docs/from_msgpack.md +++ b/commands/docs/from_msgpack.md @@ -2,7 +2,7 @@ title: from msgpack categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert MessagePack data into Nu values. usage: | diff --git a/commands/docs/from_msgpackz.md b/commands/docs/from_msgpackz.md index 27653006137..49e66dc2fb6 100644 --- a/commands/docs/from_msgpackz.md +++ b/commands/docs/from_msgpackz.md @@ -2,7 +2,7 @@ title: from msgpackz categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert brotli-compressed MessagePack data into Nu values. usage: | diff --git a/commands/docs/from_nuon.md b/commands/docs/from_nuon.md index ddc2924f0da..994657bf324 100644 --- a/commands/docs/from_nuon.md +++ b/commands/docs/from_nuon.md @@ -2,7 +2,7 @@ title: from nuon categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert from nuon to structured data. usage: | diff --git a/commands/docs/from_ods.md b/commands/docs/from_ods.md index 8b8e50cddf9..0f77c4b607e 100644 --- a/commands/docs/from_ods.md +++ b/commands/docs/from_ods.md @@ -2,7 +2,7 @@ title: from ods categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse OpenDocument Spreadsheet(.ods) data and create table. usage: | diff --git a/commands/docs/from_plist.md b/commands/docs/from_plist.md index 7e15770495c..f4588cc299b 100644 --- a/commands/docs/from_plist.md +++ b/commands/docs/from_plist.md @@ -2,7 +2,7 @@ title: from plist categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert plist to Nushell values usage: | @@ -16,13 +16,6 @@ contributors: false
Convert plist to Nushell values
-::: warning This command requires a plugin -The `from plist` command resides in the `formats` plugin. -To use this command, you must install and register `nu_plugin_formats`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> from plist {flags} ``` diff --git a/commands/docs/from_ssv.md b/commands/docs/from_ssv.md index 2965fd8d1f7..e58e6479745 100644 --- a/commands/docs/from_ssv.md +++ b/commands/docs/from_ssv.md @@ -2,7 +2,7 @@ title: from ssv categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse text as space-separated values and create a table. The default minimum number of spaces counted as a separator is 2. usage: | diff --git a/commands/docs/from_toml.md b/commands/docs/from_toml.md index e06fc3eaad6..22cd9165044 100644 --- a/commands/docs/from_toml.md +++ b/commands/docs/from_toml.md @@ -2,7 +2,7 @@ title: from toml categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse text as .toml and create record. usage: | diff --git a/commands/docs/from_tsv.md b/commands/docs/from_tsv.md index f0f2dd9a357..afa48240713 100644 --- a/commands/docs/from_tsv.md +++ b/commands/docs/from_tsv.md @@ -2,7 +2,7 @@ title: from tsv categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse text as .tsv and create table. usage: | diff --git a/commands/docs/from_url.md b/commands/docs/from_url.md index ee537344b37..f3be6ad6f15 100644 --- a/commands/docs/from_url.md +++ b/commands/docs/from_url.md @@ -2,7 +2,7 @@ title: from url categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse url-encoded string as a record. usage: | diff --git a/commands/docs/from_vcf.md b/commands/docs/from_vcf.md index 046005ce2e5..8e00409fac7 100644 --- a/commands/docs/from_vcf.md +++ b/commands/docs/from_vcf.md @@ -2,7 +2,7 @@ title: from vcf categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse text as .vcf and create table. usage: | @@ -16,13 +16,6 @@ contributors: false
Parse text as .vcf and create table.
-::: warning This command requires a plugin -The `from vcf` command resides in the `formats` plugin. -To use this command, you must install and register `nu_plugin_formats`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> from vcf {flags} ``` diff --git a/commands/docs/from_xlsx.md b/commands/docs/from_xlsx.md index f6966d8c378..1d067e3f93a 100644 --- a/commands/docs/from_xlsx.md +++ b/commands/docs/from_xlsx.md @@ -2,7 +2,7 @@ title: from xlsx categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse binary Excel(.xlsx) data and create table. usage: | diff --git a/commands/docs/from_xml.md b/commands/docs/from_xml.md index 299a9bb7058..d63a3c6e377 100644 --- a/commands/docs/from_xml.md +++ b/commands/docs/from_xml.md @@ -2,7 +2,7 @@ title: from xml categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse text as .xml and create record. usage: | @@ -40,19 +40,19 @@ Converts xml formatted string to record Event ' | from xml -╭────────────┬───────────────────────────────────────────────────────────────────────────╮ -│ tag │ note │ -│ attributes │ {record 0 fields} │ -│ │ ╭───┬──────────┬───────────────────┬────────────────────────────────────╮ │ -│ content │ │ # │ tag │ attributes │ content │ │ -│ │ ├───┼──────────┼───────────────────┼────────────────────────────────────┤ │ -│ │ │ 0 │ remember │ {record 0 fields} │ ╭───┬─────┬────────────┬─────────╮ │ │ -│ │ │ │ │ │ │ # │ tag │ attributes │ content │ │ │ -│ │ │ │ │ │ ├───┼─────┼────────────┼─────────┤ │ │ -│ │ │ │ │ │ │ 0 │ │ │ Event │ │ │ -│ │ │ │ │ │ ╰───┴─────┴────────────┴─────────╯ │ │ -│ │ ╰───┴──────────┴───────────────────┴────────────────────────────────────╯ │ -╰────────────┴───────────────────────────────────────────────────────────────────────────╯ +╭──────────────────────┬─────────────────────────────────────────────────────────────────────────────────────╮ +│ tag │ note │ +│ attributes │ {record 0 fields} │ +│ │ ╭───┬──────────┬───────────────────┬────────────────────────────────────╮ │ +│ content │ │ # │ tag │ attributes │ content │ │ +│ │ ├───┼──────────┼───────────────────┼────────────────────────────────────┤ │ +│ │ │ 0 │ remember │ {record 0 fields} │ ╭───┬─────┬────────────┬─────────╮ │ │ +│ │ │ │ │ │ │ # │ tag │ attributes │ content │ │ │ +│ │ │ │ │ │ ├───┼─────┼────────────┼─────────┤ │ │ +│ │ │ │ │ │ │ 0 │ │ │ Event │ │ │ +│ │ │ │ │ │ ╰───┴─────┴────────────┴─────────╯ │ │ +│ │ ╰───┴──────────┴───────────────────┴────────────────────────────────────╯ │ +╰──────────────────────┴─────────────────────────────────────────────────────────────────────────────────────╯ ``` ## Notes diff --git a/commands/docs/from_yaml.md b/commands/docs/from_yaml.md index b82a95ec0b7..595de3879b3 100644 --- a/commands/docs/from_yaml.md +++ b/commands/docs/from_yaml.md @@ -2,7 +2,7 @@ title: from yaml categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse text as .yaml/.yml and create table. usage: | diff --git a/commands/docs/from_yml.md b/commands/docs/from_yml.md index bc55bcf7e08..e3c390413dd 100644 --- a/commands/docs/from_yml.md +++ b/commands/docs/from_yml.md @@ -2,7 +2,7 @@ title: from yml categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Parse text as .yaml/.yml and create table. usage: | diff --git a/commands/docs/generate.md b/commands/docs/generate.md index 58e70896cd3..9d23ee1a770 100644 --- a/commands/docs/generate.md +++ b/commands/docs/generate.md @@ -2,7 +2,7 @@ title: generate categories: | generators -version: 0.108.0 +version: 0.109.0 generators: | Generate a list of values by successively invoking a closure. usage: | diff --git a/commands/docs/get.md b/commands/docs/get.md index 5a0bafef7b8..8ae8219e7ae 100644 --- a/commands/docs/get.md +++ b/commands/docs/get.md @@ -2,7 +2,7 @@ title: get categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Extract data using a cell path. usage: | diff --git a/commands/docs/glob.md b/commands/docs/glob.md index 7ee12bea1ba..132481d51b9 100644 --- a/commands/docs/glob.md +++ b/commands/docs/glob.md @@ -2,7 +2,7 @@ title: glob categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Creates a list of files and/or folders based on the glob pattern provided. usage: | diff --git a/commands/docs/grid.md b/commands/docs/grid.md index f83dcca3f67..a3425076b9d 100644 --- a/commands/docs/grid.md +++ b/commands/docs/grid.md @@ -2,7 +2,7 @@ title: grid categories: | viewers -version: 0.108.0 +version: 0.109.0 viewers: | Renders the output to a textual terminal grid. usage: | diff --git a/commands/docs/group-by.md b/commands/docs/group-by.md index 2931c0e48dc..ea6c415dd82 100644 --- a/commands/docs/group-by.md +++ b/commands/docs/group-by.md @@ -2,7 +2,7 @@ title: group-by categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Splits a list or table into groups, and returns a record containing those groups. usage: | @@ -183,6 +183,30 @@ Group items by multiple columns' values ``` +Group items by column and delete the original +```nu +> [ + [name, lang, year]; + [andres, rb, "2019"], + [jt, rs, "2019"], + [storm, rs, "2021"] + ] + | group-by lang | update cells { reject lang } +╭────┬───────────────────────╮ +│ │ ╭───┬────────┬──────╮ │ +│ rb │ │ # │ name │ year │ │ +│ │ ├───┼────────┼──────┤ │ +│ │ │ 0 │ andres │ 2019 │ │ +│ │ ╰───┴────────┴──────╯ │ +│ │ ╭───┬───────┬──────╮ │ +│ rs │ │ # │ name │ year │ │ +│ │ ├───┼───────┼──────┤ │ +│ │ │ 0 │ jt │ 2019 │ │ +│ │ │ 1 │ storm │ 2021 │ │ +│ │ ╰───┴───────┴──────╯ │ +╰────┴───────────────────────╯ +``` + ## Notes the group-by command makes some assumptions: - if the input data is not a string, the grouper will convert the key to string but the values will remain in their original format. e.g. with bools, "true" and true would be in the same group (see example). diff --git a/commands/docs/gstat.md b/commands/docs/gstat.md index f1aa48fb542..dad6e18097f 100644 --- a/commands/docs/gstat.md +++ b/commands/docs/gstat.md @@ -2,7 +2,7 @@ title: gstat categories: | prompt -version: 0.108.0 +version: 0.109.0 prompt: | Get the git status of a repo usage: | @@ -16,13 +16,6 @@ contributors: false
Get the git status of a repo
-::: warning This command requires a plugin -The `gstat` command resides in the `gstat` plugin. -To use this command, you must install and register `nu_plugin_gstat`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> gstat {flags} (path)``` diff --git a/commands/docs/hash.md b/commands/docs/hash.md index f588446ab74..ced4115c433 100644 --- a/commands/docs/hash.md +++ b/commands/docs/hash.md @@ -2,7 +2,7 @@ title: hash categories: | hash -version: 0.108.0 +version: 0.109.0 hash: | Apply hash function. usage: | diff --git a/commands/docs/hash_md5.md b/commands/docs/hash_md5.md index f8dbd4e24b2..4ad46df87dd 100644 --- a/commands/docs/hash_md5.md +++ b/commands/docs/hash_md5.md @@ -2,7 +2,7 @@ title: hash md5 categories: | hash -version: 0.108.0 +version: 0.109.0 hash: | Hash a value using the md5 hash algorithm. usage: | diff --git a/commands/docs/hash_sha256.md b/commands/docs/hash_sha256.md index d7dcbdab314..3d73a5f2d1e 100644 --- a/commands/docs/hash_sha256.md +++ b/commands/docs/hash_sha256.md @@ -2,7 +2,7 @@ title: hash sha256 categories: | hash -version: 0.108.0 +version: 0.109.0 hash: | Hash a value using the sha256 hash algorithm. usage: | diff --git a/commands/docs/headers.md b/commands/docs/headers.md index 1056cb3d9f4..69c762c5f16 100644 --- a/commands/docs/headers.md +++ b/commands/docs/headers.md @@ -2,7 +2,7 @@ title: headers categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Use the first row of the table as column names. usage: | diff --git a/commands/docs/help.md b/commands/docs/help.md index 107ca83ecf3..6af94ee9f5f 100644 --- a/commands/docs/help.md +++ b/commands/docs/help.md @@ -2,7 +2,7 @@ title: help categories: | core -version: 0.108.0 +version: 0.109.0 core: | Display help information about different parts of Nushell. usage: | diff --git a/commands/docs/help_aliases.md b/commands/docs/help_aliases.md index 538b02891cb..138f781f233 100644 --- a/commands/docs/help_aliases.md +++ b/commands/docs/help_aliases.md @@ -2,7 +2,7 @@ title: help aliases categories: | core -version: 0.108.0 +version: 0.109.0 core: | Show help on nushell aliases. usage: | diff --git a/commands/docs/help_commands.md b/commands/docs/help_commands.md index 97842d2226f..e260f4aa64b 100644 --- a/commands/docs/help_commands.md +++ b/commands/docs/help_commands.md @@ -2,7 +2,7 @@ title: help commands categories: | core -version: 0.108.0 +version: 0.109.0 core: | Show help on nushell commands. usage: | diff --git a/commands/docs/help_escapes.md b/commands/docs/help_escapes.md index ba3ccc09db8..b758089e2a4 100644 --- a/commands/docs/help_escapes.md +++ b/commands/docs/help_escapes.md @@ -2,7 +2,7 @@ title: help escapes categories: | core -version: 0.108.0 +version: 0.109.0 core: | Show help on nushell string escapes. usage: | diff --git a/commands/docs/help_externs.md b/commands/docs/help_externs.md index d1694d472c0..41f5ce89536 100644 --- a/commands/docs/help_externs.md +++ b/commands/docs/help_externs.md @@ -2,7 +2,7 @@ title: help externs categories: | core -version: 0.108.0 +version: 0.109.0 core: | Show help on nushell externs. usage: | diff --git a/commands/docs/help_modules.md b/commands/docs/help_modules.md index bfe3dac7f16..bf04922b99f 100644 --- a/commands/docs/help_modules.md +++ b/commands/docs/help_modules.md @@ -2,7 +2,7 @@ title: help modules categories: | core -version: 0.108.0 +version: 0.109.0 core: | Show help on nushell modules. usage: | diff --git a/commands/docs/help_operators.md b/commands/docs/help_operators.md index 39aacc915ba..f7d44dd0e59 100644 --- a/commands/docs/help_operators.md +++ b/commands/docs/help_operators.md @@ -2,7 +2,7 @@ title: help operators categories: | core -version: 0.108.0 +version: 0.109.0 core: | Show help on nushell operators. usage: | diff --git a/commands/docs/help_pipe-and-redirect.md b/commands/docs/help_pipe-and-redirect.md index e95f3bfde19..cc904598477 100644 --- a/commands/docs/help_pipe-and-redirect.md +++ b/commands/docs/help_pipe-and-redirect.md @@ -2,7 +2,7 @@ title: help pipe-and-redirect categories: | core -version: 0.108.0 +version: 0.109.0 core: | Show help on nushell pipes and redirects. usage: | diff --git a/commands/docs/hide-env.md b/commands/docs/hide-env.md index 283cdb0f04c..a1cde2f41d6 100644 --- a/commands/docs/hide-env.md +++ b/commands/docs/hide-env.md @@ -2,7 +2,7 @@ title: hide-env categories: | core -version: 0.108.0 +version: 0.109.0 core: | Hide environment variables in the current scope. usage: | diff --git a/commands/docs/hide.md b/commands/docs/hide.md index 67638e51483..b48811545d9 100644 --- a/commands/docs/hide.md +++ b/commands/docs/hide.md @@ -2,7 +2,7 @@ title: hide categories: | core -version: 0.108.0 +version: 0.109.0 core: | Hide definitions in the current scope. usage: | diff --git a/commands/docs/histogram.md b/commands/docs/histogram.md index f8f480227fb..989eec667e2 100644 --- a/commands/docs/histogram.md +++ b/commands/docs/histogram.md @@ -2,7 +2,7 @@ title: histogram categories: | chart -version: 0.108.0 +version: 0.109.0 chart: | Creates a new table with a histogram based on the column name passed in. usage: | @@ -52,12 +52,13 @@ Compute a histogram for the types of files, with frequency column named freq Compute a histogram for a list of numbers ```nu > [1 2 1] | histogram -╭───┬───────┬───────┬──────────┬────────────┬────────────────────────────────────────────────────────────────────╮ -│ # │ value │ count │ quantile │ percentage │ frequency │ -├───┼───────┼───────┼──────────┼────────────┼────────────────────────────────────────────────────────────────────┤ -│ 0 │ 1 │ 2 │ 0.67 │ 66.67% │ ****************************************************************** │ -│ 1 │ 2 │ 1 │ 0.33 │ 33.33% │ ********************************* │ -╰───┴───────┴───────┴──────────┴────────────┴────────────────────────────────────────────────────────────────────╯ +╭───┬───────┬───────┬──────────┬────────────┬────────────────────────────────────────────────────────────────╮ +│ # │ value │ count │ quantile │ percentage │ frequency │ +├───┼───────┼───────┼──────────┼────────────┼────────────────────────────────────────────────────────────────┤ +│ 0 │ 1 │ 2 │ 0.67 │ 66.67% │ ************************************************************** │ +│ │ │ │ │ │ **** │ +│ 1 │ 2 │ 1 │ 0.33 │ 33.33% │ ********************************* │ +╰───┴───────┴───────┴──────────┴────────────┴────────────────────────────────────────────────────────────────╯ ``` diff --git a/commands/docs/history.md b/commands/docs/history.md index 6d91b675160..410436a1cee 100644 --- a/commands/docs/history.md +++ b/commands/docs/history.md @@ -2,7 +2,7 @@ title: history categories: | history -version: 0.108.0 +version: 0.109.0 history: | Get the command history. usage: | diff --git a/commands/docs/history_import.md b/commands/docs/history_import.md index 3c90fe08976..bd8af8ad571 100644 --- a/commands/docs/history_import.md +++ b/commands/docs/history_import.md @@ -2,7 +2,7 @@ title: history import categories: | history -version: 0.108.0 +version: 0.109.0 history: | Import command line history. usage: | diff --git a/commands/docs/history_session.md b/commands/docs/history_session.md index bb32967ef07..125a7a4d5a4 100644 --- a/commands/docs/history_session.md +++ b/commands/docs/history_session.md @@ -2,7 +2,7 @@ title: history session categories: | history -version: 0.108.0 +version: 0.109.0 history: | Get the command history session. usage: | diff --git a/commands/docs/http.md b/commands/docs/http.md index 4117edf3b12..34944067a4b 100644 --- a/commands/docs/http.md +++ b/commands/docs/http.md @@ -2,7 +2,7 @@ title: http categories: | network -version: 0.108.0 +version: 0.109.0 network: | Various commands for working with http methods. usage: | diff --git a/commands/docs/http_delete.md b/commands/docs/http_delete.md index 638321472a8..fa29ae99881 100644 --- a/commands/docs/http_delete.md +++ b/commands/docs/http_delete.md @@ -2,7 +2,7 @@ title: http delete categories: | network -version: 0.108.0 +version: 0.109.0 network: | Delete the specified resource. usage: | @@ -33,6 +33,7 @@ contributors: false - `--full, -f`: returns the full response instead of only the body - `--allow-errors, -e`: do not fail if the server returns an error code - `--redirect-mode, -R {string}`: What to do when encountering redirects. Default: 'follow'. Valid options: 'follow' ('f'), 'manual' ('m'), 'error' ('e'). + - `--unix-socket, -U {path}`: Connect to the specified Unix socket instead of using TCP ## Parameters diff --git a/commands/docs/http_get.md b/commands/docs/http_get.md index 6261a77317c..b361449d97c 100644 --- a/commands/docs/http_get.md +++ b/commands/docs/http_get.md @@ -2,7 +2,7 @@ title: http get categories: | network -version: 0.108.0 +version: 0.109.0 network: | Fetch the contents from a URL. usage: | @@ -31,6 +31,7 @@ contributors: false - `--full, -f`: returns the full response instead of only the body - `--allow-errors, -e`: do not fail if the server returns an error code - `--redirect-mode, -R {string}`: What to do when encountering redirects. Default: 'follow'. Valid options: 'follow' ('f'), 'manual' ('m'), 'error' ('e'). + - `--unix-socket, -U {path}`: Connect to the specified Unix socket instead of using TCP ## Parameters @@ -80,5 +81,11 @@ Check response status while streaming ``` +Get from Docker daemon via Unix socket +```nu +> http get --unix-socket /var/run/docker.sock http://localhost/containers/json + +``` + ## Notes Performs HTTP GET operation. \ No newline at end of file diff --git a/commands/docs/http_head.md b/commands/docs/http_head.md index 21da91fc8b8..e1971a5c198 100644 --- a/commands/docs/http_head.md +++ b/commands/docs/http_head.md @@ -2,7 +2,7 @@ title: http head categories: | network -version: 0.108.0 +version: 0.109.0 network: | Get the headers from a URL. usage: | @@ -28,6 +28,7 @@ contributors: false - `--headers, -H {any}`: custom headers you want to add - `--insecure, -k`: allow insecure server connections when using SSL - `--redirect-mode, -R {string}`: What to do when encountering redirects. Default: 'follow'. Valid options: 'follow' ('f'), 'manual' ('m'), 'error' ('e'). + - `--unix-socket, -U {path}`: Connect to the specified Unix socket instead of using TCP ## Parameters diff --git a/commands/docs/http_options.md b/commands/docs/http_options.md index d667cb4220b..4f21f9c3902 100644 --- a/commands/docs/http_options.md +++ b/commands/docs/http_options.md @@ -2,7 +2,7 @@ title: http options categories: | network -version: 0.108.0 +version: 0.109.0 network: | Requests permitted communication options for a given URL. usage: | @@ -28,6 +28,7 @@ contributors: false - `--headers, -H {any}`: custom headers you want to add - `--insecure, -k`: allow insecure server connections when using SSL - `--allow-errors, -e`: do not fail if the server returns an error code + - `--unix-socket, -U {path}`: Connect to the specified Unix socket instead of using TCP ## Parameters diff --git a/commands/docs/http_patch.md b/commands/docs/http_patch.md index 650eced606d..f648f93396b 100644 --- a/commands/docs/http_patch.md +++ b/commands/docs/http_patch.md @@ -2,7 +2,7 @@ title: http patch categories: | network -version: 0.108.0 +version: 0.109.0 network: | Patch a body to a URL. usage: | @@ -32,6 +32,7 @@ contributors: false - `--full, -f`: returns the full response instead of only the body - `--allow-errors, -e`: do not fail if the server returns an error code - `--redirect-mode, -R {string}`: What to do when encountering redirects. Default: 'follow'. Valid options: 'follow' ('f'), 'manual' ('m'), 'error' ('e'). + - `--unix-socket, -U {path}`: Connect to the specified Unix socket instead of using TCP ## Parameters diff --git a/commands/docs/http_post.md b/commands/docs/http_post.md index a19d518420b..677252c1834 100644 --- a/commands/docs/http_post.md +++ b/commands/docs/http_post.md @@ -2,7 +2,7 @@ title: http post categories: | network -version: 0.108.0 +version: 0.109.0 network: | Post a body to a URL. usage: | @@ -32,6 +32,7 @@ contributors: false - `--full, -f`: returns the full response instead of only the body - `--allow-errors, -e`: do not fail if the server returns an error code - `--redirect-mode, -R {string}`: What to do when encountering redirects. Default: 'follow'. Valid options: 'follow' ('f'), 'manual' ('m'), 'error' ('e'). + - `--unix-socket, -U {path}`: Connect to the specified Unix socket instead of using TCP ## Parameters diff --git a/commands/docs/http_put.md b/commands/docs/http_put.md index edacfb7e762..4fd7214bd76 100644 --- a/commands/docs/http_put.md +++ b/commands/docs/http_put.md @@ -2,7 +2,7 @@ title: http put categories: | network -version: 0.108.0 +version: 0.109.0 network: | Put a body to a URL. usage: | @@ -32,6 +32,7 @@ contributors: false - `--full, -f`: returns the full response instead of only the body - `--allow-errors, -e`: do not fail if the server returns an error code - `--redirect-mode, -R {string}`: What to do when encountering redirects. Default: 'follow'. Valid options: 'follow' ('f'), 'manual' ('m'), 'error' ('e'). + - `--unix-socket, -U {path}`: Connect to the specified Unix socket instead of using TCP ## Parameters diff --git a/commands/docs/if.md b/commands/docs/if.md index 4e765c733c5..16394c78200 100644 --- a/commands/docs/if.md +++ b/commands/docs/if.md @@ -2,7 +2,7 @@ title: if categories: | core -version: 0.108.0 +version: 0.109.0 core: | Conditionally run a block. usage: | diff --git a/commands/docs/ignore.md b/commands/docs/ignore.md index 115b49ee1ae..13104cc1e04 100644 --- a/commands/docs/ignore.md +++ b/commands/docs/ignore.md @@ -2,7 +2,7 @@ title: ignore categories: | core -version: 0.108.0 +version: 0.109.0 core: | Ignore the output of the previous command in the pipeline. usage: | diff --git a/commands/docs/inc.md b/commands/docs/inc.md index 70833600dfa..2cc4f59cad0 100644 --- a/commands/docs/inc.md +++ b/commands/docs/inc.md @@ -2,7 +2,7 @@ title: inc categories: | default -version: 0.108.0 +version: 0.109.0 default: | Increment a value or version. Optionally use the column of a table. usage: | @@ -16,13 +16,6 @@ contributors: false
Increment a value or version. Optionally use the column of a table.
-::: warning This command requires a plugin -The `inc` command resides in the `inc` plugin. -To use this command, you must install and register `nu_plugin_inc`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> inc {flags} (cell_path)``` diff --git a/commands/docs/input.md b/commands/docs/input.md index 16e4b7ed52c..e32826b3219 100644 --- a/commands/docs/input.md +++ b/commands/docs/input.md @@ -2,7 +2,7 @@ title: input categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Get input from the user. usage: | diff --git a/commands/docs/input_list.md b/commands/docs/input_list.md index 5b137787117..5e4cda7e3e2 100644 --- a/commands/docs/input_list.md +++ b/commands/docs/input_list.md @@ -2,7 +2,7 @@ title: input list categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Interactive list selection. usage: | diff --git a/commands/docs/input_listen.md b/commands/docs/input_listen.md index 36212015569..75e8ebb0892 100644 --- a/commands/docs/input_listen.md +++ b/commands/docs/input_listen.md @@ -2,7 +2,7 @@ title: input listen categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Listen for user interface event. usage: | diff --git a/commands/docs/insert.md b/commands/docs/insert.md index 37271ac32af..15c2c16ee59 100644 --- a/commands/docs/insert.md +++ b/commands/docs/insert.md @@ -2,7 +2,7 @@ title: insert categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Insert a new column, using an expression or closure to create each row's values. usage: | diff --git a/commands/docs/inspect.md b/commands/docs/inspect.md index 23410d079f0..53c980b3287 100644 --- a/commands/docs/inspect.md +++ b/commands/docs/inspect.md @@ -2,7 +2,7 @@ title: inspect categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Inspect pipeline results while running a pipeline. usage: | diff --git a/commands/docs/interleave.md b/commands/docs/interleave.md index 7c5ef22a73a..5f18c684967 100644 --- a/commands/docs/interleave.md +++ b/commands/docs/interleave.md @@ -2,7 +2,7 @@ title: interleave categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Read multiple streams in parallel and combine them into one stream. usage: | diff --git a/commands/docs/into.md b/commands/docs/into.md index 3c6ff26fc59..51f4558367b 100644 --- a/commands/docs/into.md +++ b/commands/docs/into.md @@ -2,7 +2,7 @@ title: into categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Commands to convert data from one type to another. usage: | diff --git a/commands/docs/into_binary.md b/commands/docs/into_binary.md index 64891eee841..bdcc7ae6791 100644 --- a/commands/docs/into_binary.md +++ b/commands/docs/into_binary.md @@ -2,7 +2,7 @@ title: into binary categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert value to a binary primitive. usage: | diff --git a/commands/docs/into_bool.md b/commands/docs/into_bool.md index 2d900814540..1119c06448d 100644 --- a/commands/docs/into_bool.md +++ b/commands/docs/into_bool.md @@ -2,7 +2,7 @@ title: into bool categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert value to boolean. usage: | diff --git a/commands/docs/into_cell-path.md b/commands/docs/into_cell-path.md index e6d1b6e1527..1fe35d65c57 100644 --- a/commands/docs/into_cell-path.md +++ b/commands/docs/into_cell-path.md @@ -2,7 +2,7 @@ title: into cell-path categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert value to a cell-path. usage: | diff --git a/commands/docs/into_datetime.md b/commands/docs/into_datetime.md index b476d8a41e8..6022dd29b79 100644 --- a/commands/docs/into_datetime.md +++ b/commands/docs/into_datetime.md @@ -2,7 +2,7 @@ title: into datetime categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert text or timestamp into a datetime. usage: | @@ -68,7 +68,7 @@ Sat, 27 Feb 2021 13:55:40 +0000 (4 years ago) Convert non-standard timestamp string, without timezone offset, to datetime with custom formatting ```nu > '16.11.1984 8:00 am' | into datetime --format '%d.%m.%Y %H:%M %P' -Fri, 16 Nov 1984 08:00:00 +0800 (40 years ago) +Fri, 16 Nov 1984 08:00:00 +0800 (41 years ago) ``` Convert nanosecond-precision unix timestamp to a datetime with offset from UTC @@ -92,7 +92,7 @@ Sat, 27 Feb 2021 13:55:40 +0000 (4 years ago) Using a record as input ```nu > {year: 2025, month: 3, day: 30, hour: 12, minute: 15, second: 59, timezone: '+02:00'} | into datetime -Sun, 30 Mar 2025 10:15:59 +0000 (6 months ago) +Sun, 30 Mar 2025 10:15:59 +0000 (7 months ago) ``` Convert list of timestamps to datetimes diff --git a/commands/docs/into_duration.md b/commands/docs/into_duration.md index f62cda5532a..ab52ea9cf30 100644 --- a/commands/docs/into_duration.md +++ b/commands/docs/into_duration.md @@ -2,7 +2,7 @@ title: into duration categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert value to duration. usage: | diff --git a/commands/docs/into_filesize.md b/commands/docs/into_filesize.md index ed988244a09..45ccaeb10be 100644 --- a/commands/docs/into_filesize.md +++ b/commands/docs/into_filesize.md @@ -2,7 +2,7 @@ title: into filesize categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert value to filesize. usage: | diff --git a/commands/docs/into_float.md b/commands/docs/into_float.md index 1c2f6507f7e..c0b14e08404 100644 --- a/commands/docs/into_float.md +++ b/commands/docs/into_float.md @@ -2,7 +2,7 @@ title: into float categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert data into floating point number. usage: | diff --git a/commands/docs/into_glob.md b/commands/docs/into_glob.md index c56c055aeca..c640fa8712b 100644 --- a/commands/docs/into_glob.md +++ b/commands/docs/into_glob.md @@ -2,7 +2,7 @@ title: into glob categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert value to glob. usage: | diff --git a/commands/docs/into_int.md b/commands/docs/into_int.md index 53ad006b064..0d79a15eb06 100644 --- a/commands/docs/into_int.md +++ b/commands/docs/into_int.md @@ -2,7 +2,7 @@ title: into int categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert value to integer. usage: | diff --git a/commands/docs/into_record.md b/commands/docs/into_record.md index 168aad9497c..aa3443b5578 100644 --- a/commands/docs/into_record.md +++ b/commands/docs/into_record.md @@ -2,7 +2,7 @@ title: into record categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert value to record. usage: | diff --git a/commands/docs/into_sqlite.md b/commands/docs/into_sqlite.md index e411b459cf5..ccb5ec9e712 100644 --- a/commands/docs/into_sqlite.md +++ b/commands/docs/into_sqlite.md @@ -2,7 +2,7 @@ title: into sqlite categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert table into a SQLite database. usage: | diff --git a/commands/docs/into_string.md b/commands/docs/into_string.md index 7f9b2a0de35..c8c05bf6ef7 100644 --- a/commands/docs/into_string.md +++ b/commands/docs/into_string.md @@ -2,7 +2,7 @@ title: into string categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert value to string. usage: | diff --git a/commands/docs/into_value.md b/commands/docs/into_value.md index 7c8b498fcba..32565095783 100644 --- a/commands/docs/into_value.md +++ b/commands/docs/into_value.md @@ -2,7 +2,7 @@ title: into value categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Convert custom values into base values. usage: | diff --git a/commands/docs/is-admin.md b/commands/docs/is-admin.md index 7242402def4..8cd3ccb4744 100644 --- a/commands/docs/is-admin.md +++ b/commands/docs/is-admin.md @@ -2,7 +2,7 @@ title: is-admin categories: | core -version: 0.108.0 +version: 0.109.0 core: | Check if nushell is running with administrator or root privileges. usage: | diff --git a/commands/docs/is-empty.md b/commands/docs/is-empty.md index 447d540a06d..ffa12cac698 100644 --- a/commands/docs/is-empty.md +++ b/commands/docs/is-empty.md @@ -2,7 +2,7 @@ title: is-empty categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Check for empty values. usage: | diff --git a/commands/docs/is-not-empty.md b/commands/docs/is-not-empty.md index c22864da33a..1f2ae377511 100644 --- a/commands/docs/is-not-empty.md +++ b/commands/docs/is-not-empty.md @@ -2,7 +2,7 @@ title: is-not-empty categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Check for non-empty values. usage: | diff --git a/commands/docs/is-terminal.md b/commands/docs/is-terminal.md index 9a0476a2801..c4e5fb18eb0 100644 --- a/commands/docs/is-terminal.md +++ b/commands/docs/is-terminal.md @@ -2,7 +2,7 @@ title: is-terminal categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Check if stdin, stdout, or stderr is a terminal. usage: | diff --git a/commands/docs/items.md b/commands/docs/items.md index 579fb43aeed..b93989a7ff6 100644 --- a/commands/docs/items.md +++ b/commands/docs/items.md @@ -2,7 +2,7 @@ title: items categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Given a record, iterate on each pair of column name and associated value. usage: | @@ -43,4 +43,4 @@ Iterate over each key-value pair of a record ``` ## Notes -This is a the fusion of `columns`, `values` and `each`. \ No newline at end of file +This is a fusion of `columns`, `values` and `each`. \ No newline at end of file diff --git a/commands/docs/job.md b/commands/docs/job.md index 88458ee9712..8bece84979c 100644 --- a/commands/docs/job.md +++ b/commands/docs/job.md @@ -2,7 +2,7 @@ title: job categories: | experimental -version: 0.108.0 +version: 0.109.0 experimental: | Various commands for working with background jobs. usage: | diff --git a/commands/docs/job_flush.md b/commands/docs/job_flush.md index 01c3df13809..18638bfdb2d 100644 --- a/commands/docs/job_flush.md +++ b/commands/docs/job_flush.md @@ -2,7 +2,7 @@ title: job flush categories: | experimental -version: 0.108.0 +version: 0.109.0 experimental: | Clear this job's mailbox. usage: | diff --git a/commands/docs/job_id.md b/commands/docs/job_id.md index 25f5e361caf..cee9f2f134d 100644 --- a/commands/docs/job_id.md +++ b/commands/docs/job_id.md @@ -2,7 +2,7 @@ title: job id categories: | experimental -version: 0.108.0 +version: 0.109.0 experimental: | Get id of current job. usage: | diff --git a/commands/docs/job_kill.md b/commands/docs/job_kill.md index 50bf0441e44..7743ba9e23d 100644 --- a/commands/docs/job_kill.md +++ b/commands/docs/job_kill.md @@ -2,7 +2,7 @@ title: job kill categories: | experimental -version: 0.108.0 +version: 0.109.0 experimental: | Kill a background job. usage: | diff --git a/commands/docs/job_list.md b/commands/docs/job_list.md index 5c555a3482f..765bcd05e52 100644 --- a/commands/docs/job_list.md +++ b/commands/docs/job_list.md @@ -2,7 +2,7 @@ title: job list categories: | experimental -version: 0.108.0 +version: 0.109.0 experimental: | List background jobs. usage: | diff --git a/commands/docs/job_recv.md b/commands/docs/job_recv.md index 736d15fabeb..3aa31abd6aa 100644 --- a/commands/docs/job_recv.md +++ b/commands/docs/job_recv.md @@ -2,7 +2,7 @@ title: job recv categories: | experimental -version: 0.108.0 +version: 0.109.0 experimental: | Read a message from the mailbox. usage: | diff --git a/commands/docs/job_send.md b/commands/docs/job_send.md index 02e10d20c8e..81811839307 100644 --- a/commands/docs/job_send.md +++ b/commands/docs/job_send.md @@ -2,7 +2,7 @@ title: job send categories: | experimental -version: 0.108.0 +version: 0.109.0 experimental: | Send a message to the mailbox of a job. usage: | diff --git a/commands/docs/job_spawn.md b/commands/docs/job_spawn.md index e7be075cff5..0186106472c 100644 --- a/commands/docs/job_spawn.md +++ b/commands/docs/job_spawn.md @@ -2,7 +2,7 @@ title: job spawn categories: | experimental -version: 0.108.0 +version: 0.109.0 experimental: | Spawn a background job and retrieve its ID. usage: | diff --git a/commands/docs/job_tag.md b/commands/docs/job_tag.md index 49bc3507d0d..1655084f27d 100644 --- a/commands/docs/job_tag.md +++ b/commands/docs/job_tag.md @@ -2,7 +2,7 @@ title: job tag categories: | experimental -version: 0.108.0 +version: 0.109.0 experimental: | Add a description tag to a background job. usage: | diff --git a/commands/docs/job_unfreeze.md b/commands/docs/job_unfreeze.md index 3eb126ab7d5..85e72311609 100644 --- a/commands/docs/job_unfreeze.md +++ b/commands/docs/job_unfreeze.md @@ -2,7 +2,7 @@ title: job unfreeze categories: | experimental -version: 0.108.0 +version: 0.109.0 experimental: | Unfreeze a frozen process job in foreground. usage: | diff --git a/commands/docs/join.md b/commands/docs/join.md index c567a2b291c..6d5e7489ab0 100644 --- a/commands/docs/join.md +++ b/commands/docs/join.md @@ -2,7 +2,7 @@ title: join categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Join two tables. usage: | diff --git a/commands/docs/keybindings.md b/commands/docs/keybindings.md index 9426b397f2c..d8fe69dc7b6 100644 --- a/commands/docs/keybindings.md +++ b/commands/docs/keybindings.md @@ -2,7 +2,7 @@ title: keybindings categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Keybindings related commands. usage: | diff --git a/commands/docs/keybindings_default.md b/commands/docs/keybindings_default.md index e0e225961c1..e7ad9284f5b 100644 --- a/commands/docs/keybindings_default.md +++ b/commands/docs/keybindings_default.md @@ -2,7 +2,7 @@ title: keybindings default categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | List default keybindings. usage: | diff --git a/commands/docs/keybindings_list.md b/commands/docs/keybindings_list.md index c417d5ff855..68a3b8d4cff 100644 --- a/commands/docs/keybindings_list.md +++ b/commands/docs/keybindings_list.md @@ -2,7 +2,7 @@ title: keybindings list categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | List available options that can be used to create keybindings. usage: | diff --git a/commands/docs/keybindings_listen.md b/commands/docs/keybindings_listen.md index 3290dc65bd6..cdf5a3303a0 100644 --- a/commands/docs/keybindings_listen.md +++ b/commands/docs/keybindings_listen.md @@ -2,7 +2,7 @@ title: keybindings listen categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Get input from the user. usage: | diff --git a/commands/docs/kill.md b/commands/docs/kill.md index 807f95a9d06..27fcd47200f 100644 --- a/commands/docs/kill.md +++ b/commands/docs/kill.md @@ -2,7 +2,7 @@ title: kill categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Kill a process using the process id. usage: | diff --git a/commands/docs/last.md b/commands/docs/last.md index 46f4365969d..b7957a65e56 100644 --- a/commands/docs/last.md +++ b/commands/docs/last.md @@ -2,7 +2,7 @@ title: last categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Return only the last several rows of the input. Counterpart of `first`. Opposite of `drop`. usage: | diff --git a/commands/docs/length.md b/commands/docs/length.md index 3f68ddf09e3..ef9e2ffdeb4 100644 --- a/commands/docs/length.md +++ b/commands/docs/length.md @@ -2,7 +2,7 @@ title: length categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Count the number of items in an input list, rows in a table, or bytes in binary data. usage: | diff --git a/commands/docs/let-env.md b/commands/docs/let-env.md index c5e3d4e18b1..cdd922a522a 100644 --- a/commands/docs/let-env.md +++ b/commands/docs/let-env.md @@ -2,7 +2,7 @@ title: let-env categories: | removed -version: 0.108.0 +version: 0.109.0 removed: | `let-env FOO = ...` has been removed, use `$env.FOO = ...` instead. usage: | diff --git a/commands/docs/let.md b/commands/docs/let.md index 0b3fdb2b9c0..eb7dc20eeea 100644 --- a/commands/docs/let.md +++ b/commands/docs/let.md @@ -2,7 +2,7 @@ title: let categories: | core -version: 0.108.0 +version: 0.109.0 core: | Create a variable and give it a value. usage: | diff --git a/commands/docs/lines.md b/commands/docs/lines.md index 23007df4c5c..b4bd60710ce 100644 --- a/commands/docs/lines.md +++ b/commands/docs/lines.md @@ -2,7 +2,7 @@ title: lines categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Converts input to lines. usage: | diff --git a/commands/docs/load-env.md b/commands/docs/load-env.md index 6b3eaa09eec..e045a7d7410 100644 --- a/commands/docs/load-env.md +++ b/commands/docs/load-env.md @@ -2,7 +2,7 @@ title: load-env categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Loads an environment update from a record. usage: | diff --git a/commands/docs/loop.md b/commands/docs/loop.md index 0ecef2f2327..8a834bb06b4 100644 --- a/commands/docs/loop.md +++ b/commands/docs/loop.md @@ -2,7 +2,7 @@ title: loop categories: | core -version: 0.108.0 +version: 0.109.0 core: | Run a block in a loop. usage: | diff --git a/commands/docs/ls.md b/commands/docs/ls.md index 648db7b03c4..550351b11ea 100644 --- a/commands/docs/ls.md +++ b/commands/docs/ls.md @@ -2,7 +2,7 @@ title: ls categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | List the filenames, sizes, and modification times of items in a directory. usage: | diff --git a/commands/docs/match.md b/commands/docs/match.md index 1b0c878b566..a6fefb67553 100644 --- a/commands/docs/match.md +++ b/commands/docs/match.md @@ -2,7 +2,7 @@ title: match categories: | core -version: 0.108.0 +version: 0.109.0 core: | Conditionally run a block on a matched value. usage: | diff --git a/commands/docs/math.md b/commands/docs/math.md index 37da83c1ca0..58847c6b66c 100644 --- a/commands/docs/math.md +++ b/commands/docs/math.md @@ -2,7 +2,7 @@ title: math categories: | math -version: 0.108.0 +version: 0.109.0 math: | Use mathematical functions as aggregate functions on a list of numbers or tables. usage: | diff --git a/commands/docs/math_abs.md b/commands/docs/math_abs.md index cbcea296777..4cb3f0da780 100644 --- a/commands/docs/math_abs.md +++ b/commands/docs/math_abs.md @@ -2,7 +2,7 @@ title: math abs categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the absolute value of a number. usage: | diff --git a/commands/docs/math_arccos.md b/commands/docs/math_arccos.md index 5d551579ada..a9289fdbc64 100644 --- a/commands/docs/math_arccos.md +++ b/commands/docs/math_arccos.md @@ -2,7 +2,7 @@ title: math arccos categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the arccosine of the number. usage: | diff --git a/commands/docs/math_arccosh.md b/commands/docs/math_arccosh.md index 11cc55d878d..2db9ba9143d 100644 --- a/commands/docs/math_arccosh.md +++ b/commands/docs/math_arccosh.md @@ -2,7 +2,7 @@ title: math arccosh categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the inverse of the hyperbolic cosine function. usage: | diff --git a/commands/docs/math_arcsin.md b/commands/docs/math_arcsin.md index ec90d759a68..8dbe8aa0cf3 100644 --- a/commands/docs/math_arcsin.md +++ b/commands/docs/math_arcsin.md @@ -2,7 +2,7 @@ title: math arcsin categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the arcsine of the number. usage: | diff --git a/commands/docs/math_arcsinh.md b/commands/docs/math_arcsinh.md index 7acc4599db0..4e9face6093 100644 --- a/commands/docs/math_arcsinh.md +++ b/commands/docs/math_arcsinh.md @@ -2,7 +2,7 @@ title: math arcsinh categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the inverse of the hyperbolic sine function. usage: | diff --git a/commands/docs/math_arctan.md b/commands/docs/math_arctan.md index 5ede8177127..d2e1c922f80 100644 --- a/commands/docs/math_arctan.md +++ b/commands/docs/math_arctan.md @@ -2,7 +2,7 @@ title: math arctan categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the arctangent of the number. usage: | diff --git a/commands/docs/math_arctanh.md b/commands/docs/math_arctanh.md index 9ef8da31d41..f48afb0cf2d 100644 --- a/commands/docs/math_arctanh.md +++ b/commands/docs/math_arctanh.md @@ -2,7 +2,7 @@ title: math arctanh categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the inverse of the hyperbolic tangent function. usage: | diff --git a/commands/docs/math_avg.md b/commands/docs/math_avg.md index 4ae9f0fe883..4d5c1b972ff 100644 --- a/commands/docs/math_avg.md +++ b/commands/docs/math_avg.md @@ -2,7 +2,7 @@ title: math avg categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the average of a list of numbers. usage: | diff --git a/commands/docs/math_ceil.md b/commands/docs/math_ceil.md index 72fff7fd430..40fad2c727f 100644 --- a/commands/docs/math_ceil.md +++ b/commands/docs/math_ceil.md @@ -2,7 +2,7 @@ title: math ceil categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the ceil of a number (smallest integer greater than or equal to that number). usage: | diff --git a/commands/docs/math_cos.md b/commands/docs/math_cos.md index 3f0ac92b2fb..47898eda431 100644 --- a/commands/docs/math_cos.md +++ b/commands/docs/math_cos.md @@ -2,7 +2,7 @@ title: math cos categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the cosine of the number. usage: | diff --git a/commands/docs/math_cosh.md b/commands/docs/math_cosh.md index aa8f783958c..59c5a9735ad 100644 --- a/commands/docs/math_cosh.md +++ b/commands/docs/math_cosh.md @@ -2,7 +2,7 @@ title: math cosh categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the hyperbolic cosine of the number. usage: | diff --git a/commands/docs/math_exp.md b/commands/docs/math_exp.md index a1b5db0f7fa..55d465bc80f 100644 --- a/commands/docs/math_exp.md +++ b/commands/docs/math_exp.md @@ -2,7 +2,7 @@ title: math exp categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns e raised to the power of x. usage: | diff --git a/commands/docs/math_floor.md b/commands/docs/math_floor.md index 5082f687f4a..08078b3cb57 100644 --- a/commands/docs/math_floor.md +++ b/commands/docs/math_floor.md @@ -2,7 +2,7 @@ title: math floor categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the floor of a number (largest integer less than or equal to that number). usage: | diff --git a/commands/docs/math_ln.md b/commands/docs/math_ln.md index aeb09fdfe2d..d31dd5bc232 100644 --- a/commands/docs/math_ln.md +++ b/commands/docs/math_ln.md @@ -2,7 +2,7 @@ title: math ln categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the natural logarithm. Base: (math e). usage: | diff --git a/commands/docs/math_log.md b/commands/docs/math_log.md index d0b1db231fc..a85149bcb79 100644 --- a/commands/docs/math_log.md +++ b/commands/docs/math_log.md @@ -2,7 +2,7 @@ title: math log categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the logarithm for an arbitrary base. usage: | diff --git a/commands/docs/math_max.md b/commands/docs/math_max.md index 533f2b23daa..c10e3cd5ac5 100644 --- a/commands/docs/math_max.md +++ b/commands/docs/math_max.md @@ -2,7 +2,7 @@ title: math max categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the maximum of a list of values, or of columns in a table. usage: | diff --git a/commands/docs/math_median.md b/commands/docs/math_median.md index 92d26fcca94..3e1a9e54257 100644 --- a/commands/docs/math_median.md +++ b/commands/docs/math_median.md @@ -2,7 +2,7 @@ title: math median categories: | math -version: 0.108.0 +version: 0.109.0 math: | Computes the median of a list of numbers. usage: | diff --git a/commands/docs/math_min.md b/commands/docs/math_min.md index e9478ad37b6..a7f55da31ed 100644 --- a/commands/docs/math_min.md +++ b/commands/docs/math_min.md @@ -2,7 +2,7 @@ title: math min categories: | math -version: 0.108.0 +version: 0.109.0 math: | Finds the minimum within a list of values or tables. usage: | diff --git a/commands/docs/math_mode.md b/commands/docs/math_mode.md index 5bc3ca98151..5e3b3919e42 100644 --- a/commands/docs/math_mode.md +++ b/commands/docs/math_mode.md @@ -2,7 +2,7 @@ title: math mode categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the most frequent element(s) from a list of numbers or tables. usage: | diff --git a/commands/docs/math_product.md b/commands/docs/math_product.md index 5346355ff06..45697115699 100644 --- a/commands/docs/math_product.md +++ b/commands/docs/math_product.md @@ -2,7 +2,7 @@ title: math product categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the product of a list of numbers or the products of each column of a table. usage: | diff --git a/commands/docs/math_round.md b/commands/docs/math_round.md index d1a4fc99060..5673d8aab9e 100644 --- a/commands/docs/math_round.md +++ b/commands/docs/math_round.md @@ -2,7 +2,7 @@ title: math round categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the input number rounded to the specified precision. usage: | diff --git a/commands/docs/math_sin.md b/commands/docs/math_sin.md index ac3d9981795..c0cba36b060 100644 --- a/commands/docs/math_sin.md +++ b/commands/docs/math_sin.md @@ -2,7 +2,7 @@ title: math sin categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the sine of the number. usage: | diff --git a/commands/docs/math_sinh.md b/commands/docs/math_sinh.md index 7c6ad5d6dff..4122f68ba1d 100644 --- a/commands/docs/math_sinh.md +++ b/commands/docs/math_sinh.md @@ -2,7 +2,7 @@ title: math sinh categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the hyperbolic sine of the number. usage: | diff --git a/commands/docs/math_sqrt.md b/commands/docs/math_sqrt.md index 47e2b3028cb..617f7d2ccf7 100644 --- a/commands/docs/math_sqrt.md +++ b/commands/docs/math_sqrt.md @@ -2,7 +2,7 @@ title: math sqrt categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the square root of the input number. usage: | diff --git a/commands/docs/math_stddev.md b/commands/docs/math_stddev.md index d16bc254260..9d6113545ac 100644 --- a/commands/docs/math_stddev.md +++ b/commands/docs/math_stddev.md @@ -2,7 +2,7 @@ title: math stddev categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the standard deviation of a list of numbers, or of each column in a table. usage: | diff --git a/commands/docs/math_sum.md b/commands/docs/math_sum.md index a04a02ecd92..a6dfaa966f3 100644 --- a/commands/docs/math_sum.md +++ b/commands/docs/math_sum.md @@ -2,7 +2,7 @@ title: math sum categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the sum of a list of numbers or of each column in a table. usage: | diff --git a/commands/docs/math_tan.md b/commands/docs/math_tan.md index 6e9c2596be0..26a9bd9cf9f 100644 --- a/commands/docs/math_tan.md +++ b/commands/docs/math_tan.md @@ -2,7 +2,7 @@ title: math tan categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the tangent of the number. usage: | diff --git a/commands/docs/math_tanh.md b/commands/docs/math_tanh.md index 419639d6740..508a4048183 100644 --- a/commands/docs/math_tanh.md +++ b/commands/docs/math_tanh.md @@ -2,7 +2,7 @@ title: math tanh categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the hyperbolic tangent of the number. usage: | diff --git a/commands/docs/math_variance.md b/commands/docs/math_variance.md index 156ae4e331f..8dcc80d4542 100644 --- a/commands/docs/math_variance.md +++ b/commands/docs/math_variance.md @@ -2,7 +2,7 @@ title: math variance categories: | math -version: 0.108.0 +version: 0.109.0 math: | Returns the variance of a list of numbers or of each column in a table. usage: | diff --git a/commands/docs/merge.md b/commands/docs/merge.md index 3375cd26d58..140afed898a 100644 --- a/commands/docs/merge.md +++ b/commands/docs/merge.md @@ -2,7 +2,7 @@ title: merge categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Merge the input with a record or table, overwriting values in matching columns. usage: | diff --git a/commands/docs/merge_deep.md b/commands/docs/merge_deep.md index 11dca9d5cac..661ce66eb3e 100644 --- a/commands/docs/merge_deep.md +++ b/commands/docs/merge_deep.md @@ -2,7 +2,7 @@ title: merge deep categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Merge the input with a record or table, recursively merging values in matching columns. usage: | diff --git a/commands/docs/metadata.md b/commands/docs/metadata.md index 57ed1b2d76a..6d93f293ad1 100644 --- a/commands/docs/metadata.md +++ b/commands/docs/metadata.md @@ -2,7 +2,7 @@ title: metadata categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Get the metadata for items in the stream. usage: | diff --git a/commands/docs/metadata_access.md b/commands/docs/metadata_access.md index aecebe3b32b..2e9193d9104 100644 --- a/commands/docs/metadata_access.md +++ b/commands/docs/metadata_access.md @@ -2,7 +2,7 @@ title: metadata access categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Access the metadata for the input stream within a closure. usage: | diff --git a/commands/docs/metadata_set.md b/commands/docs/metadata_set.md index e84c614558c..6345139d88f 100644 --- a/commands/docs/metadata_set.md +++ b/commands/docs/metadata_set.md @@ -2,7 +2,7 @@ title: metadata set categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Set the metadata for items in the stream. usage: | @@ -18,7 +18,7 @@ contributors: false ## Signature -```> metadata set {flags} ``` +```> metadata set {flags} (closure)``` ## Flags @@ -27,6 +27,10 @@ contributors: false - `--content-type, -c {string}`: Assign content type metadata to the input - `--merge, -m {record}`: Merge arbitrary metadata fields +## Parameters + + - `closure`: A closure that receives the current metadata and returns a new metadata record. Cannot be used with other flags. + ## Input/output types: @@ -58,3 +62,9 @@ Set custom metadata > "data" | metadata set --merge {custom_key: "value"} | metadata | get custom_key value ``` + +Set metadata using a closure +```nu +> "data" | metadata set --content-type "text/csv" | metadata set {|m| $m | update content_type {$in + "-processed"}} | metadata | get content_type +text/csv-processed +``` diff --git a/commands/docs/mkdir.md b/commands/docs/mkdir.md index e1c2144699f..de4f461addb 100644 --- a/commands/docs/mkdir.md +++ b/commands/docs/mkdir.md @@ -2,7 +2,7 @@ title: mkdir categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Create directories, with intermediary directories if required using uutils/coreutils mkdir. usage: | diff --git a/commands/docs/mktemp.md b/commands/docs/mktemp.md index 7a6e41e786f..37e90606d44 100644 --- a/commands/docs/mktemp.md +++ b/commands/docs/mktemp.md @@ -2,7 +2,7 @@ title: mktemp categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Create temporary files or directories using uutils/coreutils mktemp. usage: | @@ -26,6 +26,7 @@ contributors: false - `--tmpdir-path, -p {path}`: Interpret TEMPLATE relative to tmpdir-path. If tmpdir-path is not set use $TMPDIR - `--tmpdir, -t`: Interpret TEMPLATE relative to the system temporary directory. - `--directory, -d`: Create a directory instead of a file. + - `--dry`: Don't create a file and just return the path that would have been created. ## Parameters diff --git a/commands/docs/module.md b/commands/docs/module.md index 9472ba9f029..34db335439b 100644 --- a/commands/docs/module.md +++ b/commands/docs/module.md @@ -2,7 +2,7 @@ title: module categories: | core -version: 0.108.0 +version: 0.109.0 core: | Define a custom module. usage: | diff --git a/commands/docs/move.md b/commands/docs/move.md index 3d7df540e7a..a58a325adac 100644 --- a/commands/docs/move.md +++ b/commands/docs/move.md @@ -2,7 +2,7 @@ title: move categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Moves columns relative to other columns or make them the first/last columns. Flags are mutually exclusive. usage: | diff --git a/commands/docs/mut.md b/commands/docs/mut.md index 03a83a52011..7db7d7ca246 100644 --- a/commands/docs/mut.md +++ b/commands/docs/mut.md @@ -2,7 +2,7 @@ title: mut categories: | core -version: 0.108.0 +version: 0.109.0 core: | Create a mutable variable and give it a value. usage: | diff --git a/commands/docs/mv.md b/commands/docs/mv.md index 82df05e9e99..3de0d5325fd 100644 --- a/commands/docs/mv.md +++ b/commands/docs/mv.md @@ -2,7 +2,7 @@ title: mv categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Move files or directories using uutils/coreutils mv. usage: | diff --git a/commands/docs/nu-check.md b/commands/docs/nu-check.md index ce0d5507c1d..1ea716e0ce9 100644 --- a/commands/docs/nu-check.md +++ b/commands/docs/nu-check.md @@ -2,7 +2,7 @@ title: nu-check categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Validate and parse input content. usage: | diff --git a/commands/docs/nu-highlight.md b/commands/docs/nu-highlight.md index 6c837a583bd..5481e7f28ec 100644 --- a/commands/docs/nu-highlight.md +++ b/commands/docs/nu-highlight.md @@ -2,7 +2,7 @@ title: nu-highlight categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Syntax highlight the input string. usage: | diff --git a/commands/docs/open.md b/commands/docs/open.md index c841ea9ae34..916de62996b 100644 --- a/commands/docs/open.md +++ b/commands/docs/open.md @@ -2,7 +2,7 @@ title: open categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Load a file into a cell, converting to table if possible (avoid by appending '--raw'). usage: | diff --git a/commands/docs/overlay.md b/commands/docs/overlay.md index 3f85d0808e2..88adab2245e 100644 --- a/commands/docs/overlay.md +++ b/commands/docs/overlay.md @@ -2,7 +2,7 @@ title: overlay categories: | core -version: 0.108.0 +version: 0.109.0 core: | Commands for manipulating overlays. usage: | diff --git a/commands/docs/overlay_hide.md b/commands/docs/overlay_hide.md index 5e44a3109b4..2a2a2736409 100644 --- a/commands/docs/overlay_hide.md +++ b/commands/docs/overlay_hide.md @@ -2,7 +2,7 @@ title: overlay hide categories: | core -version: 0.108.0 +version: 0.109.0 core: | Hide an active overlay. usage: | diff --git a/commands/docs/overlay_list.md b/commands/docs/overlay_list.md index d840b6f4441..126a1fa1b68 100644 --- a/commands/docs/overlay_list.md +++ b/commands/docs/overlay_list.md @@ -2,7 +2,7 @@ title: overlay list categories: | core -version: 0.108.0 +version: 0.109.0 core: | List all overlays with their active status. usage: | diff --git a/commands/docs/overlay_new.md b/commands/docs/overlay_new.md index a581665a18f..de5b0050229 100644 --- a/commands/docs/overlay_new.md +++ b/commands/docs/overlay_new.md @@ -2,7 +2,7 @@ title: overlay new categories: | core -version: 0.108.0 +version: 0.109.0 core: | Create an empty overlay. usage: | diff --git a/commands/docs/overlay_use.md b/commands/docs/overlay_use.md index 503167df930..16d6d2c2985 100644 --- a/commands/docs/overlay_use.md +++ b/commands/docs/overlay_use.md @@ -2,7 +2,7 @@ title: overlay use categories: | core -version: 0.108.0 +version: 0.109.0 core: | Use definitions from a module as an overlay. usage: | diff --git a/commands/docs/panic.md b/commands/docs/panic.md index 07e31b9ab11..1b128b4e064 100644 --- a/commands/docs/panic.md +++ b/commands/docs/panic.md @@ -2,7 +2,7 @@ title: panic categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Causes nushell to panic. usage: | diff --git a/commands/docs/par-each.md b/commands/docs/par-each.md index f225fbd2df4..0bfe1cc0e20 100644 --- a/commands/docs/par-each.md +++ b/commands/docs/par-each.md @@ -2,7 +2,7 @@ title: par-each categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Run a closure on each row of the input list in parallel, creating a new list with the results. usage: | diff --git a/commands/docs/parse.md b/commands/docs/parse.md index 2308f8509f6..e5ca30f4f6e 100644 --- a/commands/docs/parse.md +++ b/commands/docs/parse.md @@ -2,7 +2,7 @@ title: parse categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Parse columns from string data using a simple pattern or a supplied regular expression. usage: | diff --git a/commands/docs/path.md b/commands/docs/path.md index 9dae608158b..38ec6500522 100644 --- a/commands/docs/path.md +++ b/commands/docs/path.md @@ -2,7 +2,7 @@ title: path categories: | path -version: 0.108.0 +version: 0.109.0 path: | Explore and manipulate paths. usage: | diff --git a/commands/docs/path_basename.md b/commands/docs/path_basename.md index 54087724dd7..3a00ecfb4eb 100644 --- a/commands/docs/path_basename.md +++ b/commands/docs/path_basename.md @@ -2,7 +2,7 @@ title: path basename categories: | path -version: 0.108.0 +version: 0.109.0 path: | Get the final component of a path. usage: | diff --git a/commands/docs/path_dirname.md b/commands/docs/path_dirname.md index e771c8bbeac..0efbc596552 100644 --- a/commands/docs/path_dirname.md +++ b/commands/docs/path_dirname.md @@ -2,7 +2,7 @@ title: path dirname categories: | path -version: 0.108.0 +version: 0.109.0 path: | Get the parent directory of a path. usage: | diff --git a/commands/docs/path_exists.md b/commands/docs/path_exists.md index 07ff6bef03a..56d1fc8bf1a 100644 --- a/commands/docs/path_exists.md +++ b/commands/docs/path_exists.md @@ -2,7 +2,7 @@ title: path exists categories: | path -version: 0.108.0 +version: 0.109.0 path: | Check whether a path exists. usage: | diff --git a/commands/docs/path_expand.md b/commands/docs/path_expand.md index dae585c7f84..93579d7d844 100644 --- a/commands/docs/path_expand.md +++ b/commands/docs/path_expand.md @@ -2,7 +2,7 @@ title: path expand categories: | path -version: 0.108.0 +version: 0.109.0 path: | Try to expand a path to its absolute form. usage: | diff --git a/commands/docs/path_join.md b/commands/docs/path_join.md index 150847cf856..af31e816c0a 100644 --- a/commands/docs/path_join.md +++ b/commands/docs/path_join.md @@ -2,7 +2,7 @@ title: path join categories: | path -version: 0.108.0 +version: 0.109.0 path: | Join a structured path or a list of path parts. usage: | diff --git a/commands/docs/path_parse.md b/commands/docs/path_parse.md index 0602bf8fc9c..6d6fe085478 100644 --- a/commands/docs/path_parse.md +++ b/commands/docs/path_parse.md @@ -2,7 +2,7 @@ title: path parse categories: | path -version: 0.108.0 +version: 0.109.0 path: | Convert a path into structured data. usage: | diff --git a/commands/docs/path_relative-to.md b/commands/docs/path_relative-to.md index 0d025beaf05..e62e96186a1 100644 --- a/commands/docs/path_relative-to.md +++ b/commands/docs/path_relative-to.md @@ -2,7 +2,7 @@ title: path relative-to categories: | path -version: 0.108.0 +version: 0.109.0 path: | Express a path as relative to another path. usage: | diff --git a/commands/docs/path_self.md b/commands/docs/path_self.md index ebc4dd22d3c..07ebeaba7e4 100644 --- a/commands/docs/path_self.md +++ b/commands/docs/path_self.md @@ -2,7 +2,7 @@ title: path self categories: | path -version: 0.108.0 +version: 0.109.0 path: | Get the absolute path of the script or module containing this command at parse time. usage: | diff --git a/commands/docs/path_split.md b/commands/docs/path_split.md index ede8b5d8b0c..4de778fc606 100644 --- a/commands/docs/path_split.md +++ b/commands/docs/path_split.md @@ -2,7 +2,7 @@ title: path split categories: | path -version: 0.108.0 +version: 0.109.0 path: | Split a path into a list based on the system's path separator. usage: | diff --git a/commands/docs/path_type.md b/commands/docs/path_type.md index 98955e83a40..a7c17a365bc 100644 --- a/commands/docs/path_type.md +++ b/commands/docs/path_type.md @@ -2,7 +2,7 @@ title: path type categories: | path -version: 0.108.0 +version: 0.109.0 path: | Get the type of the object a path refers to (e.g., file, dir, symlink). usage: | diff --git a/commands/docs/plugin.md b/commands/docs/plugin.md index 96cb01ab467..4945621951e 100644 --- a/commands/docs/plugin.md +++ b/commands/docs/plugin.md @@ -2,7 +2,7 @@ title: plugin categories: | plugin -version: 0.108.0 +version: 0.109.0 plugin: | Commands for managing plugins. usage: | diff --git a/commands/docs/plugin_add.md b/commands/docs/plugin_add.md index c167f10c73b..cb05ef6dd25 100644 --- a/commands/docs/plugin_add.md +++ b/commands/docs/plugin_add.md @@ -2,7 +2,7 @@ title: plugin add categories: | plugin -version: 0.108.0 +version: 0.109.0 plugin: | Add a plugin to the plugin registry file. usage: | diff --git a/commands/docs/plugin_list.md b/commands/docs/plugin_list.md index f3d47c41558..262845fe4a1 100644 --- a/commands/docs/plugin_list.md +++ b/commands/docs/plugin_list.md @@ -2,7 +2,7 @@ title: plugin list categories: | plugin -version: 0.108.0 +version: 0.109.0 plugin: | List loaded and installed plugins. usage: | @@ -37,13 +37,13 @@ contributors: false List installed plugins. ```nu > plugin list -╭───┬──────┬────────────────────┬─────────┬────────┬───────────────────────────────┬───────┬─────────────╮ -│ # │ name │ version │ status │ pid │ filename │ shell │ commands │ -├───┼──────┼────────────────────┼─────────┼────────┼───────────────────────────────┼───────┼─────────────┤ -│ 0 │ inc │ 0.108.0 │ running │ 106480 │ /opt/nu/plugins/nu_plugin_inc │ │ ╭───┬─────╮ │ -│ │ │ │ │ │ │ │ │ 0 │ inc │ │ -│ │ │ │ │ │ │ │ ╰───┴─────╯ │ -╰───┴──────┴────────────────────┴─────────┴────────┴───────────────────────────────┴───────┴─────────────╯ +╭────┬───────┬─────────────────────┬──────────┬────────┬───────────────────────────────┬───────┬─────────────╮ +│ # │ name │ version │ status │ pid │ filename │ shell │ commands │ +├────┼───────┼─────────────────────┼──────────┼────────┼───────────────────────────────┼───────┼─────────────┤ +│ 0 │ inc │ 0.109.0 │ running │ 106480 │ /opt/nu/plugins/nu_plugin_inc │ │ ╭───┬─────╮ │ +│ │ │ │ │ │ │ │ │ 0 │ inc │ │ +│ │ │ │ │ │ │ │ ╰───┴─────╯ │ +╰────┴───────┴─────────────────────┴──────────┴────────┴───────────────────────────────┴───────┴─────────────╯ ``` diff --git a/commands/docs/plugin_rm.md b/commands/docs/plugin_rm.md index c83309e27a8..b3b57ec9551 100644 --- a/commands/docs/plugin_rm.md +++ b/commands/docs/plugin_rm.md @@ -2,7 +2,7 @@ title: plugin rm categories: | plugin -version: 0.108.0 +version: 0.109.0 plugin: | Remove a plugin from the plugin registry file. usage: | diff --git a/commands/docs/plugin_stop.md b/commands/docs/plugin_stop.md index 6afedcfcbb7..0fcc34e7ebf 100644 --- a/commands/docs/plugin_stop.md +++ b/commands/docs/plugin_stop.md @@ -2,7 +2,7 @@ title: plugin stop categories: | plugin -version: 0.108.0 +version: 0.109.0 plugin: | Stop an installed plugin if it was running. usage: | diff --git a/commands/docs/plugin_use.md b/commands/docs/plugin_use.md index 8140060cb71..6d7e6edb09f 100644 --- a/commands/docs/plugin_use.md +++ b/commands/docs/plugin_use.md @@ -2,7 +2,7 @@ title: plugin use categories: | plugin -version: 0.108.0 +version: 0.109.0 plugin: | Load a plugin from the plugin registry file into scope. usage: | diff --git a/commands/docs/polars.md b/commands/docs/polars.md index a7b4dbb6796..d2fdf43ee9a 100644 --- a/commands/docs/polars.md +++ b/commands/docs/polars.md @@ -2,7 +2,7 @@ title: polars categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Operate with data in a dataframe format. usage: | @@ -16,13 +16,6 @@ contributors: false
Operate with data in a dataframe format.
-::: warning This command requires a plugin -The `polars` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars {flags} ``` diff --git a/commands/docs/polars_agg-groups.md b/commands/docs/polars_agg-groups.md index 12d1c188cdd..15bc0a9a512 100644 --- a/commands/docs/polars_agg-groups.md +++ b/commands/docs/polars_agg-groups.md @@ -2,7 +2,7 @@ title: polars agg-groups categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates an agg_groups expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates an agg_groups expression.
-::: warning This command requires a plugin -The `polars agg-groups` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars agg-groups {flags} ``` diff --git a/commands/docs/polars_agg.md b/commands/docs/polars_agg.md index 110c52a4651..e3251183b75 100644 --- a/commands/docs/polars_agg.md +++ b/commands/docs/polars_agg.md @@ -2,7 +2,7 @@ title: polars agg categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Performs a series of aggregations from a group-by. usage: | @@ -16,13 +16,6 @@ contributors: false
Performs a series of aggregations from a group-by.
-::: warning This command requires a plugin -The `polars agg` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars agg {flags} ...rest``` diff --git a/commands/docs/polars_all-false.md b/commands/docs/polars_all-false.md index 213cb537640..8f7fd27bcce 100644 --- a/commands/docs/polars_all-false.md +++ b/commands/docs/polars_all-false.md @@ -2,7 +2,7 @@ title: polars all-false categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Returns true if all values are false. usage: | @@ -16,13 +16,6 @@ contributors: false
Returns true if all values are false.
-::: warning This command requires a plugin -The `polars all-false` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars all-false {flags} ``` diff --git a/commands/docs/polars_all-true.md b/commands/docs/polars_all-true.md index 60a5741e157..0ee906ac68b 100644 --- a/commands/docs/polars_all-true.md +++ b/commands/docs/polars_all-true.md @@ -2,7 +2,7 @@ title: polars all-true categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Returns true if all values are true. usage: | @@ -16,13 +16,6 @@ contributors: false
Returns true if all values are true.
-::: warning This command requires a plugin -The `polars all-true` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars all-true {flags} ``` diff --git a/commands/docs/polars_append.md b/commands/docs/polars_append.md index be2a47f5f5d..360767ee96e 100644 --- a/commands/docs/polars_append.md +++ b/commands/docs/polars_append.md @@ -2,7 +2,7 @@ title: polars append categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Appends a new dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Appends a new dataframe.
-::: warning This command requires a plugin -The `polars append` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars append {flags} (other)``` diff --git a/commands/docs/polars_arg-max.md b/commands/docs/polars_arg-max.md index 42a70f864f3..63dde16a5d1 100644 --- a/commands/docs/polars_arg-max.md +++ b/commands/docs/polars_arg-max.md @@ -2,7 +2,7 @@ title: polars arg-max categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Return index for max value in series. usage: | @@ -16,13 +16,6 @@ contributors: false
Return index for max value in series.
-::: warning This command requires a plugin -The `polars arg-max` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars arg-max {flags} ``` diff --git a/commands/docs/polars_arg-min.md b/commands/docs/polars_arg-min.md index 552d198eb28..3f6b5f9314b 100644 --- a/commands/docs/polars_arg-min.md +++ b/commands/docs/polars_arg-min.md @@ -2,7 +2,7 @@ title: polars arg-min categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Return index for min value in series. usage: | @@ -16,13 +16,6 @@ contributors: false
Return index for min value in series.
-::: warning This command requires a plugin -The `polars arg-min` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars arg-min {flags} ``` diff --git a/commands/docs/polars_arg-sort.md b/commands/docs/polars_arg-sort.md index 129cb90b58c..3c586b96b78 100644 --- a/commands/docs/polars_arg-sort.md +++ b/commands/docs/polars_arg-sort.md @@ -2,7 +2,7 @@ title: polars arg-sort categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Returns indexes for a sorted series. usage: | @@ -16,13 +16,6 @@ contributors: false
Returns indexes for a sorted series.
-::: warning This command requires a plugin -The `polars arg-sort` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars arg-sort {flags} ``` diff --git a/commands/docs/polars_arg-true.md b/commands/docs/polars_arg-true.md index 32825d1c384..08783ff4d0a 100644 --- a/commands/docs/polars_arg-true.md +++ b/commands/docs/polars_arg-true.md @@ -2,7 +2,7 @@ title: polars arg-true categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Returns indexes where values are true. usage: | @@ -16,13 +16,6 @@ contributors: false
Returns indexes where values are true.
-::: warning This command requires a plugin -The `polars arg-true` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars arg-true {flags} ``` diff --git a/commands/docs/polars_arg-unique.md b/commands/docs/polars_arg-unique.md index 980a0554527..2ebf7bfd1cc 100644 --- a/commands/docs/polars_arg-unique.md +++ b/commands/docs/polars_arg-unique.md @@ -2,7 +2,7 @@ title: polars arg-unique categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Returns indexes for unique values. usage: | @@ -16,13 +16,6 @@ contributors: false
Returns indexes for unique values.
-::: warning This command requires a plugin -The `polars arg-unique` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars arg-unique {flags} ``` diff --git a/commands/docs/polars_arg-where.md b/commands/docs/polars_arg-where.md index 1d8fab24bfd..2c5235ddb1f 100644 --- a/commands/docs/polars_arg-where.md +++ b/commands/docs/polars_arg-where.md @@ -2,7 +2,7 @@ title: polars arg-where categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Creates an expression that returns the arguments where expression is true. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates an expression that returns the arguments where expression is true.
-::: warning This command requires a plugin -The `polars arg-where` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars arg-where {flags} (column name)``` diff --git a/commands/docs/polars_as-date.md b/commands/docs/polars_as-date.md index d031f2c67b9..568e77bf2ed 100644 --- a/commands/docs/polars_as-date.md +++ b/commands/docs/polars_as-date.md @@ -2,7 +2,7 @@ title: polars as-date categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Converts string to date. usage: | @@ -16,13 +16,6 @@ contributors: false
Converts string to date.
-::: warning This command requires a plugin -The `polars as-date` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars as-date {flags} (format)``` diff --git a/commands/docs/polars_as-datetime.md b/commands/docs/polars_as-datetime.md index 85ddae72aac..7baa465bacf 100644 --- a/commands/docs/polars_as-datetime.md +++ b/commands/docs/polars_as-datetime.md @@ -2,7 +2,7 @@ title: polars as-datetime categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Converts string to datetime. usage: | @@ -16,13 +16,6 @@ contributors: false
Converts string to datetime.
-::: warning This command requires a plugin -The `polars as-datetime` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars as-datetime {flags} (format)``` @@ -92,14 +85,14 @@ Converts string to datetime using the `--not-exact` flag even with excessive sym Converts string to datetime using the `--not-exact` flag even with excessive symbols in an expression ```nu > ["2025-11-02 00:00:00", "2025-11-02 01:00:00", "2025-11-02 02:00:00", "2025-11-02 03:00:00"] | polars into-df | polars select (polars col 0 | polars as-datetime "%Y-%m-%d %H:%M:%S") -╭───┬────────────╮ -│ # │ datetime │ -├───┼────────────┤ -│ 0 │ in 2 weeks │ -│ 1 │ in 2 weeks │ -│ 2 │ in 2 weeks │ -│ 3 │ in 2 weeks │ -╰───┴────────────╯ +╭───┬─────────────╮ +│ # │ datetime │ +├───┼─────────────┤ +│ 0 │ 2 weeks ago │ +│ 1 │ 2 weeks ago │ +│ 2 │ 2 weeks ago │ +│ 3 │ 2 weeks ago │ +╰───┴─────────────╯ ``` diff --git a/commands/docs/polars_as.md b/commands/docs/polars_as.md index 68e6898f3f8..179edf59e3f 100644 --- a/commands/docs/polars_as.md +++ b/commands/docs/polars_as.md @@ -2,7 +2,7 @@ title: polars as categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Creates an alias expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates an alias expression.
-::: warning This command requires a plugin -The `polars as` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars as {flags} (Alias name)``` diff --git a/commands/docs/polars_cache.md b/commands/docs/polars_cache.md index 3c68b60821b..b1db21bcf3a 100644 --- a/commands/docs/polars_cache.md +++ b/commands/docs/polars_cache.md @@ -2,7 +2,7 @@ title: polars cache categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Caches operations in a new LazyFrame. usage: | @@ -16,13 +16,6 @@ contributors: false
Caches operations in a new LazyFrame.
-::: warning This command requires a plugin -The `polars cache` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars cache {flags} ``` diff --git a/commands/docs/polars_cast.md b/commands/docs/polars_cast.md index 320b377dd1b..730a729899e 100644 --- a/commands/docs/polars_cast.md +++ b/commands/docs/polars_cast.md @@ -2,7 +2,7 @@ title: polars cast categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Cast a column to a different dtype. usage: | @@ -16,13 +16,6 @@ contributors: false
Cast a column to a different dtype.
-::: warning This command requires a plugin -The `polars cast` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars cast {flags} (dtype) (column)``` diff --git a/commands/docs/polars_col.md b/commands/docs/polars_col.md index d2f7c72f996..f9dea4ce81e 100644 --- a/commands/docs/polars_col.md +++ b/commands/docs/polars_col.md @@ -2,7 +2,7 @@ title: polars col categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Creates a named column expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a named column expression.
-::: warning This command requires a plugin -The `polars col` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars col {flags} (column name) ...rest``` diff --git a/commands/docs/polars_collect.md b/commands/docs/polars_collect.md index d74ffd4893b..b6ea9e47585 100644 --- a/commands/docs/polars_collect.md +++ b/commands/docs/polars_collect.md @@ -2,7 +2,7 @@ title: polars collect categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Collect lazy dataframe into eager dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Collect lazy dataframe into eager dataframe.
-::: warning This command requires a plugin -The `polars collect` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars collect {flags} ``` diff --git a/commands/docs/polars_columns.md b/commands/docs/polars_columns.md index 788400e33ad..b81e0379ca6 100644 --- a/commands/docs/polars_columns.md +++ b/commands/docs/polars_columns.md @@ -2,7 +2,7 @@ title: polars columns categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Show dataframe columns. usage: | @@ -16,13 +16,6 @@ contributors: false
Show dataframe columns.
-::: warning This command requires a plugin -The `polars columns` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars columns {flags} ``` diff --git a/commands/docs/polars_concat-str.md b/commands/docs/polars_concat-str.md index 1b5e9c86abb..011e1598676 100644 --- a/commands/docs/polars_concat-str.md +++ b/commands/docs/polars_concat-str.md @@ -2,7 +2,7 @@ title: polars concat-str categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Creates a concat string expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a concat string expression.
-::: warning This command requires a plugin -The `polars concat-str` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars concat-str {flags} (separator) (concat expressions)``` diff --git a/commands/docs/polars_concat.md b/commands/docs/polars_concat.md index 8311d86d9aa..f47f50c3347 100644 --- a/commands/docs/polars_concat.md +++ b/commands/docs/polars_concat.md @@ -2,7 +2,7 @@ title: polars concat categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Concatenate two or more dataframes. usage: | @@ -16,13 +16,6 @@ contributors: false
Concatenate two or more dataframes.
-::: warning This command requires a plugin -The `polars concat` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars concat {flags} ...rest``` diff --git a/commands/docs/polars_contains.md b/commands/docs/polars_contains.md index 6e5fac7eb65..5fc3af6a8fd 100644 --- a/commands/docs/polars_contains.md +++ b/commands/docs/polars_contains.md @@ -2,7 +2,7 @@ title: polars contains categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Checks if a pattern is contained in a string. usage: | @@ -16,13 +16,6 @@ contributors: false
Checks if a pattern is contained in a string.
-::: warning This command requires a plugin -The `polars contains` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars contains {flags} (pattern)``` diff --git a/commands/docs/polars_convert-time-zone.md b/commands/docs/polars_convert-time-zone.md index 5bc7f3db85f..ec078172362 100644 --- a/commands/docs/polars_convert-time-zone.md +++ b/commands/docs/polars_convert-time-zone.md @@ -2,7 +2,7 @@ title: polars convert-time-zone categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Convert datetime to target timezone. usage: | @@ -16,13 +16,6 @@ contributors: false
Convert datetime to target timezone.
-::: warning This command requires a plugin -The `polars convert-time-zone` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars convert-time-zone {flags} (time_zone)``` @@ -47,8 +40,8 @@ Convert timezone for timezone-aware datetime ╭───┬──────────────╮ │ # │ datetime │ ├───┼──────────────┤ -│ 0 │ 6 months ago │ -│ 1 │ 6 months ago │ +│ 0 │ 7 months ago │ +│ 1 │ 7 months ago │ ╰───┴──────────────╯ ``` @@ -61,8 +54,8 @@ Timezone conversions for timezone-naive datetime will assume the original timezo ╭───┬──────────────╮ │ # │ datetime │ ├───┼──────────────┤ -│ 0 │ 6 months ago │ -│ 1 │ 6 months ago │ +│ 0 │ 7 months ago │ +│ 1 │ 7 months ago │ ╰───┴──────────────╯ ``` diff --git a/commands/docs/polars_count-null.md b/commands/docs/polars_count-null.md index e71fb41ce5c..f3b59c53bee 100644 --- a/commands/docs/polars_count-null.md +++ b/commands/docs/polars_count-null.md @@ -2,7 +2,7 @@ title: polars count-null categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Counts null values. usage: | @@ -16,13 +16,6 @@ contributors: false
Counts null values.
-::: warning This command requires a plugin -The `polars count-null` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars count-null {flags} ``` diff --git a/commands/docs/polars_count.md b/commands/docs/polars_count.md index 4a215210340..1f131985730 100644 --- a/commands/docs/polars_count.md +++ b/commands/docs/polars_count.md @@ -2,7 +2,7 @@ title: polars count categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Returns the number of non-null values in the column. usage: | @@ -16,13 +16,6 @@ contributors: false
Returns the number of non-null values in the column.
-::: warning This command requires a plugin -The `polars count` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars count {flags} ``` diff --git a/commands/docs/polars_cumulative.md b/commands/docs/polars_cumulative.md index e937eb4cd34..87e04a3b51f 100644 --- a/commands/docs/polars_cumulative.md +++ b/commands/docs/polars_cumulative.md @@ -2,7 +2,7 @@ title: polars cumulative categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Cumulative calculation for a column or series. usage: | @@ -16,13 +16,6 @@ contributors: false
Cumulative calculation for a column or series.
-::: warning This command requires a plugin -The `polars cumulative` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars cumulative {flags} (type)``` diff --git a/commands/docs/polars_cut.md b/commands/docs/polars_cut.md index bb9b6486140..beabf3936d4 100644 --- a/commands/docs/polars_cut.md +++ b/commands/docs/polars_cut.md @@ -2,7 +2,7 @@ title: polars cut categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Bin continuous values into discrete categories for a series. usage: | @@ -16,13 +16,6 @@ contributors: false
Bin continuous values into discrete categories for a series.
-::: warning This command requires a plugin -The `polars cut` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars cut {flags} (breaks)``` diff --git a/commands/docs/polars_datepart.md b/commands/docs/polars_datepart.md index 51704f8fa60..42d4d457ab2 100644 --- a/commands/docs/polars_datepart.md +++ b/commands/docs/polars_datepart.md @@ -2,7 +2,7 @@ title: polars datepart categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Creates an expression for capturing the specified datepart in a column. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates an expression for capturing the specified datepart in a column.
-::: warning This command requires a plugin -The `polars datepart` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars datepart {flags} (Datepart name)``` @@ -60,10 +53,28 @@ Creates an expression to capture multiple date parts (polars col datetime | polars datepart minute | polars as datetime_minute ), (polars col datetime | polars datepart second | polars as datetime_second ), (polars col datetime | polars datepart nanosecond | polars as datetime_ns ) ] -╭───┬─────────────┬───────────────┬────────────────┬──────────────┬───────────────┬─────────────────┬─────────────────┬─────────────╮ -│ # │ datetime │ datetime_year │ datetime_month │ datetime_day │ datetime_hour │ datetime_minute │ datetime_second │ datetime_ns │ -├───┼─────────────┼───────────────┼────────────────┼──────────────┼───────────────┼─────────────────┼─────────────────┼─────────────┤ -│ 0 │ 3 years ago │ 2021 │ 12 │ 30 │ 1 │ 2 │ 3 │ 123456789 │ -╰───┴─────────────┴───────────────┴────────────────┴──────────────┴───────────────┴─────────────────┴─────────────────┴─────────────╯ +╭───┬─────────────┬───────────────┬────────────────┬──────────────┬───────────────┬─────────────────┬────┬───╮ +│ # │ datetime │ datetime_year │ datetime_month │ datetime_day │ datetime_hour │ datetime_minute │ da │ d │ +│ │ │ │ │ │ │ │ te │ a │ +│ │ │ │ │ │ │ │ ti │ t │ +│ │ │ │ │ │ │ │ me │ e │ +│ │ │ │ │ │ │ │ _s │ t │ +│ │ │ │ │ │ │ │ ec │ i │ +│ │ │ │ │ │ │ │ on │ m │ +│ │ │ │ │ │ │ │ d │ e │ +│ │ │ │ │ │ │ │ │ _ │ +│ │ │ │ │ │ │ │ │ n │ +│ │ │ │ │ │ │ │ │ s │ +├───┼─────────────┼───────────────┼────────────────┼──────────────┼───────────────┼─────────────────┼────┼───┤ +│ 0 │ 3 years ago │ 2021 │ 12 │ 30 │ 1 │ 2 │ 3 │ 1 │ +│ │ │ │ │ │ │ │ │ 2 │ +│ │ │ │ │ │ │ │ │ 3 │ +│ │ │ │ │ │ │ │ │ 4 │ +│ │ │ │ │ │ │ │ │ 5 │ +│ │ │ │ │ │ │ │ │ 6 │ +│ │ │ │ │ │ │ │ │ 7 │ +│ │ │ │ │ │ │ │ │ 8 │ +│ │ │ │ │ │ │ │ │ 9 │ +╰───┴─────────────┴───────────────┴────────────────┴──────────────┴───────────────┴─────────────────┴────┴───╯ ``` diff --git a/commands/docs/polars_decimal.md b/commands/docs/polars_decimal.md index 40f8278efa4..722305c1cc6 100644 --- a/commands/docs/polars_decimal.md +++ b/commands/docs/polars_decimal.md @@ -2,7 +2,7 @@ title: polars decimal categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Converts a string column into a decimal column usage: | @@ -16,13 +16,6 @@ contributors: false
Converts a string column into a decimal column
-::: warning This command requires a plugin -The `polars decimal` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars decimal {flags} (infer_length)``` diff --git a/commands/docs/polars_drop-duplicates.md b/commands/docs/polars_drop-duplicates.md index ccae8fc7efc..92ebc703dcf 100644 --- a/commands/docs/polars_drop-duplicates.md +++ b/commands/docs/polars_drop-duplicates.md @@ -2,7 +2,7 @@ title: polars drop-duplicates categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Drops duplicate values in dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Drops duplicate values in dataframe.
-::: warning This command requires a plugin -The `polars drop-duplicates` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars drop-duplicates {flags} (subset)``` diff --git a/commands/docs/polars_drop-nulls.md b/commands/docs/polars_drop-nulls.md index 4a4e5bf2e1a..7393b0b2a8e 100644 --- a/commands/docs/polars_drop-nulls.md +++ b/commands/docs/polars_drop-nulls.md @@ -2,7 +2,7 @@ title: polars drop-nulls categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Drops null values in dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Drops null values in dataframe.
-::: warning This command requires a plugin -The `polars drop-nulls` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars drop-nulls {flags} (subset)``` diff --git a/commands/docs/polars_drop.md b/commands/docs/polars_drop.md index 7b603312a5c..c7980d09544 100644 --- a/commands/docs/polars_drop.md +++ b/commands/docs/polars_drop.md @@ -2,7 +2,7 @@ title: polars drop categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates a new dataframe by dropping the selected columns. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a new dataframe by dropping the selected columns.
-::: warning This command requires a plugin -The `polars drop` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars drop {flags} ...rest``` diff --git a/commands/docs/polars_dummies.md b/commands/docs/polars_dummies.md index 6e56faf4e37..feb51d7f58f 100644 --- a/commands/docs/polars_dummies.md +++ b/commands/docs/polars_dummies.md @@ -2,7 +2,7 @@ title: polars dummies categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates a new dataframe with dummy variables. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a new dataframe with dummy variables.
-::: warning This command requires a plugin -The `polars dummies` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars dummies {flags} ``` diff --git a/commands/docs/polars_explode.md b/commands/docs/polars_explode.md index 32b8b60e28c..86cbd39c029 100644 --- a/commands/docs/polars_explode.md +++ b/commands/docs/polars_explode.md @@ -2,7 +2,7 @@ title: polars explode categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Explodes a dataframe or creates a explode expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Explodes a dataframe or creates a explode expression.
-::: warning This command requires a plugin -The `polars explode` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars explode {flags} ...rest``` diff --git a/commands/docs/polars_expr-not.md b/commands/docs/polars_expr-not.md index 8fbcc99474e..129652d7550 100644 --- a/commands/docs/polars_expr-not.md +++ b/commands/docs/polars_expr-not.md @@ -2,7 +2,7 @@ title: polars expr-not categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates a not expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a not expression.
-::: warning This command requires a plugin -The `polars expr-not` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars expr-not {flags} ``` diff --git a/commands/docs/polars_fill-nan.md b/commands/docs/polars_fill-nan.md index 10b9dd72ae1..870d537c4ee 100644 --- a/commands/docs/polars_fill-nan.md +++ b/commands/docs/polars_fill-nan.md @@ -2,7 +2,7 @@ title: polars fill-nan categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Replaces NaN values with the given expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Replaces NaN values with the given expression.
-::: warning This command requires a plugin -The `polars fill-nan` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars fill-nan {flags} (fill)``` diff --git a/commands/docs/polars_fill-null.md b/commands/docs/polars_fill-null.md index bb8e5d727b4..664210cec94 100644 --- a/commands/docs/polars_fill-null.md +++ b/commands/docs/polars_fill-null.md @@ -2,7 +2,7 @@ title: polars fill-null categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Replaces NULL values with the given expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Replaces NULL values with the given expression.
-::: warning This command requires a plugin -The `polars fill-null` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars fill-null {flags} (fill)``` diff --git a/commands/docs/polars_filter-with.md b/commands/docs/polars_filter-with.md index e7e65b44272..933d5591f79 100644 --- a/commands/docs/polars_filter-with.md +++ b/commands/docs/polars_filter-with.md @@ -2,7 +2,7 @@ title: polars filter-with categories: | dataframe or lazyframe -version: 0.108.0 +version: 0.109.0 dataframe_or_lazyframe: | Filters dataframe using a mask or expression as reference. usage: | @@ -16,13 +16,6 @@ contributors: false
Filters dataframe using a mask or expression as reference.
-::: warning This command requires a plugin -The `polars filter-with` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars filter-with {flags} (mask or expression)``` diff --git a/commands/docs/polars_filter.md b/commands/docs/polars_filter.md index 54e9bcd1c9b..5661ac8f148 100644 --- a/commands/docs/polars_filter.md +++ b/commands/docs/polars_filter.md @@ -2,7 +2,7 @@ title: polars filter categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Filter dataframe based in expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Filter dataframe based in expression.
-::: warning This command requires a plugin -The `polars filter` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars filter {flags} (filter expression)``` @@ -59,8 +52,8 @@ Filter dataframe for rows where dt is within the last 2 days of the maximum dt v ╭───┬──────────────┬─────╮ │ # │ dt │ val │ ├───┼──────────────┼─────┤ -│ 0 │ 6 months ago │ 3 │ -│ 1 │ 6 months ago │ 4 │ +│ 0 │ 7 months ago │ 3 │ +│ 1 │ 7 months ago │ 4 │ ╰───┴──────────────┴─────╯ ``` diff --git a/commands/docs/polars_first.md b/commands/docs/polars_first.md index 2b00c6deaa5..6218f361764 100644 --- a/commands/docs/polars_first.md +++ b/commands/docs/polars_first.md @@ -2,7 +2,7 @@ title: polars first categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Show only the first number of rows or create a first expression usage: | @@ -16,13 +16,6 @@ contributors: false
Show only the first number of rows or create a first expression
-::: warning This command requires a plugin -The `polars first` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars first {flags} (rows)``` diff --git a/commands/docs/polars_flatten.md b/commands/docs/polars_flatten.md index 95332d22df8..b9696bd6577 100644 --- a/commands/docs/polars_flatten.md +++ b/commands/docs/polars_flatten.md @@ -2,7 +2,7 @@ title: polars flatten categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | An alias for polars explode. usage: | @@ -16,13 +16,6 @@ contributors: false
An alias for polars explode.
-::: warning This command requires a plugin -The `polars flatten` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars flatten {flags} ...rest``` diff --git a/commands/docs/polars_get-day.md b/commands/docs/polars_get-day.md index fbfafc14949..3c5c70c3c4c 100644 --- a/commands/docs/polars_get-day.md +++ b/commands/docs/polars_get-day.md @@ -2,7 +2,7 @@ title: polars get-day categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Gets day from date. usage: | @@ -16,13 +16,6 @@ contributors: false
Gets day from date.
-::: warning This command requires a plugin -The `polars get-day` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars get-day {flags} ``` diff --git a/commands/docs/polars_get-hour.md b/commands/docs/polars_get-hour.md index cbf8fccaae2..90355f693c6 100644 --- a/commands/docs/polars_get-hour.md +++ b/commands/docs/polars_get-hour.md @@ -2,7 +2,7 @@ title: polars get-hour categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Gets hour from datetime. usage: | @@ -16,13 +16,6 @@ contributors: false
Gets hour from datetime.
-::: warning This command requires a plugin -The `polars get-hour` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars get-hour {flags} ``` diff --git a/commands/docs/polars_get-minute.md b/commands/docs/polars_get-minute.md index 18cc4936953..47cc75db09d 100644 --- a/commands/docs/polars_get-minute.md +++ b/commands/docs/polars_get-minute.md @@ -2,7 +2,7 @@ title: polars get-minute categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Gets minute from date. usage: | @@ -16,13 +16,6 @@ contributors: false
Gets minute from date.
-::: warning This command requires a plugin -The `polars get-minute` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars get-minute {flags} ``` diff --git a/commands/docs/polars_get-month.md b/commands/docs/polars_get-month.md index 242b1f98656..d0154068e56 100644 --- a/commands/docs/polars_get-month.md +++ b/commands/docs/polars_get-month.md @@ -2,7 +2,7 @@ title: polars get-month categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Gets month from date. usage: | @@ -16,13 +16,6 @@ contributors: false
Gets month from date.
-::: warning This command requires a plugin -The `polars get-month` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars get-month {flags} ``` diff --git a/commands/docs/polars_get-nanosecond.md b/commands/docs/polars_get-nanosecond.md index 3339c5182b0..4a11efef0b8 100644 --- a/commands/docs/polars_get-nanosecond.md +++ b/commands/docs/polars_get-nanosecond.md @@ -2,7 +2,7 @@ title: polars get-nanosecond categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Gets nanosecond from date. usage: | @@ -16,13 +16,6 @@ contributors: false
Gets nanosecond from date.
-::: warning This command requires a plugin -The `polars get-nanosecond` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars get-nanosecond {flags} ``` diff --git a/commands/docs/polars_get-ordinal.md b/commands/docs/polars_get-ordinal.md index ce765edc183..ce30005c621 100644 --- a/commands/docs/polars_get-ordinal.md +++ b/commands/docs/polars_get-ordinal.md @@ -2,7 +2,7 @@ title: polars get-ordinal categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Gets ordinal from date. usage: | @@ -16,13 +16,6 @@ contributors: false
Gets ordinal from date.
-::: warning This command requires a plugin -The `polars get-ordinal` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars get-ordinal {flags} ``` diff --git a/commands/docs/polars_get-second.md b/commands/docs/polars_get-second.md index 5b6d6f644a8..53ebe8b6ab7 100644 --- a/commands/docs/polars_get-second.md +++ b/commands/docs/polars_get-second.md @@ -2,7 +2,7 @@ title: polars get-second categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Gets second from date. usage: | @@ -16,13 +16,6 @@ contributors: false
Gets second from date.
-::: warning This command requires a plugin -The `polars get-second` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars get-second {flags} ``` diff --git a/commands/docs/polars_get-week.md b/commands/docs/polars_get-week.md index 1acf500d979..b69d2baf397 100644 --- a/commands/docs/polars_get-week.md +++ b/commands/docs/polars_get-week.md @@ -2,7 +2,7 @@ title: polars get-week categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Gets week from date. usage: | @@ -16,13 +16,6 @@ contributors: false
Gets week from date.
-::: warning This command requires a plugin -The `polars get-week` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars get-week {flags} ``` diff --git a/commands/docs/polars_get-weekday.md b/commands/docs/polars_get-weekday.md index 98a34415574..fe3aa9f1639 100644 --- a/commands/docs/polars_get-weekday.md +++ b/commands/docs/polars_get-weekday.md @@ -2,7 +2,7 @@ title: polars get-weekday categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Gets weekday from date. usage: | @@ -16,13 +16,6 @@ contributors: false
Gets weekday from date.
-::: warning This command requires a plugin -The `polars get-weekday` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars get-weekday {flags} ``` diff --git a/commands/docs/polars_get-year.md b/commands/docs/polars_get-year.md index 0f43185c725..b38bf837393 100644 --- a/commands/docs/polars_get-year.md +++ b/commands/docs/polars_get-year.md @@ -2,7 +2,7 @@ title: polars get-year categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Gets year from date. usage: | @@ -16,13 +16,6 @@ contributors: false
Gets year from date.
-::: warning This command requires a plugin -The `polars get-year` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars get-year {flags} ``` diff --git a/commands/docs/polars_get.md b/commands/docs/polars_get.md index 44c94fb075c..64dd84b822a 100644 --- a/commands/docs/polars_get.md +++ b/commands/docs/polars_get.md @@ -2,7 +2,7 @@ title: polars get categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates dataframe with the selected columns. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates dataframe with the selected columns.
-::: warning This command requires a plugin -The `polars get` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars get {flags} ...rest``` diff --git a/commands/docs/polars_group-by.md b/commands/docs/polars_group-by.md index eb848d22a32..728d4c425a5 100644 --- a/commands/docs/polars_group-by.md +++ b/commands/docs/polars_group-by.md @@ -2,7 +2,7 @@ title: polars group-by categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Creates a group-by object that can be used for other aggregations. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a group-by object that can be used for other aggregations.
-::: warning This command requires a plugin -The `polars group-by` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars group-by {flags} ...rest``` diff --git a/commands/docs/polars_horizontal.md b/commands/docs/polars_horizontal.md index 97a31970b54..95a751eaa70 100644 --- a/commands/docs/polars_horizontal.md +++ b/commands/docs/polars_horizontal.md @@ -2,7 +2,7 @@ title: polars horizontal categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Horizontal calculation across multiple columns. usage: | @@ -16,13 +16,6 @@ contributors: false
Horizontal calculation across multiple columns.
-::: warning This command requires a plugin -The `polars horizontal` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars horizontal {flags} (type) ...rest``` diff --git a/commands/docs/polars_implode.md b/commands/docs/polars_implode.md index ce6e9ff8b64..dfd98488410 100644 --- a/commands/docs/polars_implode.md +++ b/commands/docs/polars_implode.md @@ -2,7 +2,7 @@ title: polars implode categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Aggregates values into a list. usage: | @@ -16,13 +16,6 @@ contributors: false
Aggregates values into a list.
-::: warning This command requires a plugin -The `polars implode` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars implode {flags} ``` diff --git a/commands/docs/polars_integer.md b/commands/docs/polars_integer.md index 5c9cdfdc171..220a3f66590 100644 --- a/commands/docs/polars_integer.md +++ b/commands/docs/polars_integer.md @@ -2,7 +2,7 @@ title: polars integer categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Converts a string column into a integer column usage: | @@ -16,13 +16,6 @@ contributors: false
Converts a string column into a integer column
-::: warning This command requires a plugin -The `polars integer` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars integer {flags} (base) (dtype)``` diff --git a/commands/docs/polars_into-df.md b/commands/docs/polars_into-df.md index 84b2d234bfc..0c6e731c571 100644 --- a/commands/docs/polars_into-df.md +++ b/commands/docs/polars_into-df.md @@ -2,7 +2,7 @@ title: polars into-df categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Converts a list, table or record into a dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Converts a list, table or record into a dataframe.
-::: warning This command requires a plugin -The `polars into-df` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars into-df {flags} ``` diff --git a/commands/docs/polars_into-dtype.md b/commands/docs/polars_into-dtype.md index 7912425a7e8..8c7081b92aa 100644 --- a/commands/docs/polars_into-dtype.md +++ b/commands/docs/polars_into-dtype.md @@ -2,7 +2,7 @@ title: polars into-dtype categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Convert a string to a specific datatype. usage: | @@ -16,13 +16,6 @@ contributors: false
Convert a string to a specific datatype.
-::: warning This command requires a plugin -The `polars into-dtype` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars into-dtype {flags} ``` diff --git a/commands/docs/polars_into-lazy.md b/commands/docs/polars_into-lazy.md index 2f76fa99c7f..9409640d75f 100644 --- a/commands/docs/polars_into-lazy.md +++ b/commands/docs/polars_into-lazy.md @@ -2,7 +2,7 @@ title: polars into-lazy categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Converts a dataframe into a lazy dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Converts a dataframe into a lazy dataframe.
-::: warning This command requires a plugin -The `polars into-lazy` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars into-lazy {flags} ``` diff --git a/commands/docs/polars_into-nu.md b/commands/docs/polars_into-nu.md index d01e4aa4375..43c2637f11d 100644 --- a/commands/docs/polars_into-nu.md +++ b/commands/docs/polars_into-nu.md @@ -2,7 +2,7 @@ title: polars into-nu categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Converts a dataframe or an expression into nushell value for access and exploration. usage: | @@ -16,13 +16,6 @@ contributors: false
Converts a dataframe or an expression into nushell value for access and exploration.
-::: warning This command requires a plugin -The `polars into-nu` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars into-nu {flags} ``` diff --git a/commands/docs/polars_into-repr.md b/commands/docs/polars_into-repr.md index a84bcb51849..5c9798aba19 100644 --- a/commands/docs/polars_into-repr.md +++ b/commands/docs/polars_into-repr.md @@ -2,7 +2,7 @@ title: polars into-repr categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Display a dataframe in its repr format. usage: | @@ -16,13 +16,6 @@ contributors: false
Display a dataframe in its repr format.
-::: warning This command requires a plugin -The `polars into-repr` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars into-repr {flags} ``` diff --git a/commands/docs/polars_into-schema.md b/commands/docs/polars_into-schema.md index 2985b2d754d..0288a22bcae 100644 --- a/commands/docs/polars_into-schema.md +++ b/commands/docs/polars_into-schema.md @@ -2,7 +2,7 @@ title: polars into-schema categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Convert a value to a polars schema object usage: | @@ -16,13 +16,6 @@ contributors: false
Convert a value to a polars schema object
-::: warning This command requires a plugin -The `polars into-schema` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars into-schema {flags} ``` diff --git a/commands/docs/polars_is-duplicated.md b/commands/docs/polars_is-duplicated.md index 7e36251029c..77a82854f52 100644 --- a/commands/docs/polars_is-duplicated.md +++ b/commands/docs/polars_is-duplicated.md @@ -2,7 +2,7 @@ title: polars is-duplicated categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates mask indicating duplicated values. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates mask indicating duplicated values.
-::: warning This command requires a plugin -The `polars is-duplicated` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars is-duplicated {flags} ``` diff --git a/commands/docs/polars_is-in.md b/commands/docs/polars_is-in.md index 11b6bae29fd..15329f51ec5 100644 --- a/commands/docs/polars_is-in.md +++ b/commands/docs/polars_is-in.md @@ -2,7 +2,7 @@ title: polars is-in categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Creates an is-in expression or checks to see if the elements are contained in the right series usage: | @@ -16,13 +16,6 @@ contributors: false
Creates an is-in expression or checks to see if the elements are contained in the right series
-::: warning This command requires a plugin -The `polars is-in` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars is-in {flags} (list)``` diff --git a/commands/docs/polars_is-not-null.md b/commands/docs/polars_is-not-null.md index 44fbfd0d95f..a40903eb205 100644 --- a/commands/docs/polars_is-not-null.md +++ b/commands/docs/polars_is-not-null.md @@ -2,7 +2,7 @@ title: polars is-not-null categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates mask where value is not null. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates mask where value is not null.
-::: warning This command requires a plugin -The `polars is-not-null` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars is-not-null {flags} ``` diff --git a/commands/docs/polars_is-null.md b/commands/docs/polars_is-null.md index 0728fd4e364..2bf591a6069 100644 --- a/commands/docs/polars_is-null.md +++ b/commands/docs/polars_is-null.md @@ -2,7 +2,7 @@ title: polars is-null categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates mask where value is null. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates mask where value is null.
-::: warning This command requires a plugin -The `polars is-null` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars is-null {flags} ``` diff --git a/commands/docs/polars_is-unique.md b/commands/docs/polars_is-unique.md index ad136e85f81..0def7b250d7 100644 --- a/commands/docs/polars_is-unique.md +++ b/commands/docs/polars_is-unique.md @@ -2,7 +2,7 @@ title: polars is-unique categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates mask indicating unique values. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates mask indicating unique values.
-::: warning This command requires a plugin -The `polars is-unique` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars is-unique {flags} ``` diff --git a/commands/docs/polars_join-where.md b/commands/docs/polars_join-where.md index 3b71813447e..530b09e9876 100644 --- a/commands/docs/polars_join-where.md +++ b/commands/docs/polars_join-where.md @@ -2,7 +2,7 @@ title: polars join-where categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Joins a lazy frame with other lazy frame based on conditions. usage: | @@ -16,13 +16,6 @@ contributors: false
Joins a lazy frame with other lazy frame based on conditions.
-::: warning This command requires a plugin -The `polars join-where` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars join-where {flags} (other) (condition)``` diff --git a/commands/docs/polars_join.md b/commands/docs/polars_join.md index 99c96a4683e..7c2b40ec3a7 100644 --- a/commands/docs/polars_join.md +++ b/commands/docs/polars_join.md @@ -2,7 +2,7 @@ title: polars join categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Joins a lazy frame with other lazy frame. usage: | @@ -16,13 +16,6 @@ contributors: false
Joins a lazy frame with other lazy frame.
-::: warning This command requires a plugin -The `polars join` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars join {flags} (other) (left_on) (right_on)``` diff --git a/commands/docs/polars_last.md b/commands/docs/polars_last.md index 23c79fd2eae..6736c2dc80d 100644 --- a/commands/docs/polars_last.md +++ b/commands/docs/polars_last.md @@ -2,7 +2,7 @@ title: polars last categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates new dataframe with tail rows or creates a last expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates new dataframe with tail rows or creates a last expression.
-::: warning This command requires a plugin -The `polars last` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars last {flags} (rows)``` diff --git a/commands/docs/polars_len.md b/commands/docs/polars_len.md index 49d30e2345a..b8efbdd4e7d 100644 --- a/commands/docs/polars_len.md +++ b/commands/docs/polars_len.md @@ -2,7 +2,7 @@ title: polars len categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Return the number of rows in the context. This is similar to COUNT(*) in SQL. usage: | @@ -16,13 +16,6 @@ contributors: false
Return the number of rows in the context. This is similar to COUNT(*) in SQL.
-::: warning This command requires a plugin -The `polars len` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars len {flags} ``` diff --git a/commands/docs/polars_list-contains.md b/commands/docs/polars_list-contains.md index 2407c7dcf62..4901a809f91 100644 --- a/commands/docs/polars_list-contains.md +++ b/commands/docs/polars_list-contains.md @@ -2,7 +2,7 @@ title: polars list-contains categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Checks if an element is contained in a list. usage: | @@ -16,13 +16,6 @@ contributors: false
Checks if an element is contained in a list.
-::: warning This command requires a plugin -The `polars list-contains` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars list-contains {flags} (element)``` diff --git a/commands/docs/polars_lit.md b/commands/docs/polars_lit.md index 746e609f2d4..c3fd1b176f6 100644 --- a/commands/docs/polars_lit.md +++ b/commands/docs/polars_lit.md @@ -2,7 +2,7 @@ title: polars lit categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Creates a literal expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a literal expression.
-::: warning This command requires a plugin -The `polars lit` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars lit {flags} (literal)``` diff --git a/commands/docs/polars_lowercase.md b/commands/docs/polars_lowercase.md index 08ca57e72ce..2548da3407d 100644 --- a/commands/docs/polars_lowercase.md +++ b/commands/docs/polars_lowercase.md @@ -2,7 +2,7 @@ title: polars lowercase categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Lowercase the strings in the column. usage: | @@ -16,13 +16,6 @@ contributors: false
Lowercase the strings in the column.
-::: warning This command requires a plugin -The `polars lowercase` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars lowercase {flags} ``` diff --git a/commands/docs/polars_math.md b/commands/docs/polars_math.md index 40878fb6b1b..b4b9b2c133b 100644 --- a/commands/docs/polars_math.md +++ b/commands/docs/polars_math.md @@ -2,7 +2,7 @@ title: polars math categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Collection of math functions to be applied on one or more column expressions usage: | @@ -16,13 +16,6 @@ contributors: false
Collection of math functions to be applied on one or more column expressions
-::: warning This command requires a plugin -The `polars math` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars math {flags} (type) ...rest``` diff --git a/commands/docs/polars_max.md b/commands/docs/polars_max.md index bef948856c1..50b7df484cd 100644 --- a/commands/docs/polars_max.md +++ b/commands/docs/polars_max.md @@ -2,7 +2,7 @@ title: polars max categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates a max expression or aggregates columns to their max value. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a max expression or aggregates columns to their max value.
-::: warning This command requires a plugin -The `polars max` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars max {flags} ``` diff --git a/commands/docs/polars_mean.md b/commands/docs/polars_mean.md index d1a69ef110f..b466c5e107a 100644 --- a/commands/docs/polars_mean.md +++ b/commands/docs/polars_mean.md @@ -2,7 +2,7 @@ title: polars mean categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates a mean expression for an aggregation or aggregates columns to their mean value. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a mean expression for an aggregation or aggregates columns to their mean value.
-::: warning This command requires a plugin -The `polars mean` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars mean {flags} ``` diff --git a/commands/docs/polars_median.md b/commands/docs/polars_median.md index fc074440b29..0a2e84d6381 100644 --- a/commands/docs/polars_median.md +++ b/commands/docs/polars_median.md @@ -2,7 +2,7 @@ title: polars median categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Median value from columns in a dataframe or creates expression for an aggregation usage: | @@ -16,13 +16,6 @@ contributors: false
Median value from columns in a dataframe or creates expression for an aggregation
-::: warning This command requires a plugin -The `polars median` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars median {flags} ``` diff --git a/commands/docs/polars_min.md b/commands/docs/polars_min.md index 905a5737038..4f33fd072f3 100644 --- a/commands/docs/polars_min.md +++ b/commands/docs/polars_min.md @@ -2,7 +2,7 @@ title: polars min categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates a min expression or aggregates columns to their min value. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a min expression or aggregates columns to their min value.
-::: warning This command requires a plugin -The `polars min` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars min {flags} ``` diff --git a/commands/docs/polars_n-unique.md b/commands/docs/polars_n-unique.md index 080124221f2..a78b8558474 100644 --- a/commands/docs/polars_n-unique.md +++ b/commands/docs/polars_n-unique.md @@ -2,7 +2,7 @@ title: polars n-unique categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Counts unique values. usage: | @@ -16,13 +16,6 @@ contributors: false
Counts unique values.
-::: warning This command requires a plugin -The `polars n-unique` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars n-unique {flags} ``` diff --git a/commands/docs/polars_not.md b/commands/docs/polars_not.md index 4d398ad4037..8e914499418 100644 --- a/commands/docs/polars_not.md +++ b/commands/docs/polars_not.md @@ -2,7 +2,7 @@ title: polars not categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Inverts boolean mask. usage: | @@ -16,13 +16,6 @@ contributors: false
Inverts boolean mask.
-::: warning This command requires a plugin -The `polars not` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars not {flags} ``` diff --git a/commands/docs/polars_open.md b/commands/docs/polars_open.md index 9cd977bfbd5..009651a383b 100644 --- a/commands/docs/polars_open.md +++ b/commands/docs/polars_open.md @@ -2,7 +2,7 @@ title: polars open categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Opens CSV, JSON, NDJSON/JSON lines, arrow, avro, or parquet file to create dataframe. A lazy dataframe will be created by default, if supported. usage: | @@ -16,13 +16,6 @@ contributors: false
Opens CSV, JSON, NDJSON/JSON lines, arrow, avro, or parquet file to create dataframe. A lazy dataframe will be created by default, if supported.
-::: warning This command requires a plugin -The `polars open` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars open {flags} (file)``` diff --git a/commands/docs/polars_otherwise.md b/commands/docs/polars_otherwise.md index 048b3f9936c..511652f677d 100644 --- a/commands/docs/polars_otherwise.md +++ b/commands/docs/polars_otherwise.md @@ -2,7 +2,7 @@ title: polars otherwise categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Completes a when expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Completes a when expression.
-::: warning This command requires a plugin -The `polars otherwise` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars otherwise {flags} (otherwise expression)``` diff --git a/commands/docs/polars_over.md b/commands/docs/polars_over.md index ab48f8c5d5a..caa540a4526 100644 --- a/commands/docs/polars_over.md +++ b/commands/docs/polars_over.md @@ -2,7 +2,7 @@ title: polars over categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Compute expressions over a window group defined by partition expressions. usage: | @@ -16,13 +16,6 @@ contributors: false
Compute expressions over a window group defined by partition expressions.
-::: warning This command requires a plugin -The `polars over` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars over {flags} ...rest``` diff --git a/commands/docs/polars_pivot.md b/commands/docs/polars_pivot.md index d3aba5145b1..249e2b8e597 100644 --- a/commands/docs/polars_pivot.md +++ b/commands/docs/polars_pivot.md @@ -2,7 +2,7 @@ title: polars pivot categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Pivot a DataFrame from long to wide format. usage: | @@ -16,13 +16,6 @@ contributors: false
Pivot a DataFrame from long to wide format.
-::: warning This command requires a plugin -The `polars pivot` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars pivot {flags} ``` @@ -53,8 +46,8 @@ Perform a pivot in order to show individuals test score by subject ╭───┬───────┬──────────────┬───────┬─────────╮ │ # │ name │ date │ maths │ physics │ ├───┼───────┼──────────────┼───────┼─────────┤ -│ 0 │ Cady │ 6 months ago │ 98 │ 99 │ -│ 1 │ Karen │ 6 months ago │ 61 │ 58 │ +│ 0 │ Cady │ 7 months ago │ 98 │ 99 │ +│ 1 │ Karen │ 7 months ago │ 61 │ 58 │ ╰───┴───────┴──────────────┴───────┴─────────╯ ``` diff --git a/commands/docs/polars_profile.md b/commands/docs/polars_profile.md index 263f41e7454..907c5cb52e3 100644 --- a/commands/docs/polars_profile.md +++ b/commands/docs/polars_profile.md @@ -2,7 +2,7 @@ title: polars profile categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Profile a lazy dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Profile a lazy dataframe.
-::: warning This command requires a plugin -The `polars profile` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars profile {flags} ``` diff --git a/commands/docs/polars_qcut.md b/commands/docs/polars_qcut.md index 54460438b17..fe1646f53bd 100644 --- a/commands/docs/polars_qcut.md +++ b/commands/docs/polars_qcut.md @@ -2,7 +2,7 @@ title: polars qcut categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Bin continuous values into discrete categories based on their quantiles for a series. usage: | @@ -16,13 +16,6 @@ contributors: false
Bin continuous values into discrete categories based on their quantiles for a series.
-::: warning This command requires a plugin -The `polars qcut` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars qcut {flags} (quantiles)``` diff --git a/commands/docs/polars_quantile.md b/commands/docs/polars_quantile.md index fba43547d0a..731e3cd6509 100644 --- a/commands/docs/polars_quantile.md +++ b/commands/docs/polars_quantile.md @@ -2,7 +2,7 @@ title: polars quantile categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Aggregates the columns to the selected quantile. usage: | @@ -16,13 +16,6 @@ contributors: false
Aggregates the columns to the selected quantile.
-::: warning This command requires a plugin -The `polars quantile` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars quantile {flags} (quantile)``` diff --git a/commands/docs/polars_query.md b/commands/docs/polars_query.md index 02a2486eb0d..5024d1c0e2b 100644 --- a/commands/docs/polars_query.md +++ b/commands/docs/polars_query.md @@ -2,7 +2,7 @@ title: polars query categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Query dataframe using SQL. Note: The dataframe is always named 'df' in your query's from clause. usage: | @@ -16,13 +16,6 @@ contributors: false
Query dataframe using SQL. Note: The dataframe is always named 'df' in your query's from clause.
-::: warning This command requires a plugin -The `polars query` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars query {flags} (sql)``` diff --git a/commands/docs/polars_rename.md b/commands/docs/polars_rename.md index 410bfeb0cfd..4b38d1b2aa7 100644 --- a/commands/docs/polars_rename.md +++ b/commands/docs/polars_rename.md @@ -2,7 +2,7 @@ title: polars rename categories: | dataframe or lazyframe -version: 0.108.0 +version: 0.109.0 dataframe_or_lazyframe: | Rename a dataframe column. usage: | @@ -16,13 +16,6 @@ contributors: false
Rename a dataframe column.
-::: warning This command requires a plugin -The `polars rename` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars rename {flags} (columns) (new names)``` diff --git a/commands/docs/polars_replace-time-zone.md b/commands/docs/polars_replace-time-zone.md index 74ccb49af70..51c2b3c98df 100644 --- a/commands/docs/polars_replace-time-zone.md +++ b/commands/docs/polars_replace-time-zone.md @@ -2,7 +2,7 @@ title: polars replace-time-zone categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Replace the timezone information in a datetime column. usage: | @@ -16,13 +16,6 @@ contributors: false
Replace the timezone information in a datetime column.
-::: warning This command requires a plugin -The `polars replace-time-zone` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars replace-time-zone {flags} (time_zone)``` @@ -68,14 +61,14 @@ Apply timezone with ambiguous datetime | polars into-df | polars as-datetime "%Y-%m-%d %H:%M:%S" --naive | polars select (polars col datetime | polars replace-time-zone "America/New_York" --ambiguous null) -╭───┬────────────╮ -│ # │ datetime │ -├───┼────────────┤ -│ 0 │ in 2 weeks │ -│ 1 │ │ -│ 2 │ in 2 weeks │ -│ 3 │ in 2 weeks │ -╰───┴────────────╯ +╭───┬─────────────╮ +│ # │ datetime │ +├───┼─────────────┤ +│ 0 │ 2 weeks ago │ +│ 1 │ │ +│ 2 │ 2 weeks ago │ +│ 3 │ 2 weeks ago │ +╰───┴─────────────╯ ``` @@ -88,10 +81,10 @@ Apply timezone with nonexistent datetime ╭───┬──────────────╮ │ # │ datetime │ ├───┼──────────────┤ -│ 0 │ 7 months ago │ +│ 0 │ 8 months ago │ │ 1 │ │ -│ 2 │ 7 months ago │ -│ 3 │ 7 months ago │ +│ 2 │ 8 months ago │ +│ 3 │ 8 months ago │ ╰───┴──────────────╯ ``` diff --git a/commands/docs/polars_replace.md b/commands/docs/polars_replace.md index da1e7a29dc6..89264539535 100644 --- a/commands/docs/polars_replace.md +++ b/commands/docs/polars_replace.md @@ -2,7 +2,7 @@ title: polars replace categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Create an expression that replaces old values with new values usage: | @@ -16,13 +16,6 @@ contributors: false
Create an expression that replaces old values with new values
-::: warning This command requires a plugin -The `polars replace` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars replace {flags} (old) (new)``` diff --git a/commands/docs/polars_reverse.md b/commands/docs/polars_reverse.md index 5671147211c..1a7ede0429c 100644 --- a/commands/docs/polars_reverse.md +++ b/commands/docs/polars_reverse.md @@ -2,7 +2,7 @@ title: polars reverse categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Reverses the LazyFrame usage: | @@ -16,13 +16,6 @@ contributors: false
Reverses the LazyFrame
-::: warning This command requires a plugin -The `polars reverse` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars reverse {flags} ``` diff --git a/commands/docs/polars_rolling.md b/commands/docs/polars_rolling.md index b0df5ec9047..eb6906ae3f8 100644 --- a/commands/docs/polars_rolling.md +++ b/commands/docs/polars_rolling.md @@ -2,7 +2,7 @@ title: polars rolling categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Rolling calculation for a series. usage: | @@ -16,13 +16,6 @@ contributors: false
Rolling calculation for a series.
-::: warning This command requires a plugin -The `polars rolling` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars rolling {flags} (type) (window)``` diff --git a/commands/docs/polars_sample.md b/commands/docs/polars_sample.md index 12b5bbb9d1a..da5bb78525b 100644 --- a/commands/docs/polars_sample.md +++ b/commands/docs/polars_sample.md @@ -2,7 +2,7 @@ title: polars sample categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Create sample dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Create sample dataframe.
-::: warning This command requires a plugin -The `polars sample` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars sample {flags} ``` diff --git a/commands/docs/polars_save.md b/commands/docs/polars_save.md index ac2ebba6818..425d9ba25d0 100644 --- a/commands/docs/polars_save.md +++ b/commands/docs/polars_save.md @@ -2,7 +2,7 @@ title: polars save categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Saves a dataframe to disk. For lazy dataframes a sink operation will be used if the file type supports it (parquet, ipc/arrow, csv, and ndjson). usage: | @@ -16,13 +16,6 @@ contributors: false
Saves a dataframe to disk. For lazy dataframes a sink operation will be used if the file type supports it (parquet, ipc/arrow, csv, and ndjson).
-::: warning This command requires a plugin -The `polars save` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars save {flags} (path)``` diff --git a/commands/docs/polars_schema.md b/commands/docs/polars_schema.md index a184eb6cd4f..fb4afea4124 100644 --- a/commands/docs/polars_schema.md +++ b/commands/docs/polars_schema.md @@ -2,7 +2,7 @@ title: polars schema categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Show schema for a dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Show schema for a dataframe.
-::: warning This command requires a plugin -The `polars schema` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars schema {flags} ``` diff --git a/commands/docs/polars_select.md b/commands/docs/polars_select.md index 74fa5b9ee35..09fa8a82748 100644 --- a/commands/docs/polars_select.md +++ b/commands/docs/polars_select.md @@ -2,7 +2,7 @@ title: polars select categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Selects columns from lazyframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Selects columns from lazyframe.
-::: warning This command requires a plugin -The `polars select` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars select {flags} ...rest``` diff --git a/commands/docs/polars_set-with-idx.md b/commands/docs/polars_set-with-idx.md index 4bfbdf2f450..c43e0329b79 100644 --- a/commands/docs/polars_set-with-idx.md +++ b/commands/docs/polars_set-with-idx.md @@ -2,7 +2,7 @@ title: polars set-with-idx categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Sets value in the given index. usage: | @@ -16,13 +16,6 @@ contributors: false
Sets value in the given index.
-::: warning This command requires a plugin -The `polars set-with-idx` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars set-with-idx {flags} (value)``` diff --git a/commands/docs/polars_set.md b/commands/docs/polars_set.md index bdc8a5ebd8f..a91cdbf6e13 100644 --- a/commands/docs/polars_set.md +++ b/commands/docs/polars_set.md @@ -2,7 +2,7 @@ title: polars set categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Sets value where given mask is true. usage: | @@ -16,13 +16,6 @@ contributors: false
Sets value where given mask is true.
-::: warning This command requires a plugin -The `polars set` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars set {flags} (value)``` diff --git a/commands/docs/polars_shape.md b/commands/docs/polars_shape.md index 5f50f9e6a11..3e8b04ac43f 100644 --- a/commands/docs/polars_shape.md +++ b/commands/docs/polars_shape.md @@ -2,7 +2,7 @@ title: polars shape categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Shows column and row size for a dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Shows column and row size for a dataframe.
-::: warning This command requires a plugin -The `polars shape` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars shape {flags} ``` diff --git a/commands/docs/polars_shift.md b/commands/docs/polars_shift.md index cb88b3c82f2..9a17769630e 100644 --- a/commands/docs/polars_shift.md +++ b/commands/docs/polars_shift.md @@ -2,7 +2,7 @@ title: polars shift categories: | dataframe or lazyframe -version: 0.108.0 +version: 0.109.0 dataframe_or_lazyframe: | Shifts the values by a given period. usage: | @@ -16,13 +16,6 @@ contributors: false
Shifts the values by a given period.
-::: warning This command requires a plugin -The `polars shift` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars shift {flags} (period)``` diff --git a/commands/docs/polars_slice.md b/commands/docs/polars_slice.md index bd8b21c3a43..150c73efa6c 100644 --- a/commands/docs/polars_slice.md +++ b/commands/docs/polars_slice.md @@ -2,7 +2,7 @@ title: polars slice categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates new dataframe from a slice of rows. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates new dataframe from a slice of rows.
-::: warning This command requires a plugin -The `polars slice` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars slice {flags} (offset) (size)``` diff --git a/commands/docs/polars_sort-by.md b/commands/docs/polars_sort-by.md index b4b3aad7cd9..691d8db54d7 100644 --- a/commands/docs/polars_sort-by.md +++ b/commands/docs/polars_sort-by.md @@ -2,7 +2,7 @@ title: polars sort-by categories: | lazyframe -version: 0.108.0 +version: 0.109.0 lazyframe: | Sorts a lazy dataframe based on expression(s). usage: | @@ -16,13 +16,6 @@ contributors: false
Sorts a lazy dataframe based on expression(s).
-::: warning This command requires a plugin -The `polars sort-by` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars sort-by {flags} ...rest``` diff --git a/commands/docs/polars_std.md b/commands/docs/polars_std.md index 4ca5290ea21..ab085c5d3b1 100644 --- a/commands/docs/polars_std.md +++ b/commands/docs/polars_std.md @@ -2,7 +2,7 @@ title: polars std categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates a std expression for an aggregation of std value from columns in a dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a std expression for an aggregation of std value from columns in a dataframe.
-::: warning This command requires a plugin -The `polars std` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars std {flags} ``` diff --git a/commands/docs/polars_store-get.md b/commands/docs/polars_store-get.md index 6b72846b4f4..049db2ef110 100644 --- a/commands/docs/polars_store-get.md +++ b/commands/docs/polars_store-get.md @@ -2,7 +2,7 @@ title: polars store-get categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Gets a Dataframe or other object from the plugin cache. usage: | @@ -16,13 +16,6 @@ contributors: false
Gets a Dataframe or other object from the plugin cache.
-::: warning This command requires a plugin -The `polars store-get` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars store-get {flags} (key)``` diff --git a/commands/docs/polars_store-ls.md b/commands/docs/polars_store-ls.md index 59d09fbb501..e8d6248a48b 100644 --- a/commands/docs/polars_store-ls.md +++ b/commands/docs/polars_store-ls.md @@ -2,7 +2,7 @@ title: polars store-ls categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Lists stored polars objects. usage: | @@ -16,13 +16,6 @@ contributors: false
Lists stored polars objects.
-::: warning This command requires a plugin -The `polars store-ls` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars store-ls {flags} ``` diff --git a/commands/docs/polars_store-rm.md b/commands/docs/polars_store-rm.md index 7c2104360e7..91d79f25a6f 100644 --- a/commands/docs/polars_store-rm.md +++ b/commands/docs/polars_store-rm.md @@ -2,7 +2,7 @@ title: polars store-rm categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Removes a stored Dataframe or other object from the plugin cache. usage: | @@ -16,13 +16,6 @@ contributors: false
Removes a stored Dataframe or other object from the plugin cache.
-::: warning This command requires a plugin -The `polars store-rm` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars store-rm {flags} ...rest``` diff --git a/commands/docs/polars_str-join.md b/commands/docs/polars_str-join.md index 9bfabe957dc..586019975c0 100644 --- a/commands/docs/polars_str-join.md +++ b/commands/docs/polars_str-join.md @@ -2,7 +2,7 @@ title: polars str-join categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Concatenates strings within a column or dataframes usage: | @@ -16,13 +16,6 @@ contributors: false
Concatenates strings within a column or dataframes
-::: warning This command requires a plugin -The `polars str-join` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars str-join {flags} (other)``` diff --git a/commands/docs/polars_str-lengths.md b/commands/docs/polars_str-lengths.md index ae1b26e8636..5d118c4a669 100644 --- a/commands/docs/polars_str-lengths.md +++ b/commands/docs/polars_str-lengths.md @@ -2,7 +2,7 @@ title: polars str-lengths categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Get lengths of all strings. usage: | @@ -16,13 +16,6 @@ contributors: false
Get lengths of all strings.
-::: warning This command requires a plugin -The `polars str-lengths` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars str-lengths {flags} ``` diff --git a/commands/docs/polars_str-replace-all.md b/commands/docs/polars_str-replace-all.md index 67944b6dab9..075bc328856 100644 --- a/commands/docs/polars_str-replace-all.md +++ b/commands/docs/polars_str-replace-all.md @@ -2,7 +2,7 @@ title: polars str-replace-all categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Replace all (sub)strings by a regex pattern. usage: | @@ -16,13 +16,6 @@ contributors: false
Replace all (sub)strings by a regex pattern.
-::: warning This command requires a plugin -The `polars str-replace-all` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars str-replace-all {flags} ``` diff --git a/commands/docs/polars_str-replace.md b/commands/docs/polars_str-replace.md index b7c2091e405..a4aa808facc 100644 --- a/commands/docs/polars_str-replace.md +++ b/commands/docs/polars_str-replace.md @@ -2,7 +2,7 @@ title: polars str-replace categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Replace the leftmost (sub)string by a regex pattern. usage: | @@ -16,13 +16,6 @@ contributors: false
Replace the leftmost (sub)string by a regex pattern.
-::: warning This command requires a plugin -The `polars str-replace` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars str-replace {flags} ``` diff --git a/commands/docs/polars_str-slice.md b/commands/docs/polars_str-slice.md index de40287f150..fd1dbdfa618 100644 --- a/commands/docs/polars_str-slice.md +++ b/commands/docs/polars_str-slice.md @@ -2,7 +2,7 @@ title: polars str-slice categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Slices the string from the start position until the selected length. usage: | @@ -16,13 +16,6 @@ contributors: false
Slices the string from the start position until the selected length.
-::: warning This command requires a plugin -The `polars str-slice` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars str-slice {flags} (start)``` diff --git a/commands/docs/polars_str-split.md b/commands/docs/polars_str-split.md index d5b6e017b04..c0799da8c33 100644 --- a/commands/docs/polars_str-split.md +++ b/commands/docs/polars_str-split.md @@ -2,7 +2,7 @@ title: polars str-split categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Split the string by a substring. The resulting dtype is list. usage: | @@ -16,13 +16,6 @@ contributors: false
Split the string by a substring. The resulting dtype is list<str>.
-::: warning This command requires a plugin -The `polars str-split` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars str-split {flags} (expr)``` diff --git a/commands/docs/polars_str-strip-chars.md b/commands/docs/polars_str-strip-chars.md index 2501184cdda..6e641c9243c 100644 --- a/commands/docs/polars_str-strip-chars.md +++ b/commands/docs/polars_str-strip-chars.md @@ -2,7 +2,7 @@ title: polars str-strip-chars categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Strips specified characters from strings in a column usage: | @@ -16,13 +16,6 @@ contributors: false
Strips specified characters from strings in a column
-::: warning This command requires a plugin -The `polars str-strip-chars` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars str-strip-chars {flags} (pattern)``` diff --git a/commands/docs/polars_strftime.md b/commands/docs/polars_strftime.md index 6c846389603..b055ca14831 100644 --- a/commands/docs/polars_strftime.md +++ b/commands/docs/polars_strftime.md @@ -2,7 +2,7 @@ title: polars strftime categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Formats date based on string rule. usage: | @@ -16,13 +16,6 @@ contributors: false
Formats date based on string rule.
-::: warning This command requires a plugin -The `polars strftime` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars strftime {flags} (fmt)``` diff --git a/commands/docs/polars_struct-json-encode.md b/commands/docs/polars_struct-json-encode.md index e4009d05f5b..7ea2c945228 100644 --- a/commands/docs/polars_struct-json-encode.md +++ b/commands/docs/polars_struct-json-encode.md @@ -2,7 +2,7 @@ title: polars struct-json-encode categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Convert this struct to a string column with json values. usage: | @@ -16,13 +16,6 @@ contributors: false
Convert this struct to a string column with json values.
-::: warning This command requires a plugin -The `polars struct-json-encode` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars struct-json-encode {flags} ``` diff --git a/commands/docs/polars_sum.md b/commands/docs/polars_sum.md index 1ca460852aa..6c16591de0d 100644 --- a/commands/docs/polars_sum.md +++ b/commands/docs/polars_sum.md @@ -2,7 +2,7 @@ title: polars sum categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates a sum expression for an aggregation or aggregates columns to their sum value. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates a sum expression for an aggregation or aggregates columns to their sum value.
-::: warning This command requires a plugin -The `polars sum` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars sum {flags} ``` diff --git a/commands/docs/polars_summary.md b/commands/docs/polars_summary.md index bd2f4b1f04f..106161714a3 100644 --- a/commands/docs/polars_summary.md +++ b/commands/docs/polars_summary.md @@ -2,7 +2,7 @@ title: polars summary categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | For a dataframe, produces descriptive statistics (summary statistics) for its numeric columns. usage: | @@ -16,13 +16,6 @@ contributors: false
For a dataframe, produces descriptive statistics (summary statistics) for its numeric columns.
-::: warning This command requires a plugin -The `polars summary` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars summary {flags} ``` diff --git a/commands/docs/polars_take.md b/commands/docs/polars_take.md index cc46693f5d6..cb4034726d3 100644 --- a/commands/docs/polars_take.md +++ b/commands/docs/polars_take.md @@ -2,7 +2,7 @@ title: polars take categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Creates new dataframe using the given indices. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates new dataframe using the given indices.
-::: warning This command requires a plugin -The `polars take` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars take {flags} (indices)``` diff --git a/commands/docs/polars_truncate.md b/commands/docs/polars_truncate.md index 2c69ba15d52..0c5fa069879 100644 --- a/commands/docs/polars_truncate.md +++ b/commands/docs/polars_truncate.md @@ -2,7 +2,7 @@ title: polars truncate categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Divide the date/datetime range into buckets. usage: | @@ -16,13 +16,6 @@ contributors: false
Divide the date/datetime range into buckets.
-::: warning This command requires a plugin -The `polars truncate` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars truncate {flags} (every)``` @@ -42,14 +35,14 @@ See the [Plugins](/book/plugins.html) chapter in the book for more information. Truncate a series of dates by period length ```nu > seq date -b 2025-01-01 --periods 4 --increment 6wk -o "%Y-%m-%d %H:%M:%S" | polars into-df | polars as-datetime "%F %H:%M:%S" --naive | polars select datetime (polars col datetime | polars truncate 5d37m | polars as truncated) -╭───┬──────────────┬──────────────╮ -│ # │ datetime │ truncated │ -├───┼──────────────┼──────────────┤ -│ 0 │ 9 months ago │ 9 months ago │ -│ 1 │ 8 months ago │ 8 months ago │ -│ 2 │ 6 months ago │ 6 months ago │ -│ 3 │ 5 months ago │ 5 months ago │ -╰───┴──────────────┴──────────────╯ +╭───┬───────────────┬───────────────╮ +│ # │ datetime │ truncated │ +├───┼───────────────┼───────────────┤ +│ 0 │ 10 months ago │ 10 months ago │ +│ 1 │ 9 months ago │ 9 months ago │ +│ 2 │ 8 months ago │ 8 months ago │ +│ 3 │ 6 months ago │ 6 months ago │ +╰───┴───────────────┴───────────────╯ ``` diff --git a/commands/docs/polars_unique.md b/commands/docs/polars_unique.md index 7d0f5edc535..d5abe142219 100644 --- a/commands/docs/polars_unique.md +++ b/commands/docs/polars_unique.md @@ -2,7 +2,7 @@ title: polars unique categories: | dataframe or lazyframe -version: 0.108.0 +version: 0.109.0 dataframe_or_lazyframe: | Returns unique values from a dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Returns unique values from a dataframe.
-::: warning This command requires a plugin -The `polars unique` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars unique {flags} ``` diff --git a/commands/docs/polars_unnest.md b/commands/docs/polars_unnest.md index 677e2033b12..36824247ddb 100644 --- a/commands/docs/polars_unnest.md +++ b/commands/docs/polars_unnest.md @@ -2,7 +2,7 @@ title: polars unnest categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Decompose struct columns into separate columns for each of their fields. The new columns will be inserted into the dataframe at the location of the struct column. usage: | @@ -16,17 +16,14 @@ contributors: false
Decompose struct columns into separate columns for each of their fields. The new columns will be inserted into the dataframe at the location of the struct column.
-::: warning This command requires a plugin -The `polars unnest` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars unnest {flags} ...rest``` +## Flags + + - `--separator, -s {string}`: optional separator to use when creating new column names + ## Parameters - `...rest`: columns to unnest @@ -73,3 +70,19 @@ Unnest a lazy dataframe ╰───┴────┴───────┴─────╯ ``` + +Unnest with a custom separator +```nu +> [[id person]; [1 {name: "Bob", age: 36}] [2 {name: "Betty", age: 63}]] + | polars into-df -s {id: i64, person: {name: str, age: u8}} + | polars unnest person -s "_" + | polars get id person_name person_age + | polars sort-by id +╭───┬────┬─────────────┬────────────╮ +│ # │ id │ person_name │ person_age │ +├───┼────┼─────────────┼────────────┤ +│ 0 │ 1 │ Bob │ 36 │ +│ 1 │ 2 │ Betty │ 63 │ +╰───┴────┴─────────────┴────────────╯ + +``` diff --git a/commands/docs/polars_unpivot.md b/commands/docs/polars_unpivot.md index 18eda100c3a..e4d8f761865 100644 --- a/commands/docs/polars_unpivot.md +++ b/commands/docs/polars_unpivot.md @@ -2,7 +2,7 @@ title: polars unpivot categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Unpivot a DataFrame from wide to long format. usage: | @@ -16,13 +16,6 @@ contributors: false
Unpivot a DataFrame from wide to long format.
-::: warning This command requires a plugin -The `polars unpivot` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars unpivot {flags} ``` diff --git a/commands/docs/polars_uppercase.md b/commands/docs/polars_uppercase.md index bcf967706e4..7ba4a815ed6 100644 --- a/commands/docs/polars_uppercase.md +++ b/commands/docs/polars_uppercase.md @@ -2,7 +2,7 @@ title: polars uppercase categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Uppercase the strings in the column. usage: | @@ -16,13 +16,6 @@ contributors: false
Uppercase the strings in the column.
-::: warning This command requires a plugin -The `polars uppercase` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars uppercase {flags} ``` diff --git a/commands/docs/polars_value-counts.md b/commands/docs/polars_value-counts.md index 04aa8252ce7..523b03507be 100644 --- a/commands/docs/polars_value-counts.md +++ b/commands/docs/polars_value-counts.md @@ -2,7 +2,7 @@ title: polars value-counts categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Returns a dataframe with the counts for unique values in series. usage: | @@ -16,13 +16,6 @@ contributors: false
Returns a dataframe with the counts for unique values in series.
-::: warning This command requires a plugin -The `polars value-counts` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars value-counts {flags} ``` diff --git a/commands/docs/polars_var.md b/commands/docs/polars_var.md index 3988d422aa5..a02d36e43cb 100644 --- a/commands/docs/polars_var.md +++ b/commands/docs/polars_var.md @@ -2,7 +2,7 @@ title: polars var categories: | dataframe -version: 0.108.0 +version: 0.109.0 dataframe: | Create a var expression for an aggregation. usage: | @@ -16,13 +16,6 @@ contributors: false
Create a var expression for an aggregation.
-::: warning This command requires a plugin -The `polars var` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars var {flags} ``` diff --git a/commands/docs/polars_when.md b/commands/docs/polars_when.md index cff56eba3a4..6ea384562dd 100644 --- a/commands/docs/polars_when.md +++ b/commands/docs/polars_when.md @@ -2,7 +2,7 @@ title: polars when categories: | expression -version: 0.108.0 +version: 0.109.0 expression: | Creates and modifies a when expression. usage: | @@ -16,13 +16,6 @@ contributors: false
Creates and modifies a when expression.
-::: warning This command requires a plugin -The `polars when` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars when {flags} (when expression) (then expression)``` diff --git a/commands/docs/polars_with-column.md b/commands/docs/polars_with-column.md index bb68514bbc8..16405fdc639 100644 --- a/commands/docs/polars_with-column.md +++ b/commands/docs/polars_with-column.md @@ -2,7 +2,7 @@ title: polars with-column categories: | dataframe or lazyframe -version: 0.108.0 +version: 0.109.0 dataframe_or_lazyframe: | Adds a series to the dataframe. usage: | @@ -16,13 +16,6 @@ contributors: false
Adds a series to the dataframe.
-::: warning This command requires a plugin -The `polars with-column` command resides in the `polars` plugin. -To use this command, you must install and register `nu_plugin_polars`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> polars with-column {flags} ...rest``` diff --git a/commands/docs/port.md b/commands/docs/port.md index db2348c2a7e..94a5443f765 100644 --- a/commands/docs/port.md +++ b/commands/docs/port.md @@ -2,7 +2,7 @@ title: port categories: | network -version: 0.108.0 +version: 0.109.0 network: | Get a free TCP port from system. usage: | diff --git a/commands/docs/prepend.md b/commands/docs/prepend.md index 2f079127a92..045b0c6e899 100644 --- a/commands/docs/prepend.md +++ b/commands/docs/prepend.md @@ -2,7 +2,7 @@ title: prepend categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Prepend any number of rows to a table. usage: | diff --git a/commands/docs/print.md b/commands/docs/print.md index 5dbbafa7373..f1c6a7f5784 100644 --- a/commands/docs/print.md +++ b/commands/docs/print.md @@ -2,7 +2,7 @@ title: print categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Print the given values to stdout. usage: | diff --git a/commands/docs/ps.md b/commands/docs/ps.md index 34d4593e6f0..b2df8dcc02a 100644 --- a/commands/docs/ps.md +++ b/commands/docs/ps.md @@ -2,7 +2,7 @@ title: ps categories: | system -version: 0.108.0 +version: 0.109.0 system: | View information about system processes. usage: | diff --git a/commands/docs/pwd.md b/commands/docs/pwd.md index e41bab1aa6a..1b82c0017aa 100644 --- a/commands/docs/pwd.md +++ b/commands/docs/pwd.md @@ -2,7 +2,7 @@ title: pwd categories: | default -version: 0.108.0 +version: 0.109.0 default: | Return the current working directory usage: | diff --git a/commands/docs/query.md b/commands/docs/query.md index 22900d96bae..cf05b52ed1b 100644 --- a/commands/docs/query.md +++ b/commands/docs/query.md @@ -2,7 +2,7 @@ title: query categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Show all the query commands usage: | @@ -16,13 +16,6 @@ contributors: false
Show all the query commands
-::: warning This command requires a plugin -The `query` command resides in the `query` plugin. -To use this command, you must install and register `nu_plugin_query`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> query {flags} ``` diff --git a/commands/docs/query_db.md b/commands/docs/query_db.md index 6b87486c2e2..4df9bf7ea11 100644 --- a/commands/docs/query_db.md +++ b/commands/docs/query_db.md @@ -2,7 +2,7 @@ title: query db categories: | database -version: 0.108.0 +version: 0.109.0 database: | Query a SQLite database with SQL statements. usage: | diff --git a/commands/docs/query_json.md b/commands/docs/query_json.md index 58b553bf676..21a62ad7f6b 100644 --- a/commands/docs/query_json.md +++ b/commands/docs/query_json.md @@ -2,7 +2,7 @@ title: query json categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | execute json query on json file (open --raw | query json 'query string') usage: | @@ -16,13 +16,6 @@ contributors: false
execute json query on json file (open --raw <file> | query json 'query string')
-::: warning This command requires a plugin -The `query json` command resides in the `query` plugin. -To use this command, you must install and register `nu_plugin_query`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> query json {flags} (query)``` diff --git a/commands/docs/query_web.md b/commands/docs/query_web.md index 89c728671b1..da8c51f92d0 100644 --- a/commands/docs/query_web.md +++ b/commands/docs/query_web.md @@ -2,7 +2,7 @@ title: query web categories: | network -version: 0.108.0 +version: 0.109.0 network: | execute selector query on html/web usage: | @@ -16,13 +16,6 @@ contributors: false
execute selector query on html/web
-::: warning This command requires a plugin -The `query web` command resides in the `query` plugin. -To use this command, you must install and register `nu_plugin_query`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> query web {flags} ``` diff --git a/commands/docs/query_webpage-info.md b/commands/docs/query_webpage-info.md index 04588a910d0..d110105012a 100644 --- a/commands/docs/query_webpage-info.md +++ b/commands/docs/query_webpage-info.md @@ -2,7 +2,7 @@ title: query webpage-info categories: | network -version: 0.108.0 +version: 0.109.0 network: | uses the webpage crate to extract info from html: title, description, language, links, RSS feeds, Opengraph, Schema.org, and more usage: | @@ -16,13 +16,6 @@ contributors: false
uses the webpage crate to extract info from html: title, description, language, links, RSS feeds, Opengraph, Schema.org, and more
-::: warning This command requires a plugin -The `query webpage-info` command resides in the `query` plugin. -To use this command, you must install and register `nu_plugin_query`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> query webpage-info {flags} ``` diff --git a/commands/docs/query_xml.md b/commands/docs/query_xml.md index f5bc15b6e32..466f724a003 100644 --- a/commands/docs/query_xml.md +++ b/commands/docs/query_xml.md @@ -2,7 +2,7 @@ title: query xml categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Execute XPath 1.0 query on XML input usage: | @@ -16,13 +16,6 @@ contributors: false
Execute XPath 1.0 query on XML input
-::: warning This command requires a plugin -The `query xml` command resides in the `query` plugin. -To use this command, you must install and register `nu_plugin_query`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> query xml {flags} (query)``` diff --git a/commands/docs/random.md b/commands/docs/random.md index 428922630af..bc13cee7e89 100644 --- a/commands/docs/random.md +++ b/commands/docs/random.md @@ -2,7 +2,7 @@ title: random categories: | random -version: 0.108.0 +version: 0.109.0 random: | Generate a random value. usage: | diff --git a/commands/docs/random_binary.md b/commands/docs/random_binary.md index 14c62fea134..0c7927ecbc4 100644 --- a/commands/docs/random_binary.md +++ b/commands/docs/random_binary.md @@ -2,7 +2,7 @@ title: random binary categories: | random -version: 0.108.0 +version: 0.109.0 random: | Generate random bytes. usage: | diff --git a/commands/docs/random_bool.md b/commands/docs/random_bool.md index 6ce58f7d8fc..0a9956fedf0 100644 --- a/commands/docs/random_bool.md +++ b/commands/docs/random_bool.md @@ -2,7 +2,7 @@ title: random bool categories: | random -version: 0.108.0 +version: 0.109.0 random: | Generate a random boolean value. usage: | diff --git a/commands/docs/random_chars.md b/commands/docs/random_chars.md index 5d5319b0562..b29c1c01817 100644 --- a/commands/docs/random_chars.md +++ b/commands/docs/random_chars.md @@ -2,7 +2,7 @@ title: random chars categories: | random -version: 0.108.0 +version: 0.109.0 random: | Generate random chars uniformly distributed over ASCII letters and numbers: a-z, A-Z and 0-9. usage: | diff --git a/commands/docs/random_dice.md b/commands/docs/random_dice.md index d9896033f66..0ea6e336d8c 100644 --- a/commands/docs/random_dice.md +++ b/commands/docs/random_dice.md @@ -2,7 +2,7 @@ title: random dice categories: | random -version: 0.108.0 +version: 0.109.0 random: | Generate a random dice roll. usage: | diff --git a/commands/docs/random_float.md b/commands/docs/random_float.md index 08835c74bec..56eb92c302a 100644 --- a/commands/docs/random_float.md +++ b/commands/docs/random_float.md @@ -2,7 +2,7 @@ title: random float categories: | random -version: 0.108.0 +version: 0.109.0 random: | Generate a random float within a range [min..max]. usage: | diff --git a/commands/docs/random_int.md b/commands/docs/random_int.md index afef743fb1a..152f9a1f920 100644 --- a/commands/docs/random_int.md +++ b/commands/docs/random_int.md @@ -2,7 +2,7 @@ title: random int categories: | random -version: 0.108.0 +version: 0.109.0 random: | Generate a random integer [min..max]. usage: | diff --git a/commands/docs/random_uuid.md b/commands/docs/random_uuid.md index 60f3b5775f3..c415dc9493b 100644 --- a/commands/docs/random_uuid.md +++ b/commands/docs/random_uuid.md @@ -2,7 +2,7 @@ title: random uuid categories: | random -version: 0.108.0 +version: 0.109.0 random: | Generate a random uuid string of the specified version. usage: | diff --git a/commands/docs/reduce.md b/commands/docs/reduce.md index ad79bdfe9ac..e70d61e7ecb 100644 --- a/commands/docs/reduce.md +++ b/commands/docs/reduce.md @@ -2,7 +2,7 @@ title: reduce categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Aggregate a list (starting from the left) to a single value using an accumulator closure. usage: | diff --git a/commands/docs/reject.md b/commands/docs/reject.md index bc82d64c516..bb73a810680 100644 --- a/commands/docs/reject.md +++ b/commands/docs/reject.md @@ -2,7 +2,7 @@ title: reject categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Remove the given columns or rows from the table. Opposite of `select`. usage: | diff --git a/commands/docs/rename.md b/commands/docs/rename.md index b2dd4df2243..3cde7a36cce 100644 --- a/commands/docs/rename.md +++ b/commands/docs/rename.md @@ -2,7 +2,7 @@ title: rename categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Creates a new table with columns renamed. usage: | diff --git a/commands/docs/return.md b/commands/docs/return.md index fb0a63fc839..1d646e8d767 100644 --- a/commands/docs/return.md +++ b/commands/docs/return.md @@ -2,7 +2,7 @@ title: return categories: | core -version: 0.108.0 +version: 0.109.0 core: | Return early from a custom command. usage: | diff --git a/commands/docs/reverse.md b/commands/docs/reverse.md index 785a2541c3e..b83040ea66e 100644 --- a/commands/docs/reverse.md +++ b/commands/docs/reverse.md @@ -2,7 +2,7 @@ title: reverse categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Reverses the input list or table. usage: | diff --git a/commands/docs/rm.md b/commands/docs/rm.md index c597fe4eecb..feabe8ddb0b 100644 --- a/commands/docs/rm.md +++ b/commands/docs/rm.md @@ -2,7 +2,7 @@ title: rm categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Remove files and directories. usage: | diff --git a/commands/docs/roll.md b/commands/docs/roll.md index 09082324fa1..48d2cc3eaaf 100644 --- a/commands/docs/roll.md +++ b/commands/docs/roll.md @@ -2,7 +2,7 @@ title: roll categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Rolling commands for tables. usage: | diff --git a/commands/docs/roll_down.md b/commands/docs/roll_down.md index a535d2a4e2d..3db26e238c5 100644 --- a/commands/docs/roll_down.md +++ b/commands/docs/roll_down.md @@ -2,7 +2,7 @@ title: roll down categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Roll table rows down. usage: | diff --git a/commands/docs/roll_left.md b/commands/docs/roll_left.md index 6a1175d8889..b65f24e0df6 100644 --- a/commands/docs/roll_left.md +++ b/commands/docs/roll_left.md @@ -2,7 +2,7 @@ title: roll left categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Roll record or table columns left. usage: | diff --git a/commands/docs/roll_right.md b/commands/docs/roll_right.md index 22aef8547d6..da3452be602 100644 --- a/commands/docs/roll_right.md +++ b/commands/docs/roll_right.md @@ -2,7 +2,7 @@ title: roll right categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Roll table columns right. usage: | diff --git a/commands/docs/roll_up.md b/commands/docs/roll_up.md index 8de0234eec3..d6dbf3912a1 100644 --- a/commands/docs/roll_up.md +++ b/commands/docs/roll_up.md @@ -2,7 +2,7 @@ title: roll up categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Roll table rows up. usage: | diff --git a/commands/docs/rotate.md b/commands/docs/rotate.md index 19b75ac1011..66ede99749f 100644 --- a/commands/docs/rotate.md +++ b/commands/docs/rotate.md @@ -2,7 +2,7 @@ title: rotate categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Rotates a table or record clockwise (default) or counter-clockwise (use --ccw flag). usage: | diff --git a/commands/docs/run-external.md b/commands/docs/run-external.md index 4cb8535f393..1839f897f28 100644 --- a/commands/docs/run-external.md +++ b/commands/docs/run-external.md @@ -2,7 +2,7 @@ title: run-external categories: | system -version: 0.108.0 +version: 0.109.0 system: | Runs external command. usage: | diff --git a/commands/docs/save.md b/commands/docs/save.md index 8b762cb28bf..130cd823278 100644 --- a/commands/docs/save.md +++ b/commands/docs/save.md @@ -2,7 +2,7 @@ title: save categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Save a file. usage: | diff --git a/commands/docs/schema.md b/commands/docs/schema.md index addb5547385..3c283641423 100644 --- a/commands/docs/schema.md +++ b/commands/docs/schema.md @@ -2,7 +2,7 @@ title: schema categories: | database -version: 0.108.0 +version: 0.109.0 database: | Show the schema of a SQLite database. usage: | diff --git a/commands/docs/scope.md b/commands/docs/scope.md index dcf902d2a38..1db69a3476a 100644 --- a/commands/docs/scope.md +++ b/commands/docs/scope.md @@ -2,7 +2,7 @@ title: scope categories: | core -version: 0.108.0 +version: 0.109.0 core: | Commands for getting info about what is in scope. usage: | diff --git a/commands/docs/scope_aliases.md b/commands/docs/scope_aliases.md index 469dbdcade4..b8ce2237215 100644 --- a/commands/docs/scope_aliases.md +++ b/commands/docs/scope_aliases.md @@ -2,7 +2,7 @@ title: scope aliases categories: | core -version: 0.108.0 +version: 0.109.0 core: | Output info on the aliases in the current scope. usage: | diff --git a/commands/docs/scope_commands.md b/commands/docs/scope_commands.md index 016ecd38ec5..1771c2786c3 100644 --- a/commands/docs/scope_commands.md +++ b/commands/docs/scope_commands.md @@ -2,7 +2,7 @@ title: scope commands categories: | core -version: 0.108.0 +version: 0.109.0 core: | Output info on the commands in the current scope. usage: | diff --git a/commands/docs/scope_engine-stats.md b/commands/docs/scope_engine-stats.md index b6349518d7d..ad997b01f3e 100644 --- a/commands/docs/scope_engine-stats.md +++ b/commands/docs/scope_engine-stats.md @@ -2,7 +2,7 @@ title: scope engine-stats categories: | core -version: 0.108.0 +version: 0.109.0 core: | Output stats on the engine in the current state. usage: | diff --git a/commands/docs/scope_externs.md b/commands/docs/scope_externs.md index a3bcc1f5406..8087383a0fd 100644 --- a/commands/docs/scope_externs.md +++ b/commands/docs/scope_externs.md @@ -2,7 +2,7 @@ title: scope externs categories: | core -version: 0.108.0 +version: 0.109.0 core: | Output info on the known externals in the current scope. usage: | diff --git a/commands/docs/scope_modules.md b/commands/docs/scope_modules.md index 8cb0750fefe..4941f0dd4c7 100644 --- a/commands/docs/scope_modules.md +++ b/commands/docs/scope_modules.md @@ -2,7 +2,7 @@ title: scope modules categories: | core -version: 0.108.0 +version: 0.109.0 core: | Output info on the modules in the current scope. usage: | diff --git a/commands/docs/scope_variables.md b/commands/docs/scope_variables.md index 7f8dd87a932..d9d0d2fefe3 100644 --- a/commands/docs/scope_variables.md +++ b/commands/docs/scope_variables.md @@ -2,7 +2,7 @@ title: scope variables categories: | core -version: 0.108.0 +version: 0.109.0 core: | Output info on the variables in the current scope. usage: | diff --git a/commands/docs/select.md b/commands/docs/select.md index 23521c28bdd..5430d2527a4 100644 --- a/commands/docs/select.md +++ b/commands/docs/select.md @@ -2,7 +2,7 @@ title: select categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Select only these columns or rows from the input. Opposite of `reject`. usage: | diff --git a/commands/docs/seq.md b/commands/docs/seq.md index 5d7a65253ec..f21dc328b33 100644 --- a/commands/docs/seq.md +++ b/commands/docs/seq.md @@ -2,7 +2,7 @@ title: seq categories: | generators -version: 0.108.0 +version: 0.109.0 generators: | Output sequences of numbers. usage: | diff --git a/commands/docs/seq_char.md b/commands/docs/seq_char.md index 0ceb6c51617..39f7941ef02 100644 --- a/commands/docs/seq_char.md +++ b/commands/docs/seq_char.md @@ -2,7 +2,7 @@ title: seq char categories: | generators -version: 0.108.0 +version: 0.109.0 generators: | Print a sequence of ASCII characters. usage: | diff --git a/commands/docs/seq_date.md b/commands/docs/seq_date.md index 99f53bfb93b..3423f745bed 100644 --- a/commands/docs/seq_date.md +++ b/commands/docs/seq_date.md @@ -2,7 +2,7 @@ title: seq date categories: | generators -version: 0.108.0 +version: 0.109.0 generators: | Print sequences of dates. usage: | diff --git a/commands/docs/shuffle.md b/commands/docs/shuffle.md index c7f4f4e2582..1793e1218fe 100644 --- a/commands/docs/shuffle.md +++ b/commands/docs/shuffle.md @@ -2,7 +2,7 @@ title: shuffle categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Shuffle rows randomly. usage: | diff --git a/commands/docs/skip.md b/commands/docs/skip.md index 045d4730947..e9ce170a186 100644 --- a/commands/docs/skip.md +++ b/commands/docs/skip.md @@ -2,7 +2,7 @@ title: skip categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Skip the first several rows of the input. Counterpart of `drop`. Opposite of `first`. usage: | diff --git a/commands/docs/skip_until.md b/commands/docs/skip_until.md index 5bae41c9f2a..71272590857 100644 --- a/commands/docs/skip_until.md +++ b/commands/docs/skip_until.md @@ -2,7 +2,7 @@ title: skip until categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Skip elements of the input until a predicate is true. usage: | diff --git a/commands/docs/skip_while.md b/commands/docs/skip_while.md index acc9a340d7c..587d049359b 100644 --- a/commands/docs/skip_while.md +++ b/commands/docs/skip_while.md @@ -2,7 +2,7 @@ title: skip while categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Skip elements of the input while a predicate is true. usage: | diff --git a/commands/docs/sleep.md b/commands/docs/sleep.md index f9902a27308..563c075e8d1 100644 --- a/commands/docs/sleep.md +++ b/commands/docs/sleep.md @@ -2,7 +2,7 @@ title: sleep categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Delay for a specified amount of time. usage: | diff --git a/commands/docs/slice.md b/commands/docs/slice.md index 3e4762bc1f1..60c043f2c60 100644 --- a/commands/docs/slice.md +++ b/commands/docs/slice.md @@ -2,7 +2,7 @@ title: slice categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Return only the selected rows. usage: | diff --git a/commands/docs/sort-by.md b/commands/docs/sort-by.md index f5594e8aa3e..40c97250e7a 100644 --- a/commands/docs/sort-by.md +++ b/commands/docs/sort-by.md @@ -2,7 +2,7 @@ title: sort-by categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Sort by the given cell path or closure. usage: | diff --git a/commands/docs/sort.md b/commands/docs/sort.md index 4fe7b8cd133..cccd0b91f1a 100644 --- a/commands/docs/sort.md +++ b/commands/docs/sort.md @@ -2,7 +2,7 @@ title: sort categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Sort in increasing order. usage: | diff --git a/commands/docs/source-env.md b/commands/docs/source-env.md index b1442bf0a0c..dccb0eb8ad3 100644 --- a/commands/docs/source-env.md +++ b/commands/docs/source-env.md @@ -2,7 +2,7 @@ title: source-env categories: | core -version: 0.108.0 +version: 0.109.0 core: | Source the environment from a source file into the current environment. usage: | diff --git a/commands/docs/source.md b/commands/docs/source.md index 10c862b4d73..0597c68e63b 100644 --- a/commands/docs/source.md +++ b/commands/docs/source.md @@ -2,7 +2,7 @@ title: source categories: | core -version: 0.108.0 +version: 0.109.0 core: | Runs a script file in the current context. usage: | diff --git a/commands/docs/split.md b/commands/docs/split.md index 31f0ce3188a..b8ad9826642 100644 --- a/commands/docs/split.md +++ b/commands/docs/split.md @@ -2,7 +2,7 @@ title: split categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Split contents across desired subcommand (like row, column) via the separator. usage: | diff --git a/commands/docs/split_cell-path.md b/commands/docs/split_cell-path.md index fce8552d467..3f66ad544ab 100644 --- a/commands/docs/split_cell-path.md +++ b/commands/docs/split_cell-path.md @@ -2,7 +2,7 @@ title: split cell-path categories: | conversions -version: 0.108.0 +version: 0.109.0 conversions: | Split a cell-path into its components. usage: | diff --git a/commands/docs/split_chars.md b/commands/docs/split_chars.md index a779ea81f3a..40fa6e40f58 100644 --- a/commands/docs/split_chars.md +++ b/commands/docs/split_chars.md @@ -2,7 +2,7 @@ title: split chars categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Split a string into a list of characters. usage: | diff --git a/commands/docs/split_column.md b/commands/docs/split_column.md index 48106f3827d..1aee077fe1d 100644 --- a/commands/docs/split_column.md +++ b/commands/docs/split_column.md @@ -2,7 +2,7 @@ title: split column categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Split a string into multiple columns using a separator. usage: | diff --git a/commands/docs/split_list.md b/commands/docs/split_list.md index 412eb8808af..e88d5ce0a66 100644 --- a/commands/docs/split_list.md +++ b/commands/docs/split_list.md @@ -2,7 +2,7 @@ title: split list categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Split a list into multiple lists using a separator. usage: | diff --git a/commands/docs/split_row.md b/commands/docs/split_row.md index 60270c8bb77..e10a82d9d4f 100644 --- a/commands/docs/split_row.md +++ b/commands/docs/split_row.md @@ -2,7 +2,7 @@ title: split row categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Split a string into multiple rows using a separator. usage: | diff --git a/commands/docs/split_words.md b/commands/docs/split_words.md index 09a43202982..75c7914085d 100644 --- a/commands/docs/split_words.md +++ b/commands/docs/split_words.md @@ -2,7 +2,7 @@ title: split words categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Split a string's words into separate rows. usage: | diff --git a/commands/docs/start.md b/commands/docs/start.md index 27a6e57d0db..8876dc1f087 100644 --- a/commands/docs/start.md +++ b/commands/docs/start.md @@ -2,7 +2,7 @@ title: start categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Open a folder, file, or website in the default application or viewer. usage: | diff --git a/commands/docs/stor.md b/commands/docs/stor.md index 2858c2173a7..a63b611e5df 100644 --- a/commands/docs/stor.md +++ b/commands/docs/stor.md @@ -2,7 +2,7 @@ title: stor categories: | database -version: 0.108.0 +version: 0.109.0 database: | Various commands for working with the in-memory sqlite database. usage: | diff --git a/commands/docs/stor_create.md b/commands/docs/stor_create.md index f2ab5dea50b..1374ea25022 100644 --- a/commands/docs/stor_create.md +++ b/commands/docs/stor_create.md @@ -2,7 +2,7 @@ title: stor create categories: | database -version: 0.108.0 +version: 0.109.0 database: | Create a table in the in-memory sqlite database. usage: | diff --git a/commands/docs/stor_delete.md b/commands/docs/stor_delete.md index f93f346d59a..81170f6f885 100644 --- a/commands/docs/stor_delete.md +++ b/commands/docs/stor_delete.md @@ -2,7 +2,7 @@ title: stor delete categories: | database -version: 0.108.0 +version: 0.109.0 database: | Delete a table or specified rows in the in-memory sqlite database. usage: | diff --git a/commands/docs/stor_export.md b/commands/docs/stor_export.md index e7565f41f9b..1570a9b30dc 100644 --- a/commands/docs/stor_export.md +++ b/commands/docs/stor_export.md @@ -2,7 +2,7 @@ title: stor export categories: | database -version: 0.108.0 +version: 0.109.0 database: | Export the in-memory sqlite database to a sqlite database file. usage: | diff --git a/commands/docs/stor_import.md b/commands/docs/stor_import.md index fc25fa89e29..4d735d900d1 100644 --- a/commands/docs/stor_import.md +++ b/commands/docs/stor_import.md @@ -2,7 +2,7 @@ title: stor import categories: | database -version: 0.108.0 +version: 0.109.0 database: | Import a sqlite database file into the in-memory sqlite database. usage: | diff --git a/commands/docs/stor_insert.md b/commands/docs/stor_insert.md index e4e5295841d..341ba99bc1e 100644 --- a/commands/docs/stor_insert.md +++ b/commands/docs/stor_insert.md @@ -2,7 +2,7 @@ title: stor insert categories: | database -version: 0.108.0 +version: 0.109.0 database: | Insert information into a specified table in the in-memory sqlite database. usage: | diff --git a/commands/docs/stor_open.md b/commands/docs/stor_open.md index 1abeb6f6b4f..ecc96189626 100644 --- a/commands/docs/stor_open.md +++ b/commands/docs/stor_open.md @@ -2,7 +2,7 @@ title: stor open categories: | database -version: 0.108.0 +version: 0.109.0 database: | Opens the in-memory sqlite database. usage: | diff --git a/commands/docs/stor_reset.md b/commands/docs/stor_reset.md index 3174fcbbca8..c23f752258c 100644 --- a/commands/docs/stor_reset.md +++ b/commands/docs/stor_reset.md @@ -2,7 +2,7 @@ title: stor reset categories: | database -version: 0.108.0 +version: 0.109.0 database: | Reset the in-memory database by dropping all tables. usage: | diff --git a/commands/docs/stor_update.md b/commands/docs/stor_update.md index 76a0bffa90c..35ea882b78f 100644 --- a/commands/docs/stor_update.md +++ b/commands/docs/stor_update.md @@ -2,7 +2,7 @@ title: stor update categories: | database -version: 0.108.0 +version: 0.109.0 database: | Update information in a specified table in the in-memory sqlite database. usage: | diff --git a/commands/docs/str.md b/commands/docs/str.md index 0046285b66f..5ce9200c1be 100644 --- a/commands/docs/str.md +++ b/commands/docs/str.md @@ -2,7 +2,7 @@ title: str categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Various commands for working with string data. usage: | diff --git a/commands/docs/str_camel-case.md b/commands/docs/str_camel-case.md index af65c36d9f3..c206818e954 100644 --- a/commands/docs/str_camel-case.md +++ b/commands/docs/str_camel-case.md @@ -2,7 +2,7 @@ title: str camel-case categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Convert a string to camelCase. usage: | diff --git a/commands/docs/str_capitalize.md b/commands/docs/str_capitalize.md index 23678735c56..8fd7e4d0f63 100644 --- a/commands/docs/str_capitalize.md +++ b/commands/docs/str_capitalize.md @@ -2,7 +2,7 @@ title: str capitalize categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Capitalize first letter of text. usage: | diff --git a/commands/docs/str_contains.md b/commands/docs/str_contains.md index e6fba4d4c0b..d44502f4b5b 100644 --- a/commands/docs/str_contains.md +++ b/commands/docs/str_contains.md @@ -2,7 +2,7 @@ title: str contains categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Checks if string input contains a substring. usage: | diff --git a/commands/docs/str_distance.md b/commands/docs/str_distance.md index 1b427d7e32f..d832c1f2c34 100644 --- a/commands/docs/str_distance.md +++ b/commands/docs/str_distance.md @@ -2,7 +2,7 @@ title: str distance categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Compare two strings and return the edit distance/Levenshtein distance. usage: | diff --git a/commands/docs/str_downcase.md b/commands/docs/str_downcase.md index b31a2c58da8..849e13d8d6f 100644 --- a/commands/docs/str_downcase.md +++ b/commands/docs/str_downcase.md @@ -2,7 +2,7 @@ title: str downcase categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Make text lowercase. usage: | diff --git a/commands/docs/str_ends-with.md b/commands/docs/str_ends-with.md index 220f5cbd7e6..cd65d7d2591 100644 --- a/commands/docs/str_ends-with.md +++ b/commands/docs/str_ends-with.md @@ -2,7 +2,7 @@ title: str ends-with categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Check if an input ends with a string. usage: | diff --git a/commands/docs/str_expand.md b/commands/docs/str_expand.md index d3fc7155596..501f911118b 100644 --- a/commands/docs/str_expand.md +++ b/commands/docs/str_expand.md @@ -2,7 +2,7 @@ title: str expand categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Generates all possible combinations defined in brace expansion syntax. usage: | diff --git a/commands/docs/str_index-of.md b/commands/docs/str_index-of.md index d8a20e36c22..3049a807cf3 100644 --- a/commands/docs/str_index-of.md +++ b/commands/docs/str_index-of.md @@ -2,7 +2,7 @@ title: str index-of categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Returns start index of first occurrence of string in input, or -1 if no match. usage: | diff --git a/commands/docs/str_join.md b/commands/docs/str_join.md index 40f38a84c8c..e496b2b14b4 100644 --- a/commands/docs/str_join.md +++ b/commands/docs/str_join.md @@ -2,7 +2,7 @@ title: str join categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Concatenate multiple strings into a single string, with an optional separator between each. usage: | diff --git a/commands/docs/str_kebab-case.md b/commands/docs/str_kebab-case.md index d19a111a86d..be64a527bc8 100644 --- a/commands/docs/str_kebab-case.md +++ b/commands/docs/str_kebab-case.md @@ -2,7 +2,7 @@ title: str kebab-case categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Convert a string to kebab-case. usage: | diff --git a/commands/docs/str_length.md b/commands/docs/str_length.md index a0ce892e9df..dde301a8f61 100644 --- a/commands/docs/str_length.md +++ b/commands/docs/str_length.md @@ -2,7 +2,7 @@ title: str length categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Output the length of any strings in the pipeline. usage: | diff --git a/commands/docs/str_pascal-case.md b/commands/docs/str_pascal-case.md index f6bcd2235a2..432b59305d0 100644 --- a/commands/docs/str_pascal-case.md +++ b/commands/docs/str_pascal-case.md @@ -2,7 +2,7 @@ title: str pascal-case categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Convert a string to PascalCase. usage: | diff --git a/commands/docs/str_replace.md b/commands/docs/str_replace.md index a463d45040f..99d6f149edd 100644 --- a/commands/docs/str_replace.md +++ b/commands/docs/str_replace.md @@ -2,7 +2,7 @@ title: str replace categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Find and replace text. usage: | @@ -30,7 +30,7 @@ contributors: false ## Parameters - `find`: The pattern to find. - - `replace`: The replacement string. + - `replace`: The replacement string, or a closure that generates it. - `...rest`: For a data structure input, operate on strings at the given cell paths. @@ -127,3 +127,18 @@ one line another line ``` + +Find and replace backslash escape sequences using a closure +```nu +> 'string: \"abc\" backslash: \\ newline:\nend' | str replace -a -r '\\(.)' {|char| if $char == "n" { "\n" } else { $char } } +string: "abc" backslash: \ newline: +end +``` + +## Notes +The pattern to find can be a substring (default) or a regular expression (with `--regex`). + +The replacement can be a a string, possibly containing references to numbered (`$1` etc) or +named capture groups (`$name`), or it can be closure that is invoked for each match. +In the latter case, the closure is invoked with the entire match as its input and any capture +groups as its argument. It must return a string that will be used as a replacement for the match. diff --git a/commands/docs/str_reverse.md b/commands/docs/str_reverse.md index ab6f090fb47..b6e16039aab 100644 --- a/commands/docs/str_reverse.md +++ b/commands/docs/str_reverse.md @@ -2,7 +2,7 @@ title: str reverse categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Reverse every string in the pipeline. usage: | diff --git a/commands/docs/str_screaming-snake-case.md b/commands/docs/str_screaming-snake-case.md index 344eb1d61e1..665b0c622ba 100644 --- a/commands/docs/str_screaming-snake-case.md +++ b/commands/docs/str_screaming-snake-case.md @@ -2,7 +2,7 @@ title: str screaming-snake-case categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Convert a string to SCREAMING_SNAKE_CASE. usage: | diff --git a/commands/docs/str_snake-case.md b/commands/docs/str_snake-case.md index da5be3b23da..4778ced4ccc 100644 --- a/commands/docs/str_snake-case.md +++ b/commands/docs/str_snake-case.md @@ -2,7 +2,7 @@ title: str snake-case categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Convert a string to snake_case. usage: | diff --git a/commands/docs/str_starts-with.md b/commands/docs/str_starts-with.md index a1f5a69f98f..f843f1b3b06 100644 --- a/commands/docs/str_starts-with.md +++ b/commands/docs/str_starts-with.md @@ -2,7 +2,7 @@ title: str starts-with categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Check if an input starts with a string. usage: | diff --git a/commands/docs/str_stats.md b/commands/docs/str_stats.md index b7ba9c655f5..a4e90a48d87 100644 --- a/commands/docs/str_stats.md +++ b/commands/docs/str_stats.md @@ -2,7 +2,7 @@ title: str stats categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Gather word count statistics on the text. usage: | diff --git a/commands/docs/str_substring.md b/commands/docs/str_substring.md index 9108b8aa102..71682358cda 100644 --- a/commands/docs/str_substring.md +++ b/commands/docs/str_substring.md @@ -2,7 +2,7 @@ title: str substring categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Get part of a string. Note that the first character of a string is index 0. usage: | diff --git a/commands/docs/str_title-case.md b/commands/docs/str_title-case.md index 9cd8905217b..b030d078821 100644 --- a/commands/docs/str_title-case.md +++ b/commands/docs/str_title-case.md @@ -2,7 +2,7 @@ title: str title-case categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Convert a string to Title Case. usage: | diff --git a/commands/docs/str_trim.md b/commands/docs/str_trim.md index 35cb329ee44..86b8b1e39ed 100644 --- a/commands/docs/str_trim.md +++ b/commands/docs/str_trim.md @@ -2,7 +2,7 @@ title: str trim categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Trim whitespace or specific character. usage: | diff --git a/commands/docs/str_upcase.md b/commands/docs/str_upcase.md index e55ffc92f8d..1b30c423c42 100644 --- a/commands/docs/str_upcase.md +++ b/commands/docs/str_upcase.md @@ -2,7 +2,7 @@ title: str upcase categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Make text uppercase. usage: | diff --git a/commands/docs/sys.md b/commands/docs/sys.md index 4879a210770..50ba637b000 100644 --- a/commands/docs/sys.md +++ b/commands/docs/sys.md @@ -2,7 +2,7 @@ title: sys categories: | system -version: 0.108.0 +version: 0.109.0 system: | View information about the system. usage: | diff --git a/commands/docs/sys_cpu.md b/commands/docs/sys_cpu.md index 6b4dcdff047..960eef9e00d 100644 --- a/commands/docs/sys_cpu.md +++ b/commands/docs/sys_cpu.md @@ -2,7 +2,7 @@ title: sys cpu categories: | system -version: 0.108.0 +version: 0.109.0 system: | View information about the system CPUs. usage: | diff --git a/commands/docs/sys_disks.md b/commands/docs/sys_disks.md index 7ab749fe219..a1edee4629f 100644 --- a/commands/docs/sys_disks.md +++ b/commands/docs/sys_disks.md @@ -2,7 +2,7 @@ title: sys disks categories: | system -version: 0.108.0 +version: 0.109.0 system: | View information about the system disks. usage: | diff --git a/commands/docs/sys_host.md b/commands/docs/sys_host.md index 6aa294373cc..55a3542a785 100644 --- a/commands/docs/sys_host.md +++ b/commands/docs/sys_host.md @@ -2,7 +2,7 @@ title: sys host categories: | system -version: 0.108.0 +version: 0.109.0 system: | View information about the system host. usage: | diff --git a/commands/docs/sys_mem.md b/commands/docs/sys_mem.md index 1e5245e997c..7537880ac30 100644 --- a/commands/docs/sys_mem.md +++ b/commands/docs/sys_mem.md @@ -2,7 +2,7 @@ title: sys mem categories: | system -version: 0.108.0 +version: 0.109.0 system: | View information about the system memory. usage: | diff --git a/commands/docs/sys_net.md b/commands/docs/sys_net.md index 4e5203c4c76..e0295e06631 100644 --- a/commands/docs/sys_net.md +++ b/commands/docs/sys_net.md @@ -2,7 +2,7 @@ title: sys net categories: | system -version: 0.108.0 +version: 0.109.0 system: | View information about the system network interfaces. usage: | diff --git a/commands/docs/sys_temp.md b/commands/docs/sys_temp.md index 8d2aa1023be..c74b5c33295 100644 --- a/commands/docs/sys_temp.md +++ b/commands/docs/sys_temp.md @@ -2,7 +2,7 @@ title: sys temp categories: | system -version: 0.108.0 +version: 0.109.0 system: | View the temperatures of system components. usage: | diff --git a/commands/docs/sys_users.md b/commands/docs/sys_users.md index 3b2bff59124..a9a26b11652 100644 --- a/commands/docs/sys_users.md +++ b/commands/docs/sys_users.md @@ -2,7 +2,7 @@ title: sys users categories: | system -version: 0.108.0 +version: 0.109.0 system: | View information about the users on the system. usage: | diff --git a/commands/docs/table.md b/commands/docs/table.md index 831524b6479..9b3600a0ea1 100644 --- a/commands/docs/table.md +++ b/commands/docs/table.md @@ -2,7 +2,7 @@ title: table categories: | viewers -version: 0.108.0 +version: 0.109.0 viewers: | Render the table. usage: | diff --git a/commands/docs/take.md b/commands/docs/take.md index 61324d164ff..d6979cd9050 100644 --- a/commands/docs/take.md +++ b/commands/docs/take.md @@ -2,7 +2,7 @@ title: take categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Take only the first n elements of a list, or the first n bytes of a binary value. usage: | diff --git a/commands/docs/take_until.md b/commands/docs/take_until.md index 3dbece54bc8..260d156a788 100644 --- a/commands/docs/take_until.md +++ b/commands/docs/take_until.md @@ -2,7 +2,7 @@ title: take until categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Take elements of the input until a predicate is true. usage: | diff --git a/commands/docs/take_while.md b/commands/docs/take_while.md index 0f172dd0a8a..b1e4c0f66ff 100644 --- a/commands/docs/take_while.md +++ b/commands/docs/take_while.md @@ -2,7 +2,7 @@ title: take while categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Take elements of the input while a predicate is true. usage: | diff --git a/commands/docs/tee.md b/commands/docs/tee.md index 2c89e7efdbf..673e6049179 100644 --- a/commands/docs/tee.md +++ b/commands/docs/tee.md @@ -2,7 +2,7 @@ title: tee categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Copy a stream to another command in parallel. usage: | diff --git a/commands/docs/term.md b/commands/docs/term.md index e93195790ff..c0a118596a7 100644 --- a/commands/docs/term.md +++ b/commands/docs/term.md @@ -2,7 +2,7 @@ title: term categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Commands for querying information about the terminal. usage: | diff --git a/commands/docs/term_query.md b/commands/docs/term_query.md index efb6efef630..10afd172507 100644 --- a/commands/docs/term_query.md +++ b/commands/docs/term_query.md @@ -2,7 +2,7 @@ title: term query categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Query the terminal for information. usage: | diff --git a/commands/docs/term_size.md b/commands/docs/term_size.md index ae2ba0e70ed..a13fa01e976 100644 --- a/commands/docs/term_size.md +++ b/commands/docs/term_size.md @@ -2,7 +2,7 @@ title: term size categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Returns a record containing the number of columns (width) and rows (height) of the terminal. usage: | diff --git a/commands/docs/timeit.md b/commands/docs/timeit.md index 2c8879be400..84625db4108 100644 --- a/commands/docs/timeit.md +++ b/commands/docs/timeit.md @@ -2,7 +2,7 @@ title: timeit categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Time how long it takes a closure to run. usage: | diff --git a/commands/docs/to.md b/commands/docs/to.md index 586577bbe9f..e43bcc3f0e7 100644 --- a/commands/docs/to.md +++ b/commands/docs/to.md @@ -2,7 +2,7 @@ title: to categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Translate structured data to a format. usage: | diff --git a/commands/docs/to_csv.md b/commands/docs/to_csv.md index 8b97a4a886e..67cc5b5191e 100644 --- a/commands/docs/to_csv.md +++ b/commands/docs/to_csv.md @@ -2,7 +2,7 @@ title: to csv categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert table into .csv text . usage: | diff --git a/commands/docs/to_html.md b/commands/docs/to_html.md index f71925fc71d..6325df6540d 100644 --- a/commands/docs/to_html.md +++ b/commands/docs/to_html.md @@ -2,7 +2,7 @@ title: to html categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert table into simple HTML. usage: | diff --git a/commands/docs/to_json.md b/commands/docs/to_json.md index fa22dfcfb56..b67d97eba09 100644 --- a/commands/docs/to_json.md +++ b/commands/docs/to_json.md @@ -2,7 +2,7 @@ title: to json categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Converts table data into JSON text. usage: | diff --git a/commands/docs/to_md.md b/commands/docs/to_md.md index 15845d9602b..688206343c6 100644 --- a/commands/docs/to_md.md +++ b/commands/docs/to_md.md @@ -2,7 +2,7 @@ title: to md categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert table into simple Markdown. usage: | diff --git a/commands/docs/to_msgpack.md b/commands/docs/to_msgpack.md index 2e24410a9b7..73d4d6201a0 100644 --- a/commands/docs/to_msgpack.md +++ b/commands/docs/to_msgpack.md @@ -2,7 +2,7 @@ title: to msgpack categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert Nu values into MessagePack. usage: | diff --git a/commands/docs/to_msgpackz.md b/commands/docs/to_msgpackz.md index 300731f3b36..7ec7c2d0388 100644 --- a/commands/docs/to_msgpackz.md +++ b/commands/docs/to_msgpackz.md @@ -2,7 +2,7 @@ title: to msgpackz categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert Nu values into brotli-compressed MessagePack. usage: | diff --git a/commands/docs/to_nuon.md b/commands/docs/to_nuon.md index 19149ccc2a2..d7100c8300f 100644 --- a/commands/docs/to_nuon.md +++ b/commands/docs/to_nuon.md @@ -2,7 +2,7 @@ title: to nuon categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Converts table data into Nuon (Nushell Object Notation) text. usage: | diff --git a/commands/docs/to_plist.md b/commands/docs/to_plist.md index 4247ba028ac..b6f06f881d6 100644 --- a/commands/docs/to_plist.md +++ b/commands/docs/to_plist.md @@ -2,7 +2,7 @@ title: to plist categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert Nu values into plist usage: | @@ -16,13 +16,6 @@ contributors: false
Convert Nu values into plist
-::: warning This command requires a plugin -The `to plist` command resides in the `formats` plugin. -To use this command, you must install and register `nu_plugin_formats`. -See the [Plugins](/book/plugins.html) chapter in the book for more information. -::: - - ## Signature ```> to plist {flags} ``` diff --git a/commands/docs/to_text.md b/commands/docs/to_text.md index 6576f1e77d8..0beb385b0c3 100644 --- a/commands/docs/to_text.md +++ b/commands/docs/to_text.md @@ -2,7 +2,7 @@ title: to text categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Converts data into simple text. usage: | diff --git a/commands/docs/to_toml.md b/commands/docs/to_toml.md index 8946af97144..dd9ab6062ff 100644 --- a/commands/docs/to_toml.md +++ b/commands/docs/to_toml.md @@ -2,7 +2,7 @@ title: to toml categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert record into .toml text. usage: | diff --git a/commands/docs/to_tsv.md b/commands/docs/to_tsv.md index 28c3604db4b..ac2fabb5a67 100644 --- a/commands/docs/to_tsv.md +++ b/commands/docs/to_tsv.md @@ -2,7 +2,7 @@ title: to tsv categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert table into .tsv text. usage: | diff --git a/commands/docs/to_xml.md b/commands/docs/to_xml.md index 2a72980770c..66fec947d80 100644 --- a/commands/docs/to_xml.md +++ b/commands/docs/to_xml.md @@ -2,7 +2,7 @@ title: to xml categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert special record structure into .xml text. usage: | diff --git a/commands/docs/to_yaml.md b/commands/docs/to_yaml.md index f1448afad56..7acf1abd009 100644 --- a/commands/docs/to_yaml.md +++ b/commands/docs/to_yaml.md @@ -2,7 +2,7 @@ title: to yaml categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert table into .yaml/.yml text. usage: | diff --git a/commands/docs/to_yml.md b/commands/docs/to_yml.md index 530e6f9df44..abab3c41bb4 100644 --- a/commands/docs/to_yml.md +++ b/commands/docs/to_yml.md @@ -2,7 +2,7 @@ title: to yml categories: | formats -version: 0.108.0 +version: 0.109.0 formats: | Convert table into .yaml/.yml text. usage: | diff --git a/commands/docs/touch.md b/commands/docs/touch.md index 2e9bf1d75f9..96d461ed901 100644 --- a/commands/docs/touch.md +++ b/commands/docs/touch.md @@ -2,7 +2,7 @@ title: touch categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Creates one or more files. usage: | diff --git a/commands/docs/transpose.md b/commands/docs/transpose.md index 131bf699fee..5a27d442dff 100644 --- a/commands/docs/transpose.md +++ b/commands/docs/transpose.md @@ -2,7 +2,7 @@ title: transpose categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Transposes the table contents so rows become columns and columns become rows. usage: | diff --git a/commands/docs/try.md b/commands/docs/try.md index ddd6499e05e..0268a4d4ac0 100644 --- a/commands/docs/try.md +++ b/commands/docs/try.md @@ -2,7 +2,7 @@ title: try categories: | core -version: 0.108.0 +version: 0.109.0 core: | Try to run a block, if it fails optionally run a catch closure. usage: | diff --git a/commands/docs/tutor.md b/commands/docs/tutor.md index afa2a64e177..b8e3e41cb62 100644 --- a/commands/docs/tutor.md +++ b/commands/docs/tutor.md @@ -2,7 +2,7 @@ title: tutor categories: | misc -version: 0.108.0 +version: 0.109.0 misc: | Run the tutorial. To begin, run: tutor. usage: | diff --git a/commands/docs/ulimit.md b/commands/docs/ulimit.md index 29da54b8f60..6dcbaaf9794 100644 --- a/commands/docs/ulimit.md +++ b/commands/docs/ulimit.md @@ -2,7 +2,7 @@ title: ulimit categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Set or get resource usage limits. usage: | diff --git a/commands/docs/uname.md b/commands/docs/uname.md index 0067e1fbde8..4e53c28f275 100644 --- a/commands/docs/uname.md +++ b/commands/docs/uname.md @@ -2,7 +2,7 @@ title: uname categories: | system -version: 0.108.0 +version: 0.109.0 system: | Print certain system information using uutils/coreutils uname. usage: | diff --git a/commands/docs/uniq-by.md b/commands/docs/uniq-by.md index cdc33d9cb03..b8e46c0878b 100644 --- a/commands/docs/uniq-by.md +++ b/commands/docs/uniq-by.md @@ -2,7 +2,7 @@ title: uniq-by categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Return the distinct values in the input by the given column(s). usage: | diff --git a/commands/docs/uniq.md b/commands/docs/uniq.md index d5c54f01cd2..f1fd2334dcb 100644 --- a/commands/docs/uniq.md +++ b/commands/docs/uniq.md @@ -2,7 +2,7 @@ title: uniq categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Return the distinct values in the input. usage: | diff --git a/commands/docs/update.md b/commands/docs/update.md index d84f6cfbd62..b8a33241cdf 100644 --- a/commands/docs/update.md +++ b/commands/docs/update.md @@ -2,7 +2,7 @@ title: update categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Update an existing column to have a new value. usage: | diff --git a/commands/docs/update_cells.md b/commands/docs/update_cells.md index d52cdf598bd..03fb11272ad 100644 --- a/commands/docs/update_cells.md +++ b/commands/docs/update_cells.md @@ -2,7 +2,7 @@ title: update cells categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Update the table cells. usage: | @@ -49,11 +49,11 @@ Update the zero value cells to empty strings. $value } } -╭───┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────╮ -│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ -├───┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┤ -│ 0 │ 37 │ │ │ │ 37 │ │ │ -╰───┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────╯ +╭─────┬──────────────┬──────────────┬──────────────┬──────────────┬──────────────┬─────────────┬─────────────╮ +│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ +├─────┼──────────────┼──────────────┼──────────────┼──────────────┼──────────────┼─────────────┼─────────────┤ +│ 0 │ 37 │ │ │ │ 37 │ │ │ +╰─────┴──────────────┴──────────────┴──────────────┴──────────────┴──────────────┴─────────────┴─────────────╯ ``` @@ -69,11 +69,11 @@ Update the zero value cells to empty strings in 2 last columns. $value } } -╭───┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────╮ -│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ -├───┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┤ -│ 0 │ 37 │ 0 │ 0 │ 0 │ 37 │ │ │ -╰───┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────╯ +╭─────┬──────────────┬──────────────┬──────────────┬──────────────┬──────────────┬─────────────┬─────────────╮ +│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ +├─────┼──────────────┼──────────────┼──────────────┼──────────────┼──────────────┼─────────────┼─────────────┤ +│ 0 │ 37 │ 0 │ 0 │ 0 │ 37 │ │ │ +╰─────┴──────────────┴──────────────┴──────────────┴──────────────┴──────────────┴─────────────┴─────────────╯ ``` diff --git a/commands/docs/upsert.md b/commands/docs/upsert.md index 339598b9749..82cf10c81a9 100644 --- a/commands/docs/upsert.md +++ b/commands/docs/upsert.md @@ -2,7 +2,7 @@ title: upsert categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Update an existing column to have a new value, or insert a new column. usage: | diff --git a/commands/docs/url.md b/commands/docs/url.md index 44f39ab4308..5bc5c683fa9 100644 --- a/commands/docs/url.md +++ b/commands/docs/url.md @@ -2,7 +2,7 @@ title: url categories: | network -version: 0.108.0 +version: 0.109.0 network: | Various commands for working with URLs. usage: | diff --git a/commands/docs/url_build-query.md b/commands/docs/url_build-query.md index e4bc1793a4b..21ba794be2e 100644 --- a/commands/docs/url_build-query.md +++ b/commands/docs/url_build-query.md @@ -2,7 +2,7 @@ title: url build-query categories: | network -version: 0.108.0 +version: 0.109.0 network: | Converts record or table into query string applying percent-encoding. usage: | diff --git a/commands/docs/url_decode.md b/commands/docs/url_decode.md index 23a3b13510d..d9325f8314e 100644 --- a/commands/docs/url_decode.md +++ b/commands/docs/url_decode.md @@ -2,7 +2,7 @@ title: url decode categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Converts a percent-encoded web safe string to a string. usage: | diff --git a/commands/docs/url_encode.md b/commands/docs/url_encode.md index 47015f51a5d..0176a1a8e43 100644 --- a/commands/docs/url_encode.md +++ b/commands/docs/url_encode.md @@ -2,7 +2,7 @@ title: url encode categories: | strings -version: 0.108.0 +version: 0.109.0 strings: | Converts a string to a percent encoded web safe string. usage: | diff --git a/commands/docs/url_join.md b/commands/docs/url_join.md index 8e4cd92b7d8..e7c3b3f1805 100644 --- a/commands/docs/url_join.md +++ b/commands/docs/url_join.md @@ -2,7 +2,7 @@ title: url join categories: | network -version: 0.108.0 +version: 0.109.0 network: | Converts a record to url. usage: | diff --git a/commands/docs/url_parse.md b/commands/docs/url_parse.md index 06d770bb9f4..0bed87ca03e 100644 --- a/commands/docs/url_parse.md +++ b/commands/docs/url_parse.md @@ -2,7 +2,7 @@ title: url parse categories: | network -version: 0.108.0 +version: 0.109.0 network: | Parses a url. usage: | diff --git a/commands/docs/url_split-query.md b/commands/docs/url_split-query.md index 40d5dd86410..d1a6b7d9184 100644 --- a/commands/docs/url_split-query.md +++ b/commands/docs/url_split-query.md @@ -2,7 +2,7 @@ title: url split-query categories: | network -version: 0.108.0 +version: 0.109.0 network: | Converts query string into table applying percent-decoding. usage: | diff --git a/commands/docs/use.md b/commands/docs/use.md index 136356ac7fa..51a13d09d7e 100644 --- a/commands/docs/use.md +++ b/commands/docs/use.md @@ -2,7 +2,7 @@ title: use categories: | core -version: 0.108.0 +version: 0.109.0 core: | Use definitions from a module, making them available in your shell. usage: | diff --git a/commands/docs/values.md b/commands/docs/values.md index 818177297c0..576568efa9e 100644 --- a/commands/docs/values.md +++ b/commands/docs/values.md @@ -2,7 +2,7 @@ title: values categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Given a record or table, produce a list of its columns' values. usage: | diff --git a/commands/docs/version.md b/commands/docs/version.md index 49baa960134..fbb8443f295 100644 --- a/commands/docs/version.md +++ b/commands/docs/version.md @@ -2,7 +2,7 @@ title: version categories: | core -version: 0.108.0 +version: 0.109.0 core: | Display Nu version, and its build configuration. usage: | diff --git a/commands/docs/version_check.md b/commands/docs/version_check.md index ca22159b6e2..2d67d859dbf 100644 --- a/commands/docs/version_check.md +++ b/commands/docs/version_check.md @@ -2,7 +2,7 @@ title: version check categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Checks to see if you have the latest version of nushell. usage: | @@ -25,7 +25,7 @@ contributors: false | input | output | | ------- | ------ | -| nothing | string | +| nothing | record | ## Examples Check if you have the latest version of nushell diff --git a/commands/docs/view.md b/commands/docs/view.md index b5ff7782f72..dc604bf88c1 100644 --- a/commands/docs/view.md +++ b/commands/docs/view.md @@ -2,7 +2,7 @@ title: view categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | Various commands for viewing debug information. usage: | diff --git a/commands/docs/view_blocks.md b/commands/docs/view_blocks.md index 514e1b2f81d..05d64a6cbe9 100644 --- a/commands/docs/view_blocks.md +++ b/commands/docs/view_blocks.md @@ -2,7 +2,7 @@ title: view blocks categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | View the blocks registered in nushell's EngineState memory. usage: | diff --git a/commands/docs/view_files.md b/commands/docs/view_files.md index f63df83ab26..3ceb8357bbf 100644 --- a/commands/docs/view_files.md +++ b/commands/docs/view_files.md @@ -2,7 +2,7 @@ title: view files categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | View the files registered in nushell's EngineState memory. usage: | diff --git a/commands/docs/view_ir.md b/commands/docs/view_ir.md index 902bf53e4e9..ae13e5ed8d7 100644 --- a/commands/docs/view_ir.md +++ b/commands/docs/view_ir.md @@ -2,7 +2,7 @@ title: view ir categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | View the compiled IR code for a block of code. usage: | diff --git a/commands/docs/view_source.md b/commands/docs/view_source.md index e8610bff133..7487b743e25 100644 --- a/commands/docs/view_source.md +++ b/commands/docs/view_source.md @@ -2,7 +2,7 @@ title: view source categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | View a block, module, or a definition. usage: | diff --git a/commands/docs/view_span.md b/commands/docs/view_span.md index fb867f0f95d..8b56098ba54 100644 --- a/commands/docs/view_span.md +++ b/commands/docs/view_span.md @@ -2,7 +2,7 @@ title: view span categories: | debug -version: 0.108.0 +version: 0.109.0 debug: | View the contents of a span. usage: | diff --git a/commands/docs/watch.md b/commands/docs/watch.md index 4f74fb7213c..e0390fb6f37 100644 --- a/commands/docs/watch.md +++ b/commands/docs/watch.md @@ -2,7 +2,7 @@ title: watch categories: | filesystem -version: 0.108.0 +version: 0.109.0 filesystem: | Watch for file changes and execute Nu code when they happen. usage: | diff --git a/commands/docs/where.md b/commands/docs/where.md index 40c45c986eb..c49e8c76a79 100644 --- a/commands/docs/where.md +++ b/commands/docs/where.md @@ -2,7 +2,7 @@ title: where categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Filter values of an input list based on a condition. usage: | diff --git a/commands/docs/which.md b/commands/docs/which.md index 97ba9dfa680..a79529d0579 100644 --- a/commands/docs/which.md +++ b/commands/docs/which.md @@ -2,7 +2,7 @@ title: which categories: | system -version: 0.108.0 +version: 0.109.0 system: | Finds a program file, alias or custom command. If `application` is not provided, all deduplicated commands will be returned. usage: | diff --git a/commands/docs/while.md b/commands/docs/while.md index 1a5144adefb..f607f9166d6 100644 --- a/commands/docs/while.md +++ b/commands/docs/while.md @@ -2,7 +2,7 @@ title: while categories: | core -version: 0.108.0 +version: 0.109.0 core: | Conditionally run a block in a loop. usage: | diff --git a/commands/docs/whoami.md b/commands/docs/whoami.md index 29a5344a07e..08a512fb846 100644 --- a/commands/docs/whoami.md +++ b/commands/docs/whoami.md @@ -2,7 +2,7 @@ title: whoami categories: | platform -version: 0.108.0 +version: 0.109.0 platform: | Get the current username using uutils/coreutils whoami. usage: | diff --git a/commands/docs/window.md b/commands/docs/window.md index 372ce68bcf8..18ec976ef4d 100644 --- a/commands/docs/window.md +++ b/commands/docs/window.md @@ -2,7 +2,7 @@ title: window categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Creates a sliding window of `window_size` that slide by n rows/elements across input. usage: | diff --git a/commands/docs/with-env.md b/commands/docs/with-env.md index 238120bdac2..f6e1be9a747 100644 --- a/commands/docs/with-env.md +++ b/commands/docs/with-env.md @@ -2,7 +2,7 @@ title: with-env categories: | env -version: 0.108.0 +version: 0.109.0 env: | Runs a block with an environment variable set. usage: | diff --git a/commands/docs/wrap.md b/commands/docs/wrap.md index cdbc9adfc3e..19a9955e622 100644 --- a/commands/docs/wrap.md +++ b/commands/docs/wrap.md @@ -2,7 +2,7 @@ title: wrap categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Wrap the value into a column. usage: | diff --git a/commands/docs/zip.md b/commands/docs/zip.md index f49c4b0a5d1..c80c579632e 100644 --- a/commands/docs/zip.md +++ b/commands/docs/zip.md @@ -2,7 +2,7 @@ title: zip categories: | filters -version: 0.108.0 +version: 0.109.0 filters: | Combine a stream with the input. usage: | From 6dc115ca4fcedd28cf1288d39f97837597a014b6 Mon Sep 17 00:00:00 2001 From: hustcer Date: Sat, 22 Nov 2025 19:24:18 +0800 Subject: [PATCH 2/5] Refresh Nu command docs for v0.109.0 --- commands/docs/registry.md | 2 +- commands/docs/registry_query.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/docs/registry.md b/commands/docs/registry.md index 38875ed6712..582e004594c 100644 --- a/commands/docs/registry.md +++ b/commands/docs/registry.md @@ -2,7 +2,7 @@ title: registry categories: | system -version: 0.108.0 +version: 0.109.0 system: | Various commands for interacting with the system registry (Windows only). usage: | diff --git a/commands/docs/registry_query.md b/commands/docs/registry_query.md index a1f6c95e3d9..9a717908853 100644 --- a/commands/docs/registry_query.md +++ b/commands/docs/registry_query.md @@ -2,7 +2,7 @@ title: registry query categories: | system -version: 0.108.0 +version: 0.109.0 system: | Query the Windows registry. usage: | From 93e56f6c027fd1590de55cf5c4a2c987718be4fc Mon Sep 17 00:00:00 2001 From: hustcer Date: Mon, 24 Nov 2025 14:11:54 +0800 Subject: [PATCH 3/5] ci skip --- commands/docs/describe.md | 169 +++++++++++----------- commands/docs/first.md | 4 + commands/docs/from_ics.md | 15 +- commands/docs/from_xml.md | 26 ++-- commands/docs/histogram.md | 13 +- commands/docs/last.md | 4 + commands/docs/plugin_list.md | 14 +- commands/docs/polars_as-datetime.md | 8 +- commands/docs/polars_datepart.md | 28 +--- commands/docs/polars_replace-time-zone.md | 6 +- commands/docs/split_column.md | 8 +- commands/docs/update_cells.md | 20 +-- 12 files changed, 148 insertions(+), 167 deletions(-) diff --git a/commands/docs/describe.md b/commands/docs/describe.md index 98210533b31..3f64d17ca20 100644 --- a/commands/docs/describe.md +++ b/commands/docs/describe.md @@ -42,92 +42,89 @@ string Describe the type of a record in a detailed way ```nu > {shell:'true', uwu:true, features: {bugs:false, multiplatform:true, speed: 10}, fib: [1 1 2 3 5 8], on_save: {|x| $'Saving ($x)'}, first_commit: 2019-05-10, my_duration: (4min + 20sec)} | describe -d -╭───────────────┬────────────────────────────────────────────────────────────────────────────────────────────╮ -│ type │ record │ -│ detailed_type │ record, fib: list, on_save: closure, first_commit: datetime, my_duration: duration> │ -│ │ ╭──────────────┬─────────────────────────────────────────────────────────────────────────╮ │ -│ columns │ │ │ ╭───────────────┬────────────────────────╮ │ │ -│ │ │ shell │ │ type │ string │ │ │ -│ │ │ │ │ detailed_type │ string │ │ │ -│ │ │ │ │ rust_type │ &alloc::string::String │ │ │ -│ │ │ │ │ value │ true │ │ │ -│ │ │ │ ╰───────────────┴────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬──────╮ │ │ -│ │ │ uwu │ │ type │ bool │ │ │ -│ │ │ │ │ detailed_type │ bool │ │ │ -│ │ │ │ │ rust_type │ bool │ │ │ -│ │ │ │ │ value │ true │ │ │ -│ │ │ │ ╰───────────────┴──────╯ │ │ -│ │ │ │ ╭───────────────┬─────────────────────────────────────────────────────╮ │ │ -│ │ │ features │ │ type │ record │ │ │ -│ │ │ │ │ detailed_type │ record │ │ │ -│ │ │ │ │ │ ╭───────────────┬─────────────────────────────────╮ │ │ │ -│ │ │ │ │ columns │ │ │ ╭──────────────────┬──────────╮ │ │ │ │ -│ │ │ │ │ │ │ bugs │ │ type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ value │ false │ │ │ │ │ -│ │ │ │ │ │ │ │ ╰──────────────────┴──────────╯ │ │ │ │ -│ │ │ │ │ │ │ │ ╭───────────────┬──────╮ │ │ │ │ -│ │ │ │ │ │ │ multiplatform │ │ type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ value │ true │ │ │ │ │ -│ │ │ │ │ │ │ │ ╰───────────────┴──────╯ │ │ │ │ -│ │ │ │ │ │ │ │ ╭───────────────┬─────╮ │ │ │ │ -│ │ │ │ │ │ │ speed │ │ type │ int │ │ │ │ │ -│ │ │ │ │ │ │ │ │ detailed_type │ int │ │ │ │ │ -│ │ │ │ │ │ │ │ │ rust_type │ i64 │ │ │ │ │ -│ │ │ │ │ │ │ │ │ value │ 10 │ │ │ │ │ -│ │ │ │ │ │ │ │ ╰───────────────┴─────╯ │ │ │ │ -│ │ │ │ │ │ ╰───────────────┴─────────────────────────────────╯ │ │ │ -│ │ │ │ │ rust_type │ &nu_utils::shared_cow::SharedCow │ │ │ -│ │ │ │ ╰───────────────┴─────────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭─────────────────┬───────────────────────────────────────────────────╮ │ │ -│ │ │ fib │ │ type │ list │ │ │ -│ │ │ │ │ detailed_type │ list │ │ │ -│ │ │ │ │ length │ 6 │ │ │ -│ │ │ │ │ rust_type │ &mut alloc::vec::Vec │ │ │ -│ │ │ │ │ │ ╭───┬──────┬───────────────┬───────────┬───────╮ │ │ │ -│ │ │ │ │ value │ │ # │ type │ detailed_type │ rust_type │ value │ │ │ │ -│ │ │ │ │ │ ├───┼──────┼───────────────┼───────────┼───────┤ │ │ │ -│ │ │ │ │ │ │ 0 │ int │ int │ i64 │ 1 │ │ │ │ -│ │ │ │ │ │ │ 1 │ int │ int │ i64 │ 1 │ │ │ │ -│ │ │ │ │ │ │ 2 │ int │ int │ i64 │ 2 │ │ │ │ -│ │ │ │ │ │ │ 3 │ int │ int │ i64 │ 3 │ │ │ │ -│ │ │ │ │ │ │ 4 │ int │ int │ i64 │ 5 │ │ │ │ -│ │ │ │ │ │ │ 5 │ int │ int │ i64 │ 8 │ │ │ │ -│ │ │ │ │ │ ╰───┴──────┴───────────────┴───────────┴───────╯ │ │ │ -│ │ │ │ ╰─────────────────┴───────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬─────────────────────────────────────────────────────╮ │ │ -│ │ │ on_save │ │ type │ closure │ │ │ -│ │ │ │ │ detailed_type │ closure │ │ │ -│ │ │ │ │ rust_type │ &alloc::boxed::Box │ │ │ -│ │ │ │ │ value │ closure_1 │ │ │ -│ │ │ │ │ │ ╭──────────┬─────────╮ │ │ │ -│ │ │ │ │ signature │ │ name │ │ │ │ │ -│ │ │ │ │ │ │ category │ default │ │ │ │ -│ │ │ │ │ │ ╰──────────┴─────────╯ │ │ │ -│ │ │ │ ╰───────────────┴─────────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬─────────────────────────────────────────────────────╮ │ │ -│ │ │ first_commit │ │ type │ datetime │ │ │ -│ │ │ │ │ detailed_type │ datetime │ │ │ -│ │ │ │ │ rust_type │ chrono::datetime::DateTime │ │ │ -│ │ │ │ │ value │ 6 years ago │ │ │ -│ │ │ │ ╰───────────────┴─────────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬────────────╮ │ │ -│ │ │ my_duration │ │ type │ duration │ │ │ -│ │ │ │ │ detailed_type │ duration │ │ │ -│ │ │ │ │ rust_type │ i64 │ │ │ -│ │ │ │ │ value │ 4min 20sec │ │ │ -│ │ │ │ ╰───────────────┴────────────╯ │ │ -│ │ ╰──────────────┴─────────────────────────────────────────────────────────────────────────╯ │ -│ rust_type │ &nu_utils::shared_cow::SharedCow │ -╰───────────────┴────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ type │ record │ +│ detailed_type │ record, fib: list, on_save: closure, first_commit: datetime, my_duration: │ +│ │ duration> │ +│ │ ╭──────────────┬──────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ columns │ │ │ ╭───────────────┬────────────────────────╮ │ │ +│ │ │ shell │ │ type │ string │ │ │ +│ │ │ │ │ detailed_type │ string │ │ │ +│ │ │ │ │ rust_type │ &alloc::string::String │ │ │ +│ │ │ │ │ value │ true │ │ │ +│ │ │ │ ╰───────────────┴────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬──────╮ │ │ +│ │ │ uwu │ │ type │ bool │ │ │ +│ │ │ │ │ detailed_type │ bool │ │ │ +│ │ │ │ │ rust_type │ bool │ │ │ +│ │ │ │ │ value │ true │ │ │ +│ │ │ │ ╰───────────────┴──────╯ │ │ +│ │ │ │ ╭───────────────┬──────────────────────────────────────────────────────────────────────╮ │ │ +│ │ │ features │ │ type │ record │ │ │ +│ │ │ │ │ detailed_type │ record │ │ │ +│ │ │ │ │ │ ╭───────────────┬───────────────────────────╮ │ │ │ +│ │ │ │ │ columns │ │ │ ╭───────────────┬───────╮ │ │ │ │ +│ │ │ │ │ │ │ bugs │ │ type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ value │ false │ │ │ │ │ +│ │ │ │ │ │ │ │ ╰───────────────┴───────╯ │ │ │ │ +│ │ │ │ │ │ │ │ ╭───────────────┬──────╮ │ │ │ │ +│ │ │ │ │ │ │ multiplatform │ │ type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ value │ true │ │ │ │ │ +│ │ │ │ │ │ │ │ ╰───────────────┴──────╯ │ │ │ │ +│ │ │ │ │ │ │ │ ╭───────────────┬─────╮ │ │ │ │ +│ │ │ │ │ │ │ speed │ │ type │ int │ │ │ │ │ +│ │ │ │ │ │ │ │ │ detailed_type │ int │ │ │ │ │ +│ │ │ │ │ │ │ │ │ rust_type │ i64 │ │ │ │ │ +│ │ │ │ │ │ │ │ │ value │ 10 │ │ │ │ │ +│ │ │ │ │ │ │ │ ╰───────────────┴─────╯ │ │ │ │ +│ │ │ │ │ │ ╰───────────────┴───────────────────────────╯ │ │ │ +│ │ │ │ │ rust_type │ &nu_utils::shared_cow::SharedCow │ │ │ +│ │ │ │ ╰───────────────┴──────────────────────────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬──────────────────────────────────────────────────╮ │ │ +│ │ │ fib │ │ type │ list │ │ │ +│ │ │ │ │ detailed_type │ list │ │ │ +│ │ │ │ │ length │ 6 │ │ │ +│ │ │ │ │ rust_type │ &mut alloc::vec::Vec │ │ │ +│ │ │ │ │ │ ╭───┬──────┬───────────────┬───────────┬───────╮ │ │ │ +│ │ │ │ │ value │ │ # │ type │ detailed_type │ rust_type │ value │ │ │ │ +│ │ │ │ │ │ ├───┼──────┼───────────────┼───────────┼───────┤ │ │ │ +│ │ │ │ │ │ │ 0 │ int │ int │ i64 │ 1 │ │ │ │ +│ │ │ │ │ │ │ 1 │ int │ int │ i64 │ 1 │ │ │ │ +│ │ │ │ │ │ │ 2 │ int │ int │ i64 │ 2 │ │ │ │ +│ │ │ │ │ │ │ 3 │ int │ int │ i64 │ 3 │ │ │ │ +│ │ │ │ │ │ │ 4 │ int │ int │ i64 │ 5 │ │ │ │ +│ │ │ │ │ │ │ 5 │ int │ int │ i64 │ 8 │ │ │ │ +│ │ │ │ │ │ ╰───┴──────┴───────────────┴───────────┴───────╯ │ │ │ +│ │ │ │ ╰───────────────┴──────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬───────────────────────────────────────────────────────────╮ │ │ +│ │ │ on_save │ │ type │ closure │ │ │ +│ │ │ │ │ detailed_type │ closure │ │ │ +│ │ │ │ │ rust_type │ &alloc::boxed::Box │ │ │ +│ │ │ │ │ value │ closure_1 │ │ │ +│ │ │ │ │ │ ╭──────────┬─────────╮ │ │ │ +│ │ │ │ │ signature │ │ name │ │ │ │ │ +│ │ │ │ │ │ │ category │ default │ │ │ │ +│ │ │ │ │ │ ╰──────────┴─────────╯ │ │ │ +│ │ │ │ ╰───────────────┴───────────────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬────────────────────────────────────────────────────────────────╮ │ │ +│ │ │ first_commit │ │ type │ datetime │ │ │ +│ │ │ │ │ detailed_type │ datetime │ │ │ +│ │ │ │ │ rust_type │ chrono::datetime::DateTime │ │ │ +│ │ │ │ │ value │ 6 years ago │ │ │ +│ │ │ │ ╰───────────────┴────────────────────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬────────────╮ │ │ +│ │ │ my_duration │ │ type │ duration │ │ │ +│ │ │ │ │ detailed_type │ duration │ │ │ +│ │ │ │ │ rust_type │ i64 │ │ │ +│ │ │ │ │ value │ 4min 20sec │ │ │ +│ │ │ │ ╰───────────────┴────────────╯ │ │ +│ │ ╰──────────────┴──────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ rust_type │ &nu_utils::shared_cow::SharedCow │ +╰───────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ``` Describe the type of a stream with detailed information diff --git a/commands/docs/first.md b/commands/docs/first.md index 118d5d6e20e..55faa7f1a08 100644 --- a/commands/docs/first.md +++ b/commands/docs/first.md @@ -20,6 +20,10 @@ contributors: false ```> first {flags} (rows)``` +## Flags + + - `--strict, -s`: Throw an error if input is empty + ## Parameters - `rows`: Starting from the front, the number of rows to return. diff --git a/commands/docs/from_ics.md b/commands/docs/from_ics.md index 378da3af17f..fec474eb4a9 100644 --- a/commands/docs/from_ics.md +++ b/commands/docs/from_ics.md @@ -32,15 +32,10 @@ Converts ics formatted string to table ```nu > 'BEGIN:VCALENDAR END:VCALENDAR' | from ics -╭───┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────┬──────╮ -│ # │ properties │ events │ alarms │ to-Dos │ journals │ free-busys │ time │ -│ │ │ │ │ │ │ │ zone │ -│ │ │ │ │ │ │ │ s │ -├───┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────┼──────┤ -│ 0 │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 │ [lis │ -│ │ │ │ │ │ │ items] │ t 0 │ -│ │ │ │ │ │ │ │ item │ -│ │ │ │ │ │ │ │ s] │ -╰───┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────┴──────╯ +╭───┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────╮ +│ # │ properties │ events │ alarms │ to-Dos │ journals │ free-busys │ timezones │ +├───┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┤ +│ 0 │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ +╰───┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────╯ ``` diff --git a/commands/docs/from_xml.md b/commands/docs/from_xml.md index d63a3c6e377..30775147003 100644 --- a/commands/docs/from_xml.md +++ b/commands/docs/from_xml.md @@ -40,19 +40,19 @@ Converts xml formatted string to record Event ' | from xml -╭──────────────────────┬─────────────────────────────────────────────────────────────────────────────────────╮ -│ tag │ note │ -│ attributes │ {record 0 fields} │ -│ │ ╭───┬──────────┬───────────────────┬────────────────────────────────────╮ │ -│ content │ │ # │ tag │ attributes │ content │ │ -│ │ ├───┼──────────┼───────────────────┼────────────────────────────────────┤ │ -│ │ │ 0 │ remember │ {record 0 fields} │ ╭───┬─────┬────────────┬─────────╮ │ │ -│ │ │ │ │ │ │ # │ tag │ attributes │ content │ │ │ -│ │ │ │ │ │ ├───┼─────┼────────────┼─────────┤ │ │ -│ │ │ │ │ │ │ 0 │ │ │ Event │ │ │ -│ │ │ │ │ │ ╰───┴─────┴────────────┴─────────╯ │ │ -│ │ ╰───┴──────────┴───────────────────┴────────────────────────────────────╯ │ -╰──────────────────────┴─────────────────────────────────────────────────────────────────────────────────────╯ +╭────────────┬───────────────────────────────────────────────────────────────────────────╮ +│ tag │ note │ +│ attributes │ {record 0 fields} │ +│ │ ╭───┬──────────┬───────────────────┬────────────────────────────────────╮ │ +│ content │ │ # │ tag │ attributes │ content │ │ +│ │ ├───┼──────────┼───────────────────┼────────────────────────────────────┤ │ +│ │ │ 0 │ remember │ {record 0 fields} │ ╭───┬─────┬────────────┬─────────╮ │ │ +│ │ │ │ │ │ │ # │ tag │ attributes │ content │ │ │ +│ │ │ │ │ │ ├───┼─────┼────────────┼─────────┤ │ │ +│ │ │ │ │ │ │ 0 │ │ │ Event │ │ │ +│ │ │ │ │ │ ╰───┴─────┴────────────┴─────────╯ │ │ +│ │ ╰───┴──────────┴───────────────────┴────────────────────────────────────╯ │ +╰────────────┴───────────────────────────────────────────────────────────────────────────╯ ``` ## Notes diff --git a/commands/docs/histogram.md b/commands/docs/histogram.md index 989eec667e2..9481b3048ce 100644 --- a/commands/docs/histogram.md +++ b/commands/docs/histogram.md @@ -52,13 +52,12 @@ Compute a histogram for the types of files, with frequency column named freq Compute a histogram for a list of numbers ```nu > [1 2 1] | histogram -╭───┬───────┬───────┬──────────┬────────────┬────────────────────────────────────────────────────────────────╮ -│ # │ value │ count │ quantile │ percentage │ frequency │ -├───┼───────┼───────┼──────────┼────────────┼────────────────────────────────────────────────────────────────┤ -│ 0 │ 1 │ 2 │ 0.67 │ 66.67% │ ************************************************************** │ -│ │ │ │ │ │ **** │ -│ 1 │ 2 │ 1 │ 0.33 │ 33.33% │ ********************************* │ -╰───┴───────┴───────┴──────────┴────────────┴────────────────────────────────────────────────────────────────╯ +╭───┬───────┬───────┬──────────┬────────────┬────────────────────────────────────────────────────────────────────╮ +│ # │ value │ count │ quantile │ percentage │ frequency │ +├───┼───────┼───────┼──────────┼────────────┼────────────────────────────────────────────────────────────────────┤ +│ 0 │ 1 │ 2 │ 0.67 │ 66.67% │ ****************************************************************** │ +│ 1 │ 2 │ 1 │ 0.33 │ 33.33% │ ********************************* │ +╰───┴───────┴───────┴──────────┴────────────┴────────────────────────────────────────────────────────────────────╯ ``` diff --git a/commands/docs/last.md b/commands/docs/last.md index b7957a65e56..0363cddf1e4 100644 --- a/commands/docs/last.md +++ b/commands/docs/last.md @@ -20,6 +20,10 @@ contributors: false ```> last {flags} (rows)``` +## Flags + + - `--strict, -s`: Throw an error if input is empty + ## Parameters - `rows`: Starting from the back, the number of rows to return. diff --git a/commands/docs/plugin_list.md b/commands/docs/plugin_list.md index 262845fe4a1..c31034d3c28 100644 --- a/commands/docs/plugin_list.md +++ b/commands/docs/plugin_list.md @@ -37,13 +37,13 @@ contributors: false List installed plugins. ```nu > plugin list -╭────┬───────┬─────────────────────┬──────────┬────────┬───────────────────────────────┬───────┬─────────────╮ -│ # │ name │ version │ status │ pid │ filename │ shell │ commands │ -├────┼───────┼─────────────────────┼──────────┼────────┼───────────────────────────────┼───────┼─────────────┤ -│ 0 │ inc │ 0.109.0 │ running │ 106480 │ /opt/nu/plugins/nu_plugin_inc │ │ ╭───┬─────╮ │ -│ │ │ │ │ │ │ │ │ 0 │ inc │ │ -│ │ │ │ │ │ │ │ ╰───┴─────╯ │ -╰────┴───────┴─────────────────────┴──────────┴────────┴───────────────────────────────┴───────┴─────────────╯ +╭───┬──────┬────────────────────┬─────────┬────────┬───────────────────────────────┬───────┬─────────────╮ +│ # │ name │ version │ status │ pid │ filename │ shell │ commands │ +├───┼──────┼────────────────────┼─────────┼────────┼───────────────────────────────┼───────┼─────────────┤ +│ 0 │ inc │ 0.109.0 │ running │ 106480 │ /opt/nu/plugins/nu_plugin_inc │ │ ╭───┬─────╮ │ +│ │ │ │ │ │ │ │ │ 0 │ inc │ │ +│ │ │ │ │ │ │ │ ╰───┴─────╯ │ +╰───┴──────┴────────────────────┴─────────┴────────┴───────────────────────────────┴───────┴─────────────╯ ``` diff --git a/commands/docs/polars_as-datetime.md b/commands/docs/polars_as-datetime.md index 7baa465bacf..5eb78811b97 100644 --- a/commands/docs/polars_as-datetime.md +++ b/commands/docs/polars_as-datetime.md @@ -88,10 +88,10 @@ Converts string to datetime using the `--not-exact` flag even with excessive sym ╭───┬─────────────╮ │ # │ datetime │ ├───┼─────────────┤ -│ 0 │ 2 weeks ago │ -│ 1 │ 2 weeks ago │ -│ 2 │ 2 weeks ago │ -│ 3 │ 2 weeks ago │ +│ 0 │ 3 weeks ago │ +│ 1 │ 3 weeks ago │ +│ 2 │ 3 weeks ago │ +│ 3 │ 3 weeks ago │ ╰───┴─────────────╯ ``` diff --git a/commands/docs/polars_datepart.md b/commands/docs/polars_datepart.md index 42d4d457ab2..d8efff55722 100644 --- a/commands/docs/polars_datepart.md +++ b/commands/docs/polars_datepart.md @@ -53,28 +53,10 @@ Creates an expression to capture multiple date parts (polars col datetime | polars datepart minute | polars as datetime_minute ), (polars col datetime | polars datepart second | polars as datetime_second ), (polars col datetime | polars datepart nanosecond | polars as datetime_ns ) ] -╭───┬─────────────┬───────────────┬────────────────┬──────────────┬───────────────┬─────────────────┬────┬───╮ -│ # │ datetime │ datetime_year │ datetime_month │ datetime_day │ datetime_hour │ datetime_minute │ da │ d │ -│ │ │ │ │ │ │ │ te │ a │ -│ │ │ │ │ │ │ │ ti │ t │ -│ │ │ │ │ │ │ │ me │ e │ -│ │ │ │ │ │ │ │ _s │ t │ -│ │ │ │ │ │ │ │ ec │ i │ -│ │ │ │ │ │ │ │ on │ m │ -│ │ │ │ │ │ │ │ d │ e │ -│ │ │ │ │ │ │ │ │ _ │ -│ │ │ │ │ │ │ │ │ n │ -│ │ │ │ │ │ │ │ │ s │ -├───┼─────────────┼───────────────┼────────────────┼──────────────┼───────────────┼─────────────────┼────┼───┤ -│ 0 │ 3 years ago │ 2021 │ 12 │ 30 │ 1 │ 2 │ 3 │ 1 │ -│ │ │ │ │ │ │ │ │ 2 │ -│ │ │ │ │ │ │ │ │ 3 │ -│ │ │ │ │ │ │ │ │ 4 │ -│ │ │ │ │ │ │ │ │ 5 │ -│ │ │ │ │ │ │ │ │ 6 │ -│ │ │ │ │ │ │ │ │ 7 │ -│ │ │ │ │ │ │ │ │ 8 │ -│ │ │ │ │ │ │ │ │ 9 │ -╰───┴─────────────┴───────────────┴────────────────┴──────────────┴───────────────┴─────────────────┴────┴───╯ +╭───┬─────────────┬───────────────┬────────────────┬──────────────┬───────────────┬─────────────────┬─────────────────┬─────────────╮ +│ # │ datetime │ datetime_year │ datetime_month │ datetime_day │ datetime_hour │ datetime_minute │ datetime_second │ datetime_ns │ +├───┼─────────────┼───────────────┼────────────────┼──────────────┼───────────────┼─────────────────┼─────────────────┼─────────────┤ +│ 0 │ 3 years ago │ 2021 │ 12 │ 30 │ 1 │ 2 │ 3 │ 123456789 │ +╰───┴─────────────┴───────────────┴────────────────┴──────────────┴───────────────┴─────────────────┴─────────────────┴─────────────╯ ``` diff --git a/commands/docs/polars_replace-time-zone.md b/commands/docs/polars_replace-time-zone.md index 51c2b3c98df..e266c61afd9 100644 --- a/commands/docs/polars_replace-time-zone.md +++ b/commands/docs/polars_replace-time-zone.md @@ -64,10 +64,10 @@ Apply timezone with ambiguous datetime ╭───┬─────────────╮ │ # │ datetime │ ├───┼─────────────┤ -│ 0 │ 2 weeks ago │ +│ 0 │ 3 weeks ago │ │ 1 │ │ -│ 2 │ 2 weeks ago │ -│ 3 │ 2 weeks ago │ +│ 2 │ 3 weeks ago │ +│ 3 │ 3 weeks ago │ ╰───┴─────────────╯ ``` diff --git a/commands/docs/split_column.md b/commands/docs/split_column.md index 1aee077fe1d..338dd6fde70 100644 --- a/commands/docs/split_column.md +++ b/commands/docs/split_column.md @@ -44,7 +44,7 @@ Split a string into columns by the specified separator ```nu > 'a--b--c' | split column '--' ╭───┬─────────┬─────────┬─────────╮ -│ # │ column1 │ column2 │ column3 │ +│ # │ column0 │ column1 │ column2 │ ├───┼─────────┼─────────┼─────────┤ │ 0 │ a │ b │ c │ ╰───┴─────────┴─────────┴─────────╯ @@ -55,7 +55,7 @@ Split a string into columns of char and remove the empty columns ```nu > 'abc' | split column --collapse-empty '' ╭───┬─────────┬─────────┬─────────╮ -│ # │ column1 │ column2 │ column3 │ +│ # │ column0 │ column1 │ column2 │ ├───┼─────────┼─────────┼─────────┤ │ 0 │ a │ b │ c │ ╰───┴─────────┴─────────┴─────────╯ @@ -66,7 +66,7 @@ Split a list of strings into a table ```nu > ['a-b' 'c-d'] | split column - ╭───┬─────────┬─────────╮ -│ # │ column1 │ column2 │ +│ # │ column0 │ column1 │ ├───┼─────────┼─────────┤ │ 0 │ a │ b │ │ 1 │ c │ d │ @@ -78,7 +78,7 @@ Split a list of strings into a table, ignoring padding ```nu > ['a - b' 'c - d'] | split column --regex '\s*-\s*' ╭───┬─────────┬─────────╮ -│ # │ column1 │ column2 │ +│ # │ column0 │ column1 │ ├───┼─────────┼─────────┤ │ 0 │ a │ b │ │ 1 │ c │ d │ diff --git a/commands/docs/update_cells.md b/commands/docs/update_cells.md index 03fb11272ad..ab9a062daad 100644 --- a/commands/docs/update_cells.md +++ b/commands/docs/update_cells.md @@ -49,11 +49,11 @@ Update the zero value cells to empty strings. $value } } -╭─────┬──────────────┬──────────────┬──────────────┬──────────────┬──────────────┬─────────────┬─────────────╮ -│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ -├─────┼──────────────┼──────────────┼──────────────┼──────────────┼──────────────┼─────────────┼─────────────┤ -│ 0 │ 37 │ │ │ │ 37 │ │ │ -╰─────┴──────────────┴──────────────┴──────────────┴──────────────┴──────────────┴─────────────┴─────────────╯ +╭───┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────╮ +│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ +├───┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┤ +│ 0 │ 37 │ │ │ │ 37 │ │ │ +╰───┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────╯ ``` @@ -69,11 +69,11 @@ Update the zero value cells to empty strings in 2 last columns. $value } } -╭─────┬──────────────┬──────────────┬──────────────┬──────────────┬──────────────┬─────────────┬─────────────╮ -│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ -├─────┼──────────────┼──────────────┼──────────────┼──────────────┼──────────────┼─────────────┼─────────────┤ -│ 0 │ 37 │ 0 │ 0 │ 0 │ 37 │ │ │ -╰─────┴──────────────┴──────────────┴──────────────┴──────────────┴──────────────┴─────────────┴─────────────╯ +╭───┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────╮ +│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ +├───┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┤ +│ 0 │ 37 │ 0 │ 0 │ 0 │ 37 │ │ │ +╰───┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────╯ ``` From 562e379a2d06096b5ac929ffa6d212154f88728a Mon Sep 17 00:00:00 2001 From: hustcer Date: Mon, 24 Nov 2025 14:13:15 +0800 Subject: [PATCH 4/5] ci skip --- commands/docs/describe.md | 169 ++++++++++++++++--------------- commands/docs/from_ics.md | 15 ++- commands/docs/from_xml.md | 26 ++--- commands/docs/histogram.md | 13 +-- commands/docs/plugin_list.md | 14 +-- commands/docs/polars_datepart.md | 28 ++++- commands/docs/update_cells.md | 20 ++-- 7 files changed, 156 insertions(+), 129 deletions(-) diff --git a/commands/docs/describe.md b/commands/docs/describe.md index 3f64d17ca20..98210533b31 100644 --- a/commands/docs/describe.md +++ b/commands/docs/describe.md @@ -42,89 +42,92 @@ string Describe the type of a record in a detailed way ```nu > {shell:'true', uwu:true, features: {bugs:false, multiplatform:true, speed: 10}, fib: [1 1 2 3 5 8], on_save: {|x| $'Saving ($x)'}, first_commit: 2019-05-10, my_duration: (4min + 20sec)} | describe -d -╭───────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ type │ record │ -│ detailed_type │ record, fib: list, on_save: closure, first_commit: datetime, my_duration: │ -│ │ duration> │ -│ │ ╭──────────────┬──────────────────────────────────────────────────────────────────────────────────────────╮ │ -│ columns │ │ │ ╭───────────────┬────────────────────────╮ │ │ -│ │ │ shell │ │ type │ string │ │ │ -│ │ │ │ │ detailed_type │ string │ │ │ -│ │ │ │ │ rust_type │ &alloc::string::String │ │ │ -│ │ │ │ │ value │ true │ │ │ -│ │ │ │ ╰───────────────┴────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬──────╮ │ │ -│ │ │ uwu │ │ type │ bool │ │ │ -│ │ │ │ │ detailed_type │ bool │ │ │ -│ │ │ │ │ rust_type │ bool │ │ │ -│ │ │ │ │ value │ true │ │ │ -│ │ │ │ ╰───────────────┴──────╯ │ │ -│ │ │ │ ╭───────────────┬──────────────────────────────────────────────────────────────────────╮ │ │ -│ │ │ features │ │ type │ record │ │ │ -│ │ │ │ │ detailed_type │ record │ │ │ -│ │ │ │ │ │ ╭───────────────┬───────────────────────────╮ │ │ │ -│ │ │ │ │ columns │ │ │ ╭───────────────┬───────╮ │ │ │ │ -│ │ │ │ │ │ │ bugs │ │ type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ value │ false │ │ │ │ │ -│ │ │ │ │ │ │ │ ╰───────────────┴───────╯ │ │ │ │ -│ │ │ │ │ │ │ │ ╭───────────────┬──────╮ │ │ │ │ -│ │ │ │ │ │ │ multiplatform │ │ type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ -│ │ │ │ │ │ │ │ │ value │ true │ │ │ │ │ -│ │ │ │ │ │ │ │ ╰───────────────┴──────╯ │ │ │ │ -│ │ │ │ │ │ │ │ ╭───────────────┬─────╮ │ │ │ │ -│ │ │ │ │ │ │ speed │ │ type │ int │ │ │ │ │ -│ │ │ │ │ │ │ │ │ detailed_type │ int │ │ │ │ │ -│ │ │ │ │ │ │ │ │ rust_type │ i64 │ │ │ │ │ -│ │ │ │ │ │ │ │ │ value │ 10 │ │ │ │ │ -│ │ │ │ │ │ │ │ ╰───────────────┴─────╯ │ │ │ │ -│ │ │ │ │ │ ╰───────────────┴───────────────────────────╯ │ │ │ -│ │ │ │ │ rust_type │ &nu_utils::shared_cow::SharedCow │ │ │ -│ │ │ │ ╰───────────────┴──────────────────────────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬──────────────────────────────────────────────────╮ │ │ -│ │ │ fib │ │ type │ list │ │ │ -│ │ │ │ │ detailed_type │ list │ │ │ -│ │ │ │ │ length │ 6 │ │ │ -│ │ │ │ │ rust_type │ &mut alloc::vec::Vec │ │ │ -│ │ │ │ │ │ ╭───┬──────┬───────────────┬───────────┬───────╮ │ │ │ -│ │ │ │ │ value │ │ # │ type │ detailed_type │ rust_type │ value │ │ │ │ -│ │ │ │ │ │ ├───┼──────┼───────────────┼───────────┼───────┤ │ │ │ -│ │ │ │ │ │ │ 0 │ int │ int │ i64 │ 1 │ │ │ │ -│ │ │ │ │ │ │ 1 │ int │ int │ i64 │ 1 │ │ │ │ -│ │ │ │ │ │ │ 2 │ int │ int │ i64 │ 2 │ │ │ │ -│ │ │ │ │ │ │ 3 │ int │ int │ i64 │ 3 │ │ │ │ -│ │ │ │ │ │ │ 4 │ int │ int │ i64 │ 5 │ │ │ │ -│ │ │ │ │ │ │ 5 │ int │ int │ i64 │ 8 │ │ │ │ -│ │ │ │ │ │ ╰───┴──────┴───────────────┴───────────┴───────╯ │ │ │ -│ │ │ │ ╰───────────────┴──────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬───────────────────────────────────────────────────────────╮ │ │ -│ │ │ on_save │ │ type │ closure │ │ │ -│ │ │ │ │ detailed_type │ closure │ │ │ -│ │ │ │ │ rust_type │ &alloc::boxed::Box │ │ │ -│ │ │ │ │ value │ closure_1 │ │ │ -│ │ │ │ │ │ ╭──────────┬─────────╮ │ │ │ -│ │ │ │ │ signature │ │ name │ │ │ │ │ -│ │ │ │ │ │ │ category │ default │ │ │ │ -│ │ │ │ │ │ ╰──────────┴─────────╯ │ │ │ -│ │ │ │ ╰───────────────┴───────────────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬────────────────────────────────────────────────────────────────╮ │ │ -│ │ │ first_commit │ │ type │ datetime │ │ │ -│ │ │ │ │ detailed_type │ datetime │ │ │ -│ │ │ │ │ rust_type │ chrono::datetime::DateTime │ │ │ -│ │ │ │ │ value │ 6 years ago │ │ │ -│ │ │ │ ╰───────────────┴────────────────────────────────────────────────────────────────╯ │ │ -│ │ │ │ ╭───────────────┬────────────╮ │ │ -│ │ │ my_duration │ │ type │ duration │ │ │ -│ │ │ │ │ detailed_type │ duration │ │ │ -│ │ │ │ │ rust_type │ i64 │ │ │ -│ │ │ │ │ value │ 4min 20sec │ │ │ -│ │ │ │ ╰───────────────┴────────────╯ │ │ -│ │ ╰──────────────┴──────────────────────────────────────────────────────────────────────────────────────────╯ │ -│ rust_type │ &nu_utils::shared_cow::SharedCow │ -╰───────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────┬────────────────────────────────────────────────────────────────────────────────────────────╮ +│ type │ record │ +│ detailed_type │ record, fib: list, on_save: closure, first_commit: datetime, my_duration: duration> │ +│ │ ╭──────────────┬─────────────────────────────────────────────────────────────────────────╮ │ +│ columns │ │ │ ╭───────────────┬────────────────────────╮ │ │ +│ │ │ shell │ │ type │ string │ │ │ +│ │ │ │ │ detailed_type │ string │ │ │ +│ │ │ │ │ rust_type │ &alloc::string::String │ │ │ +│ │ │ │ │ value │ true │ │ │ +│ │ │ │ ╰───────────────┴────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬──────╮ │ │ +│ │ │ uwu │ │ type │ bool │ │ │ +│ │ │ │ │ detailed_type │ bool │ │ │ +│ │ │ │ │ rust_type │ bool │ │ │ +│ │ │ │ │ value │ true │ │ │ +│ │ │ │ ╰───────────────┴──────╯ │ │ +│ │ │ │ ╭───────────────┬─────────────────────────────────────────────────────╮ │ │ +│ │ │ features │ │ type │ record │ │ │ +│ │ │ │ │ detailed_type │ record │ │ │ +│ │ │ │ │ │ ╭───────────────┬─────────────────────────────────╮ │ │ │ +│ │ │ │ │ columns │ │ │ ╭──────────────────┬──────────╮ │ │ │ │ +│ │ │ │ │ │ │ bugs │ │ type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ value │ false │ │ │ │ │ +│ │ │ │ │ │ │ │ ╰──────────────────┴──────────╯ │ │ │ │ +│ │ │ │ │ │ │ │ ╭───────────────┬──────╮ │ │ │ │ +│ │ │ │ │ │ │ multiplatform │ │ type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ detailed_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ rust_type │ bool │ │ │ │ │ +│ │ │ │ │ │ │ │ │ value │ true │ │ │ │ │ +│ │ │ │ │ │ │ │ ╰───────────────┴──────╯ │ │ │ │ +│ │ │ │ │ │ │ │ ╭───────────────┬─────╮ │ │ │ │ +│ │ │ │ │ │ │ speed │ │ type │ int │ │ │ │ │ +│ │ │ │ │ │ │ │ │ detailed_type │ int │ │ │ │ │ +│ │ │ │ │ │ │ │ │ rust_type │ i64 │ │ │ │ │ +│ │ │ │ │ │ │ │ │ value │ 10 │ │ │ │ │ +│ │ │ │ │ │ │ │ ╰───────────────┴─────╯ │ │ │ │ +│ │ │ │ │ │ ╰───────────────┴─────────────────────────────────╯ │ │ │ +│ │ │ │ │ rust_type │ &nu_utils::shared_cow::SharedCow │ │ │ +│ │ │ │ ╰───────────────┴─────────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭─────────────────┬───────────────────────────────────────────────────╮ │ │ +│ │ │ fib │ │ type │ list │ │ │ +│ │ │ │ │ detailed_type │ list │ │ │ +│ │ │ │ │ length │ 6 │ │ │ +│ │ │ │ │ rust_type │ &mut alloc::vec::Vec │ │ │ +│ │ │ │ │ │ ╭───┬──────┬───────────────┬───────────┬───────╮ │ │ │ +│ │ │ │ │ value │ │ # │ type │ detailed_type │ rust_type │ value │ │ │ │ +│ │ │ │ │ │ ├───┼──────┼───────────────┼───────────┼───────┤ │ │ │ +│ │ │ │ │ │ │ 0 │ int │ int │ i64 │ 1 │ │ │ │ +│ │ │ │ │ │ │ 1 │ int │ int │ i64 │ 1 │ │ │ │ +│ │ │ │ │ │ │ 2 │ int │ int │ i64 │ 2 │ │ │ │ +│ │ │ │ │ │ │ 3 │ int │ int │ i64 │ 3 │ │ │ │ +│ │ │ │ │ │ │ 4 │ int │ int │ i64 │ 5 │ │ │ │ +│ │ │ │ │ │ │ 5 │ int │ int │ i64 │ 8 │ │ │ │ +│ │ │ │ │ │ ╰───┴──────┴───────────────┴───────────┴───────╯ │ │ │ +│ │ │ │ ╰─────────────────┴───────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬─────────────────────────────────────────────────────╮ │ │ +│ │ │ on_save │ │ type │ closure │ │ │ +│ │ │ │ │ detailed_type │ closure │ │ │ +│ │ │ │ │ rust_type │ &alloc::boxed::Box │ │ │ +│ │ │ │ │ value │ closure_1 │ │ │ +│ │ │ │ │ │ ╭──────────┬─────────╮ │ │ │ +│ │ │ │ │ signature │ │ name │ │ │ │ │ +│ │ │ │ │ │ │ category │ default │ │ │ │ +│ │ │ │ │ │ ╰──────────┴─────────╯ │ │ │ +│ │ │ │ ╰───────────────┴─────────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬─────────────────────────────────────────────────────╮ │ │ +│ │ │ first_commit │ │ type │ datetime │ │ │ +│ │ │ │ │ detailed_type │ datetime │ │ │ +│ │ │ │ │ rust_type │ chrono::datetime::DateTime │ │ │ +│ │ │ │ │ value │ 6 years ago │ │ │ +│ │ │ │ ╰───────────────┴─────────────────────────────────────────────────────╯ │ │ +│ │ │ │ ╭───────────────┬────────────╮ │ │ +│ │ │ my_duration │ │ type │ duration │ │ │ +│ │ │ │ │ detailed_type │ duration │ │ │ +│ │ │ │ │ rust_type │ i64 │ │ │ +│ │ │ │ │ value │ 4min 20sec │ │ │ +│ │ │ │ ╰───────────────┴────────────╯ │ │ +│ │ ╰──────────────┴─────────────────────────────────────────────────────────────────────────╯ │ +│ rust_type │ &nu_utils::shared_cow::SharedCow │ +╰───────────────┴────────────────────────────────────────────────────────────────────────────────────────────╯ ``` Describe the type of a stream with detailed information diff --git a/commands/docs/from_ics.md b/commands/docs/from_ics.md index fec474eb4a9..378da3af17f 100644 --- a/commands/docs/from_ics.md +++ b/commands/docs/from_ics.md @@ -32,10 +32,15 @@ Converts ics formatted string to table ```nu > 'BEGIN:VCALENDAR END:VCALENDAR' | from ics -╭───┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────╮ -│ # │ properties │ events │ alarms │ to-Dos │ journals │ free-busys │ timezones │ -├───┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┤ -│ 0 │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ -╰───┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────╯ +╭───┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────┬──────╮ +│ # │ properties │ events │ alarms │ to-Dos │ journals │ free-busys │ time │ +│ │ │ │ │ │ │ │ zone │ +│ │ │ │ │ │ │ │ s │ +├───┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────┼──────┤ +│ 0 │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 │ [lis │ +│ │ │ │ │ │ │ items] │ t 0 │ +│ │ │ │ │ │ │ │ item │ +│ │ │ │ │ │ │ │ s] │ +╰───┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────┴──────╯ ``` diff --git a/commands/docs/from_xml.md b/commands/docs/from_xml.md index 30775147003..d63a3c6e377 100644 --- a/commands/docs/from_xml.md +++ b/commands/docs/from_xml.md @@ -40,19 +40,19 @@ Converts xml formatted string to record Event ' | from xml -╭────────────┬───────────────────────────────────────────────────────────────────────────╮ -│ tag │ note │ -│ attributes │ {record 0 fields} │ -│ │ ╭───┬──────────┬───────────────────┬────────────────────────────────────╮ │ -│ content │ │ # │ tag │ attributes │ content │ │ -│ │ ├───┼──────────┼───────────────────┼────────────────────────────────────┤ │ -│ │ │ 0 │ remember │ {record 0 fields} │ ╭───┬─────┬────────────┬─────────╮ │ │ -│ │ │ │ │ │ │ # │ tag │ attributes │ content │ │ │ -│ │ │ │ │ │ ├───┼─────┼────────────┼─────────┤ │ │ -│ │ │ │ │ │ │ 0 │ │ │ Event │ │ │ -│ │ │ │ │ │ ╰───┴─────┴────────────┴─────────╯ │ │ -│ │ ╰───┴──────────┴───────────────────┴────────────────────────────────────╯ │ -╰────────────┴───────────────────────────────────────────────────────────────────────────╯ +╭──────────────────────┬─────────────────────────────────────────────────────────────────────────────────────╮ +│ tag │ note │ +│ attributes │ {record 0 fields} │ +│ │ ╭───┬──────────┬───────────────────┬────────────────────────────────────╮ │ +│ content │ │ # │ tag │ attributes │ content │ │ +│ │ ├───┼──────────┼───────────────────┼────────────────────────────────────┤ │ +│ │ │ 0 │ remember │ {record 0 fields} │ ╭───┬─────┬────────────┬─────────╮ │ │ +│ │ │ │ │ │ │ # │ tag │ attributes │ content │ │ │ +│ │ │ │ │ │ ├───┼─────┼────────────┼─────────┤ │ │ +│ │ │ │ │ │ │ 0 │ │ │ Event │ │ │ +│ │ │ │ │ │ ╰───┴─────┴────────────┴─────────╯ │ │ +│ │ ╰───┴──────────┴───────────────────┴────────────────────────────────────╯ │ +╰──────────────────────┴─────────────────────────────────────────────────────────────────────────────────────╯ ``` ## Notes diff --git a/commands/docs/histogram.md b/commands/docs/histogram.md index 9481b3048ce..989eec667e2 100644 --- a/commands/docs/histogram.md +++ b/commands/docs/histogram.md @@ -52,12 +52,13 @@ Compute a histogram for the types of files, with frequency column named freq Compute a histogram for a list of numbers ```nu > [1 2 1] | histogram -╭───┬───────┬───────┬──────────┬────────────┬────────────────────────────────────────────────────────────────────╮ -│ # │ value │ count │ quantile │ percentage │ frequency │ -├───┼───────┼───────┼──────────┼────────────┼────────────────────────────────────────────────────────────────────┤ -│ 0 │ 1 │ 2 │ 0.67 │ 66.67% │ ****************************************************************** │ -│ 1 │ 2 │ 1 │ 0.33 │ 33.33% │ ********************************* │ -╰───┴───────┴───────┴──────────┴────────────┴────────────────────────────────────────────────────────────────────╯ +╭───┬───────┬───────┬──────────┬────────────┬────────────────────────────────────────────────────────────────╮ +│ # │ value │ count │ quantile │ percentage │ frequency │ +├───┼───────┼───────┼──────────┼────────────┼────────────────────────────────────────────────────────────────┤ +│ 0 │ 1 │ 2 │ 0.67 │ 66.67% │ ************************************************************** │ +│ │ │ │ │ │ **** │ +│ 1 │ 2 │ 1 │ 0.33 │ 33.33% │ ********************************* │ +╰───┴───────┴───────┴──────────┴────────────┴────────────────────────────────────────────────────────────────╯ ``` diff --git a/commands/docs/plugin_list.md b/commands/docs/plugin_list.md index c31034d3c28..262845fe4a1 100644 --- a/commands/docs/plugin_list.md +++ b/commands/docs/plugin_list.md @@ -37,13 +37,13 @@ contributors: false List installed plugins. ```nu > plugin list -╭───┬──────┬────────────────────┬─────────┬────────┬───────────────────────────────┬───────┬─────────────╮ -│ # │ name │ version │ status │ pid │ filename │ shell │ commands │ -├───┼──────┼────────────────────┼─────────┼────────┼───────────────────────────────┼───────┼─────────────┤ -│ 0 │ inc │ 0.109.0 │ running │ 106480 │ /opt/nu/plugins/nu_plugin_inc │ │ ╭───┬─────╮ │ -│ │ │ │ │ │ │ │ │ 0 │ inc │ │ -│ │ │ │ │ │ │ │ ╰───┴─────╯ │ -╰───┴──────┴────────────────────┴─────────┴────────┴───────────────────────────────┴───────┴─────────────╯ +╭────┬───────┬─────────────────────┬──────────┬────────┬───────────────────────────────┬───────┬─────────────╮ +│ # │ name │ version │ status │ pid │ filename │ shell │ commands │ +├────┼───────┼─────────────────────┼──────────┼────────┼───────────────────────────────┼───────┼─────────────┤ +│ 0 │ inc │ 0.109.0 │ running │ 106480 │ /opt/nu/plugins/nu_plugin_inc │ │ ╭───┬─────╮ │ +│ │ │ │ │ │ │ │ │ 0 │ inc │ │ +│ │ │ │ │ │ │ │ ╰───┴─────╯ │ +╰────┴───────┴─────────────────────┴──────────┴────────┴───────────────────────────────┴───────┴─────────────╯ ``` diff --git a/commands/docs/polars_datepart.md b/commands/docs/polars_datepart.md index d8efff55722..42d4d457ab2 100644 --- a/commands/docs/polars_datepart.md +++ b/commands/docs/polars_datepart.md @@ -53,10 +53,28 @@ Creates an expression to capture multiple date parts (polars col datetime | polars datepart minute | polars as datetime_minute ), (polars col datetime | polars datepart second | polars as datetime_second ), (polars col datetime | polars datepart nanosecond | polars as datetime_ns ) ] -╭───┬─────────────┬───────────────┬────────────────┬──────────────┬───────────────┬─────────────────┬─────────────────┬─────────────╮ -│ # │ datetime │ datetime_year │ datetime_month │ datetime_day │ datetime_hour │ datetime_minute │ datetime_second │ datetime_ns │ -├───┼─────────────┼───────────────┼────────────────┼──────────────┼───────────────┼─────────────────┼─────────────────┼─────────────┤ -│ 0 │ 3 years ago │ 2021 │ 12 │ 30 │ 1 │ 2 │ 3 │ 123456789 │ -╰───┴─────────────┴───────────────┴────────────────┴──────────────┴───────────────┴─────────────────┴─────────────────┴─────────────╯ +╭───┬─────────────┬───────────────┬────────────────┬──────────────┬───────────────┬─────────────────┬────┬───╮ +│ # │ datetime │ datetime_year │ datetime_month │ datetime_day │ datetime_hour │ datetime_minute │ da │ d │ +│ │ │ │ │ │ │ │ te │ a │ +│ │ │ │ │ │ │ │ ti │ t │ +│ │ │ │ │ │ │ │ me │ e │ +│ │ │ │ │ │ │ │ _s │ t │ +│ │ │ │ │ │ │ │ ec │ i │ +│ │ │ │ │ │ │ │ on │ m │ +│ │ │ │ │ │ │ │ d │ e │ +│ │ │ │ │ │ │ │ │ _ │ +│ │ │ │ │ │ │ │ │ n │ +│ │ │ │ │ │ │ │ │ s │ +├───┼─────────────┼───────────────┼────────────────┼──────────────┼───────────────┼─────────────────┼────┼───┤ +│ 0 │ 3 years ago │ 2021 │ 12 │ 30 │ 1 │ 2 │ 3 │ 1 │ +│ │ │ │ │ │ │ │ │ 2 │ +│ │ │ │ │ │ │ │ │ 3 │ +│ │ │ │ │ │ │ │ │ 4 │ +│ │ │ │ │ │ │ │ │ 5 │ +│ │ │ │ │ │ │ │ │ 6 │ +│ │ │ │ │ │ │ │ │ 7 │ +│ │ │ │ │ │ │ │ │ 8 │ +│ │ │ │ │ │ │ │ │ 9 │ +╰───┴─────────────┴───────────────┴────────────────┴──────────────┴───────────────┴─────────────────┴────┴───╯ ``` diff --git a/commands/docs/update_cells.md b/commands/docs/update_cells.md index ab9a062daad..03fb11272ad 100644 --- a/commands/docs/update_cells.md +++ b/commands/docs/update_cells.md @@ -49,11 +49,11 @@ Update the zero value cells to empty strings. $value } } -╭───┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────╮ -│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ -├───┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┤ -│ 0 │ 37 │ │ │ │ 37 │ │ │ -╰───┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────╯ +╭─────┬──────────────┬──────────────┬──────────────┬──────────────┬──────────────┬─────────────┬─────────────╮ +│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ +├─────┼──────────────┼──────────────┼──────────────┼──────────────┼──────────────┼─────────────┼─────────────┤ +│ 0 │ 37 │ │ │ │ 37 │ │ │ +╰─────┴──────────────┴──────────────┴──────────────┴──────────────┴──────────────┴─────────────┴─────────────╯ ``` @@ -69,11 +69,11 @@ Update the zero value cells to empty strings in 2 last columns. $value } } -╭───┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────┬────────────╮ -│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ -├───┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┼────────────┤ -│ 0 │ 37 │ 0 │ 0 │ 0 │ 37 │ │ │ -╰───┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────┴────────────╯ +╭─────┬──────────────┬──────────────┬──────────────┬──────────────┬──────────────┬─────────────┬─────────────╮ +│ # │ 2021-04-16 │ 2021-06-10 │ 2021-09-18 │ 2021-10-15 │ 2021-11-16 │ 2021-11-17 │ 2021-11-18 │ +├─────┼──────────────┼──────────────┼──────────────┼──────────────┼──────────────┼─────────────┼─────────────┤ +│ 0 │ 37 │ 0 │ 0 │ 0 │ 37 │ │ │ +╰─────┴──────────────┴──────────────┴──────────────┴──────────────┴──────────────┴─────────────┴─────────────╯ ``` From 928797a197363e8aa220f280d15fdf64cd56556f Mon Sep 17 00:00:00 2001 From: hustcer Date: Tue, 25 Nov 2025 11:44:57 +0800 Subject: [PATCH 5/5] ci skip --- commands/docs/polars_slice.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commands/docs/polars_slice.md b/commands/docs/polars_slice.md index 150c73efa6c..29d9616d359 100644 --- a/commands/docs/polars_slice.md +++ b/commands/docs/polars_slice.md @@ -44,3 +44,9 @@ Create new dataframe from a slice of the rows ╰───┴───┴───╯ ``` + +Create a new lazy dataframe from a slice of a lazy dataframe's rows +```nu +> [[a b]; [1 2] [3 4]] | polars into-lazy | polars slice 0 1 | describe +polars_lazyframe +```