mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +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->"Status", task.get_status()]);
|
||||
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)?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue