mirror of
https://github.com/nushell/nushell.git
synced 2025-01-03 04:50:28 +01:00
fmt/test updates
This commit is contained in:
parent
929515e39b
commit
006e7c8222
@ -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,
|
||||||
|
@ -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)"
|
||||||
|
Loading…
Reference in New Issue
Block a user