From 006e7c822214cb630199d35cb056f60758cd852c Mon Sep 17 00:00:00 2001 From: NotTheDr01ds <32344964+NotTheDr01ds@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:48:14 -0500 Subject: [PATCH] fmt/test updates --- crates/nu-cli/src/repl.rs | 4 ++-- crates/nu-std/std/core/mod.nu | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/nu-cli/src/repl.rs b/crates/nu-cli/src/repl.rs index 505a1b47c1..06ecd1d49a 100644 --- a/crates/nu-cli/src/repl.rs +++ b/crates/nu-cli/src/repl.rs @@ -148,8 +148,8 @@ pub fn evaluate_repl( if load_std_lib.is_none() { match engine_state.get_config().show_banner { - Value::Bool { val: false, ..} => {} - Value::String { ref val, ..} if val == "short" => { + Value::Bool { val: false, .. } => {} + Value::String { ref val, .. } if val == "short" => { eval_source( engine_state, &mut unique_stack, diff --git a/crates/nu-std/std/core/mod.nu b/crates/nu-std/std/core/mod.nu index 37f10f243b..21c30ca318 100644 --- a/crates/nu-std/std/core/mod.nu +++ b/crates/nu-std/std/core/mod.nu @@ -6,8 +6,7 @@ export def banner [ ] { let dt = (datetime-diff (date now) 2019-05-10T09:59:12-07:00) let ver = (version) - -let startup_time = $"('Startup Time: ' | ansi gradient --fgstart '0x20a000' --fgend '0x20ff00')($nu.startup-time)" +let startup_time = $"(ansi green_bold)Startup Time: (ansi reset)($nu.startup-time)" let banner_msg = match $short { true => $"($startup_time)(char newline)"