fmt/test updates

This commit is contained in:
NotTheDr01ds 2024-12-19 12:48:14 -05:00
parent 929515e39b
commit 006e7c8222
2 changed files with 3 additions and 4 deletions

View File

@ -148,8 +148,8 @@ pub fn evaluate_repl(
if load_std_lib.is_none() { if load_std_lib.is_none() {
match engine_state.get_config().show_banner { match engine_state.get_config().show_banner {
Value::Bool { val: false, ..} => {} Value::Bool { val: false, .. } => {}
Value::String { ref val, ..} if val == "short" => { Value::String { ref val, .. } if val == "short" => {
eval_source( eval_source(
engine_state, engine_state,
&mut unique_stack, &mut unique_stack,

View File

@ -6,8 +6,7 @@ export def banner [
] { ] {
let dt = (datetime-diff (date now) 2019-05-10T09:59:12-07:00) let dt = (datetime-diff (date now) 2019-05-10T09:59:12-07:00)
let ver = (version) let ver = (version)
let startup_time = $"(ansi green_bold)Startup Time: (ansi reset)($nu.startup-time)"
let startup_time = $"('Startup Time: ' | ansi gradient --fgstart '0x20a000' --fgend '0x20ff00')($nu.startup-time)"
let banner_msg = match $short { let banner_msg = match $short {
true => $"($startup_time)(char newline)" true => $"($startup_time)(char newline)"