mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 19:57:44 +02:00
Refactor path commands (#9687)
This commit is contained in:
@ -1740,6 +1740,15 @@ impl Value {
|
||||
}
|
||||
}
|
||||
|
||||
/// Note: Only use this for test data, *not* live data, as it will point into unknown source
|
||||
/// when used in errors.
|
||||
pub fn test_list(vals: Vec<Value>) -> Value {
|
||||
Value::List {
|
||||
vals,
|
||||
span: Span::test_data(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Note: Only use this for test data, *not* live data, as it will point into unknown source
|
||||
/// when used in errors.
|
||||
pub fn test_date(val: DateTime<FixedOffset>) -> Value {
|
||||
|
Reference in New Issue
Block a user