mirror of
https://github.com/nushell/nushell.git
synced 2025-07-05 00:50:11 +02:00
to html --list
now returns a table (#7080)
* `to html --list` now returns a table * Re-add screenshots link
This commit is contained in:
@ -86,6 +86,15 @@ impl Command for Metadata {
|
||||
span: head,
|
||||
})
|
||||
}
|
||||
PipelineMetadata {
|
||||
data_source: DataSource::HtmlThemes,
|
||||
} => {
|
||||
cols.push("source".into());
|
||||
vals.push(Value::String {
|
||||
val: "into html --list".into(),
|
||||
span: head,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -148,6 +157,15 @@ fn build_metadata_record(arg: &Value, metadata: &Option<PipelineMetadata>, head:
|
||||
span: head,
|
||||
})
|
||||
}
|
||||
PipelineMetadata {
|
||||
data_source: DataSource::HtmlThemes,
|
||||
} => {
|
||||
cols.push("source".into());
|
||||
vals.push(Value::String {
|
||||
val: "into html --list".into(),
|
||||
span: head,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user