|
@@ -103,16 +103,17 @@ pub fn print_task_info(taskinfo: TaskInfo) -> Result<()> {
|
|
|
|
|
|
|
|
let mut table = table!(
|
|
let mut table = table!(
|
|
|
[Bd => "ref_id", &taskinfo.ref_id],
|
|
[Bd => "ref_id", &taskinfo.ref_id],
|
|
|
- ["id", &taskinfo.id.to_string()],
|
|
|
|
|
- [Bd => "owner", &taskinfo.owner],
|
|
|
|
|
- ["title", &taskinfo.title],
|
|
|
|
|
- [Bd => "desc", &taskinfo.desc.to_string()],
|
|
|
|
|
- ["assign", taskinfo.assign.join(", ")],
|
|
|
|
|
- [Bd => "project", taskinfo.project.join(", ")],
|
|
|
|
|
- ["due", due],
|
|
|
|
|
- [Bd => "rank", &taskinfo.rank.to_string()],
|
|
|
|
|
- ["created_at", created_at],
|
|
|
|
|
- [Bd => "current_state", current_state]);
|
|
|
|
|
|
|
+ ["workspace", &taskinfo.workspace],
|
|
|
|
|
+ [Bd =>"id", &taskinfo.id.to_string()],
|
|
|
|
|
+ ["owner", &taskinfo.owner],
|
|
|
|
|
+ [Bd =>"title", &taskinfo.title],
|
|
|
|
|
+ ["desc", &taskinfo.desc.to_string()],
|
|
|
|
|
+ [Bd =>"assign", taskinfo.assign.join(", ")],
|
|
|
|
|
+ ["project", taskinfo.project.join(", ")],
|
|
|
|
|
+ [Bd =>"due", due],
|
|
|
|
|
+ ["rank", &taskinfo.rank.to_string()],
|
|
|
|
|
+ [Bd =>"created_at", created_at],
|
|
|
|
|
+ ["current_state", current_state]);
|
|
|
|
|
|
|
|
table.set_format(
|
|
table.set_format(
|
|
|
FormatBuilder::new()
|
|
FormatBuilder::new()
|