mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 10:48:37 +02:00
--no-edit
This commit is contained in:
@ -27,7 +27,11 @@ impl HelpShell {
|
||||
spec.insert("name", cmd);
|
||||
spec.insert(
|
||||
"description",
|
||||
value.get_data_by_key("usage").unwrap().as_string().unwrap(),
|
||||
value
|
||||
.get_data_by_key("usage".spanned_unknown())
|
||||
.unwrap()
|
||||
.as_string()
|
||||
.unwrap(),
|
||||
);
|
||||
spec.insert_tagged("details", value);
|
||||
|
||||
@ -70,7 +74,7 @@ impl HelpShell {
|
||||
for p in full_path.iter() {
|
||||
match p {
|
||||
x if x == sep => {}
|
||||
step => match viewed.get_data_by_key(step.to_str().unwrap()) {
|
||||
step => match viewed.get_data_by_key(step.to_str().unwrap().spanned_unknown()) {
|
||||
Some(v) => {
|
||||
viewed = v.clone();
|
||||
}
|
||||
|
@ -106,10 +106,10 @@ impl Highlighter for Helper {
|
||||
trace!(target: "nu::color_syntax", "{:#?}", tokens.color_tracer());
|
||||
|
||||
if log_enabled!(target: "nu::color_syntax", log::Level::Debug) {
|
||||
println!("");
|
||||
outln!("");
|
||||
ptree::print_tree(&tokens.color_tracer().clone().print(Text::from(line)))
|
||||
.unwrap();
|
||||
println!("");
|
||||
outln!("");
|
||||
}
|
||||
|
||||
for shape in shapes {
|
||||
|
@ -40,7 +40,7 @@ impl ValueShell {
|
||||
for p in full_path.iter() {
|
||||
match p {
|
||||
x if x == sep => {}
|
||||
step => match viewed.get_data_by_key(step.to_str().unwrap()) {
|
||||
step => match viewed.get_data_by_key(step.to_str().unwrap().spanned_unknown()) {
|
||||
Some(v) => {
|
||||
viewed = v.clone();
|
||||
}
|
||||
|
Reference in New Issue
Block a user