mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 01:05:01 +02:00
Split OutputStream into ActionStream/OutputStream (#3304)
* Split OutputStream into ActionStream/OutputStream * Fmt * Missed update * Cleanup helper names * Fmt
This commit is contained in:
@ -309,6 +309,10 @@ impl Value {
|
||||
self.tag.clone()
|
||||
}
|
||||
|
||||
pub fn error(e: ShellError) -> Value {
|
||||
UntaggedValue::Error(e).into_untagged_value()
|
||||
}
|
||||
|
||||
/// View the Value as a string, if possible
|
||||
pub fn as_string(&self) -> Result<String, ShellError> {
|
||||
match &self.value {
|
||||
|
Reference in New Issue
Block a user