Improve help and make binary a primitive

This commit is contained in:
Jonathan Turner
2019-09-13 06:29:16 +12:00
parent 53cfa09cd2
commit 189877e4dd
17 changed files with 140 additions and 70 deletions

View File

@ -56,7 +56,7 @@ pub fn value_to_yaml_value(v: &Tagged<Value>) -> Result<serde_yaml::Value, Shell
serde_yaml::Value::Sequence(out)
}
Value::Block(_) => serde_yaml::Value::Null,
Value::Binary(b) => serde_yaml::Value::Sequence(
Value::Primitive(Primitive::Binary(b)) => serde_yaml::Value::Sequence(
b.iter()
.map(|x| serde_yaml::Value::Number(serde_yaml::Number::from(*x)))
.collect(),