From a4e4f663561bba95ab2aaa202800e5a274c0c246 Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Wed, 3 Apr 2024 09:42:49 +0800 Subject: [PATCH] Remove doc for `str escape-glob` command (#1331) --- .../configs/sidebar/command_categories.ts | 1 - commands/docs/dfr_datepart.md | 10 ++--- commands/docs/from.md | 32 ++++++++------- commands/docs/str_escape-glob.md | 41 ------------------- 4 files changed, 23 insertions(+), 61 deletions(-) delete mode 100644 commands/docs/str_escape-glob.md diff --git a/.vuepress/configs/sidebar/command_categories.ts b/.vuepress/configs/sidebar/command_categories.ts index 889bad61329..21494b7bd0b 100644 --- a/.vuepress/configs/sidebar/command_categories.ts +++ b/.vuepress/configs/sidebar/command_categories.ts @@ -25,7 +25,6 @@ export const commandCategories = [ '/commands/categories/network.md', '/commands/categories/path.md', '/commands/categories/platform.md', - '/commands/categories/prompt.md', '/commands/categories/random.md', '/commands/categories/removed.md', '/commands/categories/shells.md', diff --git a/commands/docs/dfr_datepart.md b/commands/docs/dfr_datepart.md index 265eecd7a1a..3c037184c39 100644 --- a/commands/docs/dfr_datepart.md +++ b/commands/docs/dfr_datepart.md @@ -57,10 +57,10 @@ Creates an expression to capture multiple date parts (dfr col datetime | dfr datepart minute | dfr as datetime_minute ), (dfr col datetime | dfr datepart second | dfr as datetime_second ), (dfr col datetime | dfr datepart nanosecond | dfr as datetime_ns ) ] -╭───────┬─────────────────┬──────────────────┬───────────────────┬─────────────────┬──────────────────┬────────────────────┬────────────────────┬────────────────╮ -│ # │ datetime │ datetime_year │ datetime_month │ datetime_day │ datetime_hour │ datetime_minute │ datetime_second │ datetime_ns │ -├───────┼─────────────────┼──────────────────┼───────────────────┼─────────────────┼──────────────────┼────────────────────┼────────────────────┼────────────────┤ -│ 0 │ 2 years ago │ 2021 │ 12 │ 30 │ 1 │ 2 │ 3 │ 123456789 │ -╰───────┴─────────────────┴──────────────────┴───────────────────┴─────────────────┴──────────────────┴────────────────────┴────────────────────┴────────────────╯ +╭───┬─────────────┬───────────────┬────────────────┬──────────────┬───────────────┬─────────────────┬─────────────────┬─────────────╮ +│ # │ datetime │ datetime_year │ datetime_month │ datetime_day │ datetime_hour │ datetime_minute │ datetime_second │ datetime_ns │ +├───┼─────────────┼───────────────┼────────────────┼──────────────┼───────────────┼─────────────────┼─────────────────┼─────────────┤ +│ 0 │ 2 years ago │ 2021 │ 12 │ 30 │ 1 │ 2 │ 3 │ 123456789 │ +╰───┴─────────────┴───────────────┴────────────────┴──────────────┴───────────────┴─────────────────┴─────────────────┴─────────────╯ ``` diff --git a/commands/docs/from.md b/commands/docs/from.md index f204aa19743..6cc04152498 100644 --- a/commands/docs/from.md +++ b/commands/docs/from.md @@ -31,17 +31,21 @@ You must use one of the following subcommands. Using this command as-is will onl ## Subcommands: -| name | type | usage | -| ------------------------------------------ | ------- | -------------------------------------------------------------------------------------------------------------------------- | -| [`from csv`](/commands/docs/from_csv.md) | Builtin | Parse text as .csv and create table. | -| [`from json`](/commands/docs/from_json.md) | Builtin | Convert from json to structured data. | -| [`from nuon`](/commands/docs/from_nuon.md) | Builtin | Convert from nuon to structured data. | -| [`from ods`](/commands/docs/from_ods.md) | Builtin | Parse OpenDocument Spreadsheet(.ods) data and create table. | -| [`from ssv`](/commands/docs/from_ssv.md) | Builtin | Parse text as space-separated values and create a table. The default minimum number of spaces counted as a separator is 2. | -| [`from toml`](/commands/docs/from_toml.md) | Builtin | Parse text as .toml and create record. | -| [`from tsv`](/commands/docs/from_tsv.md) | Builtin | Parse text as .tsv and create table. | -| [`from url`](/commands/docs/from_url.md) | Builtin | Parse url-encoded string as a record. | -| [`from xlsx`](/commands/docs/from_xlsx.md) | Builtin | Parse binary Excel(.xlsx) data and create table. | -| [`from xml`](/commands/docs/from_xml.md) | Builtin | Parse text as .xml and create record. | -| [`from yaml`](/commands/docs/from_yaml.md) | Builtin | Parse text as .yaml/.yml and create table. | -| [`from yml`](/commands/docs/from_yml.md) | Builtin | Parse text as .yaml/.yml and create table. | \ No newline at end of file +| name | type | usage | +| ------------------------------------------ | -------------- | -------------------------------------------------------------------------------------------------------------------------- | +| [`from csv`](/commands/docs/from_csv.md) | Builtin | Parse text as .csv and create table. | +| [`from eml`](/commands/docs/from_eml.md) | Builtin,Plugin | Parse text as .eml and create record. | +| [`from ics`](/commands/docs/from_ics.md) | Builtin,Plugin | Parse text as .ics and create table. | +| [`from ini`](/commands/docs/from_ini.md) | Builtin,Plugin | Parse text as .ini and create table. | +| [`from json`](/commands/docs/from_json.md) | Builtin | Convert from json to structured data. | +| [`from nuon`](/commands/docs/from_nuon.md) | Builtin | Convert from nuon to structured data. | +| [`from ods`](/commands/docs/from_ods.md) | Builtin | Parse OpenDocument Spreadsheet(.ods) data and create table. | +| [`from ssv`](/commands/docs/from_ssv.md) | Builtin | Parse text as space-separated values and create a table. The default minimum number of spaces counted as a separator is 2. | +| [`from toml`](/commands/docs/from_toml.md) | Builtin | Parse text as .toml and create record. | +| [`from tsv`](/commands/docs/from_tsv.md) | Builtin | Parse text as .tsv and create table. | +| [`from url`](/commands/docs/from_url.md) | Builtin | Parse url-encoded string as a record. | +| [`from vcf`](/commands/docs/from_vcf.md) | Builtin,Plugin | Parse text as .vcf and create table. | +| [`from xlsx`](/commands/docs/from_xlsx.md) | Builtin | Parse binary Excel(.xlsx) data and create table. | +| [`from xml`](/commands/docs/from_xml.md) | Builtin | Parse text as .xml and create record. | +| [`from yaml`](/commands/docs/from_yaml.md) | Builtin | Parse text as .yaml/.yml and create table. | +| [`from yml`](/commands/docs/from_yml.md) | Builtin | Parse text as .yaml/.yml and create table. | \ No newline at end of file diff --git a/commands/docs/str_escape-glob.md b/commands/docs/str_escape-glob.md deleted file mode 100644 index c6327813835..00000000000 --- a/commands/docs/str_escape-glob.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: str escape-glob -categories: | - strings -version: 0.91.0 -strings: | - Escape glob pattern. -usage: | - Escape glob pattern. -feature: default ---- - - -# `str escape-glob` for [strings](/commands/categories/strings.md) - -
Escape glob pattern.
- -## Signature - -```> str escape-glob {flags} ...rest``` - -## Parameters - - - `...rest`: For a data structure input, turn strings at the given cell paths into substrings. - - -## Input/output types: - -| input | output | -| ------------ | ------------ | -| list\ | list\ | -| record | record | -| string | string | -| table | table | -## Examples - -escape glob pattern before list -```nu -> let f = 'test[a]'; ls ($f | str escape-glob) - -```