From 50146bdef35cc3aae24adb366bcc34885b28d60e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Thu, 26 May 2022 18:15:36 +0300 Subject: [PATCH] Shorten the links of parser keywords help msgs (#5648) --- crates/nu-command/src/core_commands/alias.rs | 4 ++-- crates/nu-command/src/core_commands/def.rs | 4 ++-- crates/nu-command/src/core_commands/def_env.rs | 4 ++-- crates/nu-command/src/core_commands/export.rs | 4 ++-- crates/nu-command/src/core_commands/export_alias.rs | 4 ++-- crates/nu-command/src/core_commands/export_def.rs | 4 ++-- crates/nu-command/src/core_commands/export_def_env.rs | 4 ++-- crates/nu-command/src/core_commands/export_env.rs | 4 ++-- crates/nu-command/src/core_commands/export_extern.rs | 4 ++-- crates/nu-command/src/core_commands/extern_.rs | 4 ++-- crates/nu-command/src/core_commands/for_.rs | 4 ++-- crates/nu-command/src/core_commands/hide.rs | 5 ++--- crates/nu-command/src/core_commands/if_.rs | 4 ++-- crates/nu-command/src/core_commands/let_.rs | 4 ++-- crates/nu-command/src/core_commands/module.rs | 4 ++-- crates/nu-command/src/core_commands/overlay/add.rs | 4 ++-- crates/nu-command/src/core_commands/overlay/command.rs | 4 ++-- crates/nu-command/src/core_commands/overlay/remove.rs | 4 ++-- crates/nu-command/src/core_commands/register.rs | 4 ++-- crates/nu-command/src/core_commands/source.rs | 4 ++-- crates/nu-command/src/core_commands/use_.rs | 4 ++-- 21 files changed, 42 insertions(+), 43 deletions(-) diff --git a/crates/nu-command/src/core_commands/alias.rs b/crates/nu-command/src/core_commands/alias.rs index 36aa4e723..0815daee9 100644 --- a/crates/nu-command/src/core_commands/alias.rs +++ b/crates/nu-command/src/core_commands/alias.rs @@ -26,8 +26,8 @@ impl Command for Alias { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/def.rs b/crates/nu-command/src/core_commands/def.rs index f89d2ea6b..4a365b765 100644 --- a/crates/nu-command/src/core_commands/def.rs +++ b/crates/nu-command/src/core_commands/def.rs @@ -27,8 +27,8 @@ impl Command for Def { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/def_env.rs b/crates/nu-command/src/core_commands/def_env.rs index 1b29a3da0..e880d1d89 100644 --- a/crates/nu-command/src/core_commands/def_env.rs +++ b/crates/nu-command/src/core_commands/def_env.rs @@ -27,8 +27,8 @@ impl Command for DefEnv { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/export.rs b/crates/nu-command/src/core_commands/export.rs index 383dce86c..7867b20a4 100644 --- a/crates/nu-command/src/core_commands/export.rs +++ b/crates/nu-command/src/core_commands/export.rs @@ -22,8 +22,8 @@ impl Command for ExportCommand { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/export_alias.rs b/crates/nu-command/src/core_commands/export_alias.rs index 3af266dd9..7a989ae80 100644 --- a/crates/nu-command/src/core_commands/export_alias.rs +++ b/crates/nu-command/src/core_commands/export_alias.rs @@ -26,8 +26,8 @@ impl Command for ExportAlias { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/export_def.rs b/crates/nu-command/src/core_commands/export_def.rs index 024ae2643..0f25c6faf 100644 --- a/crates/nu-command/src/core_commands/export_def.rs +++ b/crates/nu-command/src/core_commands/export_def.rs @@ -27,8 +27,8 @@ impl Command for ExportDef { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/export_def_env.rs b/crates/nu-command/src/core_commands/export_def_env.rs index 267b1eb95..65de97886 100644 --- a/crates/nu-command/src/core_commands/export_def_env.rs +++ b/crates/nu-command/src/core_commands/export_def_env.rs @@ -27,8 +27,8 @@ impl Command for ExportDefEnv { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/export_env.rs b/crates/nu-command/src/core_commands/export_env.rs index fb6e5d029..8196e22fd 100644 --- a/crates/nu-command/src/core_commands/export_env.rs +++ b/crates/nu-command/src/core_commands/export_env.rs @@ -30,8 +30,8 @@ impl Command for ExportEnv { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/export_extern.rs b/crates/nu-command/src/core_commands/export_extern.rs index ddab0ad51..0148332f6 100644 --- a/crates/nu-command/src/core_commands/export_extern.rs +++ b/crates/nu-command/src/core_commands/export_extern.rs @@ -22,8 +22,8 @@ impl Command for ExportExtern { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/extern_.rs b/crates/nu-command/src/core_commands/extern_.rs index 0c7b7692a..5490463a0 100644 --- a/crates/nu-command/src/core_commands/extern_.rs +++ b/crates/nu-command/src/core_commands/extern_.rs @@ -22,8 +22,8 @@ impl Command for Extern { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/for_.rs b/crates/nu-command/src/core_commands/for_.rs index 9cbbc3902..f0195b328 100644 --- a/crates/nu-command/src/core_commands/for_.rs +++ b/crates/nu-command/src/core_commands/for_.rs @@ -45,8 +45,8 @@ impl Command for For { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/hide.rs b/crates/nu-command/src/core_commands/hide.rs index e16ce786b..cdc2f2fc7 100644 --- a/crates/nu-command/src/core_commands/hide.rs +++ b/crates/nu-command/src/core_commands/hide.rs @@ -25,9 +25,8 @@ impl Command for Hide { fn extra_usage(&self) -> &str { r#"Symbols are hidden by priority: First aliases, then custom commands, then environment variables. -This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages - "# +This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/if_.rs b/crates/nu-command/src/core_commands/if_.rs index b934275ae..79e9cd8b1 100644 --- a/crates/nu-command/src/core_commands/if_.rs +++ b/crates/nu-command/src/core_commands/if_.rs @@ -34,8 +34,8 @@ impl Command for If { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/let_.rs b/crates/nu-command/src/core_commands/let_.rs index 310fe7708..fe7a76479 100644 --- a/crates/nu-command/src/core_commands/let_.rs +++ b/crates/nu-command/src/core_commands/let_.rs @@ -27,8 +27,8 @@ impl Command for Let { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/module.rs b/crates/nu-command/src/core_commands/module.rs index c1c1ec5ec..5c0068263 100644 --- a/crates/nu-command/src/core_commands/module.rs +++ b/crates/nu-command/src/core_commands/module.rs @@ -26,8 +26,8 @@ impl Command for Module { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/overlay/add.rs b/crates/nu-command/src/core_commands/overlay/add.rs index 3cbde4526..5c9b34103 100644 --- a/crates/nu-command/src/core_commands/overlay/add.rs +++ b/crates/nu-command/src/core_commands/overlay/add.rs @@ -34,8 +34,8 @@ impl Command for OverlayAdd { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/overlay/command.rs b/crates/nu-command/src/core_commands/overlay/command.rs index 80d099449..0bcb6636c 100644 --- a/crates/nu-command/src/core_commands/overlay/command.rs +++ b/crates/nu-command/src/core_commands/overlay/command.rs @@ -22,8 +22,8 @@ impl Command for Overlay { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/overlay/remove.rs b/crates/nu-command/src/core_commands/overlay/remove.rs index a64a4010b..9bff4116c 100644 --- a/crates/nu-command/src/core_commands/overlay/remove.rs +++ b/crates/nu-command/src/core_commands/overlay/remove.rs @@ -29,8 +29,8 @@ impl Command for OverlayRemove { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/register.rs b/crates/nu-command/src/core_commands/register.rs index 2ff4e2c08..0d5541604 100644 --- a/crates/nu-command/src/core_commands/register.rs +++ b/crates/nu-command/src/core_commands/register.rs @@ -42,8 +42,8 @@ impl Command for Register { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/source.rs b/crates/nu-command/src/core_commands/source.rs index f1d340fb9..1a407108e 100644 --- a/crates/nu-command/src/core_commands/source.rs +++ b/crates/nu-command/src/core_commands/source.rs @@ -27,8 +27,8 @@ impl Command for Source { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool { diff --git a/crates/nu-command/src/core_commands/use_.rs b/crates/nu-command/src/core_commands/use_.rs index 0818ec955..b23561da8 100644 --- a/crates/nu-command/src/core_commands/use_.rs +++ b/crates/nu-command/src/core_commands/use_.rs @@ -24,8 +24,8 @@ impl Command for Use { } fn extra_usage(&self) -> &str { - r#"This command is a parser keyword. For details, check -https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-different-stages"# + r#"This command is a parser keyword. For details, check: + https://www.nushell.sh/book/thinking_in_nushell.html"# } fn is_parser_keyword(&self) -> bool {