Add header rows to list and ready table output

Amolith created

list and ready display priority and effort as bare low/medium/high in
adjacent columns with nothing distinguishing them. Add a header row to
each using comfy-table's set_header().

Change summary

src/cmd/list.rs  | 1 +
src/cmd/ready.rs | 1 +
2 files changed, 2 insertions(+)

Detailed changes

src/cmd/list.rs 🔗

@@ -70,6 +70,7 @@ pub fn run(
         let c = crate::color::stdout_theme();
         let mut table = Table::new();
         table.load_preset(NOTHING);
+        table.set_header(vec!["ID", "STATUS", "PRIORITY", "EFFORT", "TITLE"]);
         for t in &tasks {
             table.add_row(vec![
                 format!("{}{}{}", c.bold, t.id, c.reset),

src/cmd/ready.rs 🔗

@@ -41,6 +41,7 @@ pub fn run(root: &Path, json: bool) -> Result<()> {
         let c = crate::color::stdout_theme();
         let mut table = Table::new();
         table.load_preset(NOTHING);
+        table.set_header(vec!["ID", "PRIORITY", "EFFORT", "TITLE"]);
         for t in &tasks {
             table.add_row(vec![
                 format!("{}{}{}", c.green, t.id, c.reset),