mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 00:44:57 +02:00
Add a very silly ls
This commit is contained in:
@ -278,6 +278,13 @@ impl Value {
|
||||
Ok(current)
|
||||
}
|
||||
|
||||
pub fn string(s: &str, span: Span) -> Value {
|
||||
Value::String {
|
||||
val: s.into(),
|
||||
span,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_true(&self) -> bool {
|
||||
matches!(self, Value::Bool { val: true, .. })
|
||||
}
|
||||
|
Reference in New Issue
Block a user