Browse Source

Enable showing extra commands

Samuel W. Flint 3 years ago
parent
commit
d1b1d2e29a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/lib/repotype.rs

+ 6 - 1
src/lib/repotype.rs

@@ -166,6 +166,11 @@ impl fmt::Display for RepoType {
                self.status,
                self.pre_inward,
                self.post_inward,
-               self.post_outward)
+               self.post_outward)?;
+        write!(f, "Additional Commands:\n")?;
+        for command in self.commands.keys() {
+            write!(f, "\t - {}: {}\n", command, &self.commands.get(command).unwrap())?;
+        }
+        write!(f, "")
     }
 }