fix links to the "think in nu" page in --help (#6348)

This commit uses `sed` on all the files of the code base to
replace each and every instance of https://www.nushell.sh/book/thinking_in_nushell.html,
which is a broken link, to https://www.nushell.sh/book/thinking_in_nu.html,
which is the new URL to the book page.

This exact command was
```nushell
ls **/* -f |
    where type == file |
    each {
        |it|
        sed -i 's|https://www.nushell.sh/book/thinking_in_nushell.html|https://www.nushell.sh/book/thinking_in_nu.html|' $it.name
    }
```

Co-authored-by: amtoine <44101798+AntoineStevan@users.noreply.github.com>
This commit is contained in:
Antoine Stevan 2022-08-17 19:51:07 +02:00 committed by GitHub
parent e614970c08
commit 62d3497bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 23 additions and 23 deletions

View File

@ -27,7 +27,7 @@ impl Command for Alias {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -28,7 +28,7 @@ impl Command for Def {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -28,7 +28,7 @@ impl Command for DefEnv {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html https://www.nushell.sh/book/thinking_in_nu.html
=== EXTRA NOTE === === EXTRA NOTE ===
All blocks are scoped, including variable definition and environment variable changes. All blocks are scoped, including variable definition and environment variable changes.

View File

@ -23,7 +23,7 @@ impl Command for ExportCommand {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -27,7 +27,7 @@ impl Command for ExportAlias {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -28,7 +28,7 @@ impl Command for ExportDef {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -28,7 +28,7 @@ impl Command for ExportDefEnv {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html https://www.nushell.sh/book/thinking_in_nu.html
=== EXTRA NOTE === === EXTRA NOTE ===
All blocks are scoped, including variable definition and environment variable changes. All blocks are scoped, including variable definition and environment variable changes.

View File

@ -31,7 +31,7 @@ impl Command for ExportEnv {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -23,7 +23,7 @@ impl Command for ExportExtern {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -22,7 +22,7 @@ impl Command for ExportUse {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -23,7 +23,7 @@ impl Command for Extern {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -46,7 +46,7 @@ impl Command for For {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -26,7 +26,7 @@ impl Command for Hide {
r#"Definitions are hidden by priority: First aliases, then custom commands. r#"Definitions are hidden by priority: First aliases, then custom commands.
This command is a parser keyword. For details, check: This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -35,7 +35,7 @@ impl Command for If {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -28,7 +28,7 @@ impl Command for Let {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -27,7 +27,7 @@ impl Command for Module {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -39,7 +39,7 @@ impl Command for OverlayAdd {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -23,7 +23,7 @@ impl Command for Overlay {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -31,7 +31,7 @@ impl Command for OverlayNew {
r#"The command will first create an empty module, then add it as an overlay. r#"The command will first create an empty module, then add it as an overlay.
This command is a parser keyword. For details, check: This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -34,7 +34,7 @@ impl Command for OverlayRemove {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -43,7 +43,7 @@ impl Command for Register {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -28,7 +28,7 @@ impl Command for Source {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {

View File

@ -25,7 +25,7 @@ impl Command for Use {
fn extra_usage(&self) -> &str { fn extra_usage(&self) -> &str {
r#"This command is a parser keyword. For details, check: r#"This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nushell.html"# https://www.nushell.sh/book/thinking_in_nu.html"#
} }
fn is_parser_keyword(&self) -> bool { fn is_parser_keyword(&self) -> bool {