mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 01:17:47 +02:00
change describe so it doesn't output colored strings (#3832)
This commit is contained in:
@ -537,6 +537,10 @@ pub fn compare_values(
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
pub fn plain_type<'a>(value: impl Into<&'a UntaggedValue>, width: usize) -> String {
|
||||
Type::from_value(value.into()).plain_string(width)
|
||||
}
|
||||
|
||||
pub fn format_type<'a>(value: impl Into<&'a UntaggedValue>, width: usize) -> String {
|
||||
Type::from_value(value.into()).colored_string(width)
|
||||
}
|
||||
|
Reference in New Issue
Block a user