diff --git a/crates/nu-std/std/core/mod.nu b/crates/nu-std/std/core/mod.nu index 2c4a863426..3a010c1fb3 100644 --- a/crates/nu-std/std/core/mod.nu +++ b/crates/nu-std/std/core/mod.nu @@ -3,12 +3,14 @@ use std/dt [datetime-diff, pretty-print-duration] # Print a banner for nushell with information about the project export def banner [] { let dt = (datetime-diff (date now) 2019-05-10T09:59:12-07:00) +let ver = (version) let banner_msg = $"(ansi green) __ ,(ansi reset) (ansi green) .--\(\)°'.' (ansi reset)Welcome to (ansi green)Nushell(ansi reset), (ansi green)'|, . ,' (ansi reset)based on the (ansi green)nu(ansi reset) language, (ansi green) !_-\(_\\ (ansi reset)where all data is structured! +Version: (ansi green)($ver.version) \(($ver.build_os)\) Please join our (ansi purple)Discord(ansi reset) community at (ansi purple)https://discord.gg/NtAbbGn(ansi reset) Our (ansi green_bold)GitHub(ansi reset) repository is at (ansi green_bold)https://github.com/nushell/nushell(ansi reset) Our (ansi green)Documentation(ansi reset) is located at (ansi green)https://nushell.sh(ansi reset) diff --git a/crates/nu-std/tests/test_core.nu b/crates/nu-std/tests/test_core.nu index eca7cddd61..654a1bcedf 100644 --- a/crates/nu-std/tests/test_core.nu +++ b/crates/nu-std/tests/test_core.nu @@ -3,5 +3,5 @@ use std/assert #[test] def banner [] { use std/core - assert ((core banner | lines | length) == 15) + assert ((core banner | lines | length) == 16) }