mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
display tags in 'task info'
This commit is contained in:
parent
54e8484bc2
commit
5ea72f878a
1 changed files with 5 additions and 0 deletions
|
@ -30,6 +30,11 @@ pub(crate) fn execute<W: WriteColor>(
|
||||||
t.add_row(row![b->"Description", task.get_description()]);
|
t.add_row(row![b->"Description", task.get_description()]);
|
||||||
t.add_row(row![b->"Status", task.get_status()]);
|
t.add_row(row![b->"Status", task.get_status()]);
|
||||||
t.add_row(row![b->"Active", task.is_active()]);
|
t.add_row(row![b->"Active", task.is_active()]);
|
||||||
|
let mut tags: Vec<_> = task.get_tags().map(|t| format!("+{}", t)).collect();
|
||||||
|
if !tags.is_empty() {
|
||||||
|
tags.sort();
|
||||||
|
t.add_row(row![b->"Tags", tags.join(" ")]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
t.print(w)?;
|
t.print(w)?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue